11import { defineConfig } from 'astro/config'
22import starlight from '@astrojs/starlight'
3- import astroI18next from 'astro-i18next'
43import react from '@astrojs/react'
54import starlightLinksValidator from 'starlight-links-validator'
65
@@ -11,7 +10,7 @@ export default defineConfig({
1110starlight ( {
1211title :'Web Monetization' ,
1312description :
14- " Web Monetization introduces a new way for content owners and publishers to earn while allowing their audience to engage on their own terms." ,
13+ ' Web Monetization introduces a new way for content owners and publishers to earn while allowing their audience to engage on their own terms.' ,
1514head :[
1615{
1716tag :'script' ,
@@ -50,9 +49,13 @@ export default defineConfig({
5049Header :'./src/components/docs/Header.astro' ,
5150PageSidebar :'./src/components/docs/PageSidebar.astro' ,
5251} ,
53- social :{
54- github :'https://github.com/WICG/webmonetization' ,
55- } ,
52+ social :[
53+ {
54+ icon :'github' ,
55+ label :'GitHub' ,
56+ href :'https://github.com/WICG/webmonetization' ,
57+ } ,
58+ ] ,
5659sidebar :[
5760{
5861label :'Overview' ,
@@ -80,18 +83,18 @@ export default defineConfig({
8083label :'For content owners' ,
8184collapsed :true ,
8285items :[
83- {
84- label :'Overview' ,
85- link :'/developers/overview' ,
86- } ,
87- {
88- label :'Get started' ,
89- link :'/developers/get-started' ,
90- } ,
91- {
92- label :'Learn about receiving payments' ,
93- link :'/developers/about-receiving' ,
94- } ,
86+ {
87+ label :'Overview' ,
88+ link :'/developers/overview' ,
89+ } ,
90+ {
91+ label :'Get started' ,
92+ link :'/developers/get-started' ,
93+ } ,
94+ {
95+ label :'Learn about receiving payments' ,
96+ link :'/developers/about-receiving' ,
97+ } ,
9598] ,
9699} ,
97100{
@@ -104,7 +107,7 @@ export default defineConfig({
104107items :[
105108{
106109label :'Webpage (HTML)' ,
107- link :'/developers/link-element'
110+ link :'/developers/link-element' ,
108111} ,
109112{
110113label :'Feed (RSS, Atom, JSON Feed)' ,
@@ -211,7 +214,7 @@ export default defineConfig({
211214{
212215label :'Web Monetization Specification' ,
213216link :'https://webmonetization.org/specification/' ,
214- attrs :{
217+ attrs :{
215218target :'_blank' ,
216219rel :'noopener noreferrer' ,
217220'data-icon' :'external' ,
@@ -234,7 +237,7 @@ export default defineConfig({
234237{
235238label :'Publisher tools' ,
236239link :'https://webmonetization.org/tools/' ,
237- attrs :{
240+ attrs :{
238241target :'_blank' ,
239242rel :'noopener noreferrer' ,
240243'data-icon' :'external' ,
@@ -249,38 +252,42 @@ export default defineConfig({
249252] ,
250253} ) ,
251254react ( ) ,
252- astroI18next ( ) ,
253255] ,
254256redirects :{
255- "/link-tag" :"/tools/link-tag" ,
256- "/prob-revshare" :"/tools/prob-revshare" ,
257- "/docs/api" :"/developers/interfaces" ,
258- "/docs/explainer" :"/docs" ,
259- "/docs/intro/sending-payments" :"/supporters/about-sending" ,
260- "/docs/intro/receiving-payments" :"/developers/about-receiving" ,
261- "/docs/intro/web-monetization-flow" :"/docs" ,
262- "/docs/intro/web-monetization-extension" :"/supporters/get-started" ,
263- "/docs/references/html" :"/developers/link-element" ,
264- "/docs/references/html-link-rel-monetization" :"/developers/link-element" ,
265- "/docs/references/rss-atom-jsonfeed" :"/developers/rss-atom-jsonfeed" ,
266- "/docs/references/activitystreams" :"/developers/activity-streams" ,
267- "/docs/references/onmonetization" :"/developers/interfaces" ,
268- "/docs/references/monetizationevent" :"/developers/interfaces" ,
269- "/docs/references/attributes/amountsent" :"/developers/events#amountsent" ,
270- "/docs/references/attributes/incomingpayment" :"/developers/events#incomingpayment" ,
271- "/docs/references/attributes/paymentpointer" :"/developers/events#paymentpointer" ,
272- "/docs/references/csp-monetization-src" :"/developers/csp" ,
273- "/docs/references/permissions-policy-monetization" :"/developers/permissions-policy" ,
274- "/docs/references/deprecations" :"/docs" ,
275- "/docs/guides/monetize-page" :"/developers/get-started" ,
276- "/docs/guides/remove-ads" :"/tutorials/remove-content" ,
277- "/docs/guides/provide-exclusive-content" :"/tutorials/show-content" ,
278- "/docs/guides/set-up-probabilistic-revenue-sharing" :"/tutorials/revenue-sharing" ,
279- "/docs/guides/add-a-streaming-payments-counter" :"/tutorials/contribution-counter" ,
280- "/docs/resources/glossary" :"/resources/glossary" ,
281- "/docs/resources/libraries" :"/developers/libraries" ,
282- "/docs/resources/op-wallets" :"/wallets" ,
283- "/docs/resources/get-involved" :"/resources/get-involved" ,
257+ '/link-tag' :'/tools/link-tag' ,
258+ '/prob-revshare' :'/tools/prob-revshare' ,
259+ '/docs/api' :'/developers/interfaces' ,
260+ '/docs/explainer' :'/docs' ,
261+ '/docs/intro/sending-payments' :'/supporters/about-sending' ,
262+ '/docs/intro/receiving-payments' :'/developers/about-receiving' ,
263+ '/docs/intro/web-monetization-flow' :'/docs' ,
264+ '/docs/intro/web-monetization-extension' :'/supporters/get-started' ,
265+ '/docs/references/html' :'/developers/link-element' ,
266+ '/docs/references/html-link-rel-monetization' :'/developers/link-element' ,
267+ '/docs/references/rss-atom-jsonfeed' :'/developers/rss-atom-jsonfeed' ,
268+ '/docs/references/activitystreams' :'/developers/activity-streams' ,
269+ '/docs/references/onmonetization' :'/developers/interfaces' ,
270+ '/docs/references/monetizationevent' :'/developers/interfaces' ,
271+ '/docs/references/attributes/amountsent' :'/developers/events#amountsent' ,
272+ '/docs/references/attributes/incomingpayment' :
273+ '/developers/events#incomingpayment' ,
274+ '/docs/references/attributes/paymentpointer' :
275+ '/developers/events#paymentpointer' ,
276+ '/docs/references/csp-monetization-src' :'/developers/csp' ,
277+ '/docs/references/permissions-policy-monetization' :
278+ '/developers/permissions-policy' ,
279+ '/docs/references/deprecations' :'/docs' ,
280+ '/docs/guides/monetize-page' :'/developers/get-started' ,
281+ '/docs/guides/remove-ads' :'/tutorials/remove-content' ,
282+ '/docs/guides/provide-exclusive-content' :'/tutorials/show-content' ,
283+ '/docs/guides/set-up-probabilistic-revenue-sharing' :
284+ '/tutorials/revenue-sharing' ,
285+ '/docs/guides/add-a-streaming-payments-counter' :
286+ '/tutorials/contribution-counter' ,
287+ '/docs/resources/glossary' :'/resources/glossary' ,
288+ '/docs/resources/libraries' :'/developers/libraries' ,
289+ '/docs/resources/op-wallets' :'/wallets' ,
290+ '/docs/resources/get-involved' :'/resources/get-involved' ,
284291} ,
285292server :{
286293port :1100 ,