@@ -26,194 +26,207 @@ export default defineConfig({
26
26
label : 'English' ,
27
27
lang : 'en' ,
28
28
} ,
29
+ es : {
30
+ label : 'Español' ,
31
+ lang : 'es' ,
32
+ } ,
33
+ fr : {
34
+ label : 'Français' ,
35
+ lang : 'fr' ,
36
+ } ,
29
37
} ,
30
38
components : {
31
39
Header : './src/components/docs/Header.astro' ,
32
- PageSidebar : './src/components/docs/PageSidebar.astro' ,
33
- Footer : './src/components/docs/Footer.astro' ,
34
- PageTitle : './src/components/docs/PageTitle.astro' ,
35
40
} ,
36
41
social : {
37
42
github : 'https://github.com/WICG/webmonetization' ,
38
43
} ,
39
44
sidebar : [
40
45
{
41
46
label : 'Intro to Web Monetization' ,
42
- link : '/docs/' ,
43
- } ,
44
- {
45
- label : 'Learn about Web Monetization payments' ,
46
47
collapsed : true ,
47
48
items : [
48
49
{
49
- label : 'Web Monetization payments ' ,
50
- link : '/docs/payments/payments ' ,
50
+ label : 'Overview ' ,
51
+ link : '/docs/' ,
51
52
} ,
52
53
{
53
54
label : 'Sending payments' ,
54
- link : '/docs/payments/send -payments' ,
55
+ link : '/docs/intro/sending -payments' ,
55
56
} ,
56
57
{
57
58
label : 'Receiving payments' ,
58
- link : '/docs/payments/receive-payments' ,
59
- } ,
60
- ] ,
61
- } ,
62
- {
63
- label : 'Get a wallet address' ,
64
- collapsed : true ,
65
- items : [
66
- {
67
- label : 'FAQ' ,
68
- link : '/docs/wallet-address/wallet-faq' ,
69
- } ,
70
- {
71
- label : 'Wallet address providers' ,
72
- link : '/docs/wallet-address/wallets' ,
73
- } ,
74
- {
75
- label : 'Interledger test wallet' ,
76
- link : '/docs/wallet-address/ilf-test-wallet' ,
77
- } ,
78
- ] ,
79
- } ,
80
- {
81
- label : 'Support web monetized content' ,
82
- collapsed : true ,
83
- items : [
84
- {
85
- label : 'Overview' ,
86
- link : '/docs/support/overview' ,
59
+ link : '/docs/intro/receiving-payments' ,
87
60
} ,
88
61
{
89
- label : 'Quick start guide ' ,
90
- link : '/docs/support/quick-start-guide ' ,
62
+ label : 'Web Monetization flow ' ,
63
+ link : '/docs/intro/web-monetization-flow ' ,
91
64
} ,
92
65
] ,
93
66
} ,
94
67
{
95
- label : 'Implement Web Monetization ' ,
68
+ label : 'References ' ,
96
69
collapsed : true ,
97
70
items : [
98
71
{
99
- label : 'Overview' ,
100
- link : '/docs/implement/overview' ,
101
- } ,
102
- {
103
- label : 'Quick start guide' ,
104
- link : '/docs/implement/quick-start-guide' ,
105
- } ,
106
- {
107
- label : 'APIs' ,
108
- collapsed : false ,
72
+ label : 'Web Monetization API' ,
109
73
items : [
110
74
{
111
- label : 'HTML DOM API' ,
112
- collapsed : false ,
75
+ label : 'HTML <link> rel=monetization' ,
76
+ link : '/docs/references/html-link-rel-monetization' ,
77
+ } ,
78
+ {
79
+ label : 'Monetization events' ,
80
+ collapsed : true ,
113
81
items : [
114
82
{
115
- label : 'Monetization <link> element ' ,
116
- link : '/docs/implement/link ' ,
83
+ label : 'MonetizationEvent ' ,
84
+ link : '/docs/references/monetizationevent ' ,
117
85
} ,
118
86
{
119
- label : 'onmonetization event handler ' ,
120
- link : '/docs/implement/onmonetization ' ,
87
+ label : 'amountSent ' ,
88
+ link : '/docs/references/attributes/amountsent ' ,
121
89
} ,
122
- ] ,
123
- } ,
124
- {
125
- label : 'Web Monetization API' ,
126
- collapsed : false ,
127
- items : [
128
90
{
129
- label : 'Monetization interfaces ' ,
130
- link : '/docs/implement/wmapi-interfaces ' ,
91
+ label : 'incomingPayment ' ,
92
+ link : '/docs/references/attributes/incomingpayment ' ,
131
93
} ,
132
94
{
133
- label : 'Monetization events' ,
134
- link : '/docs/implement/events' ,
95
+ label : 'paymentPointer' ,
96
+ link : '/docs/references/attributes/paymentpointer' ,
97
+ } ,
98
+ {
99
+ label : 'amount' ,
100
+ link : '/docs/references/attributes/amount' ,
101
+ badge : { text : 'deprecated' , variant : 'danger' } ,
102
+ } ,
103
+ {
104
+ label : 'assetCode' ,
105
+ link : '/docs/references/attributes/assetcode' ,
106
+ badge : { text : 'deprecated' , variant : 'danger' } ,
107
+ } ,
108
+ {
109
+ label : 'assetScale' ,
110
+ link : '/docs/references/attributes/assetscale' ,
111
+ badge : { text : 'deprecated' , variant : 'danger' } ,
112
+ } ,
113
+ {
114
+ label : 'receipt' ,
115
+ link : '/docs/references/attributes/receipt' ,
116
+ badge : { text : 'deprecated' , variant : 'danger' } ,
135
117
} ,
136
118
] ,
137
119
} ,
138
120
] ,
139
121
} ,
140
122
{
141
- label : 'HTTP Headers' ,
142
- collapsed : true ,
123
+ label : 'HTTP headers' ,
143
124
items : [
144
125
{
145
- label : 'Content Security Policy (CSP) ' ,
146
- link : '/docs/implement /csp' ,
126
+ label : 'Content- Security- Policy: monetization-src ' ,
127
+ link : '/docs/references /csp-monetization-src ' ,
147
128
} ,
148
129
{
149
- label : 'Permissions Policy' ,
150
- link : '/docs/implement /permissions-policy' ,
130
+ label : 'Permissions- Policy: monetization ' ,
131
+ link : '/docs/references /permissions-policy-monetization ' ,
151
132
} ,
152
133
] ,
153
134
} ,
154
135
{
155
- label : 'Guides' ,
156
- collapsed : true ,
136
+ label : 'Events' ,
157
137
items : [
158
138
{
159
- label : 'Provide Exclusive Content' ,
160
- link : '/docs/guides/provide-exclusive-content' ,
161
- } ,
162
- {
163
- label : 'Add a streaming payments counter' ,
164
- link : '/docs/guides/add-a-streaming-payments-counter' ,
165
- } ,
166
- {
167
- label : 'Remove ads' ,
168
- link : '/docs/guides/remove-ads' ,
169
- } ,
170
- {
171
- label : 'Set up probabilistic revenue sharing' ,
172
- link : '/docs/guides/set-up-probabilistic-revenue-sharing' ,
139
+ label : 'GlobalEventHandlers: onmonetization' ,
140
+ link : '/docs/references/onmonetization' ,
173
141
} ,
174
142
] ,
175
143
} ,
144
+ ] ,
145
+ } ,
146
+ {
147
+ label : 'Guides' ,
148
+ collapsed : true ,
149
+ items : [
176
150
{
177
- label : 'Community content' ,
178
- collapsed : true ,
179
- items : [
180
- {
181
- label : 'Get involved' ,
182
- link : '/docs/implement/get-involved' ,
183
- } ,
184
- {
185
- label : 'Libraries' ,
186
- link : '/docs/resources/libraries' ,
187
- } ,
188
- ] ,
151
+ label : 'Add Web Monetization to a page' ,
152
+ link : '/docs/guides/monetize-page' ,
153
+ } ,
154
+ {
155
+ label : 'Remove ads' ,
156
+ link : '/docs/guides/remove-ads' ,
189
157
} ,
190
158
{
191
- label : 'Resources' ,
159
+ label : 'Provide exclusive content' ,
160
+ link : '/docs/guides/provide-exclusive-content' ,
161
+ } ,
162
+ {
163
+ label : 'Set up probabilistic revenue sharing' ,
164
+ link : '/docs/guides/set-up-probabilistic-revenue-sharing' ,
165
+ } ,
166
+ {
167
+ label : 'Add a streaming payments counter' ,
168
+ link : '/docs/guides/add-a-streaming-payments-counter' ,
169
+ } ,
170
+ ] ,
171
+ } ,
172
+ {
173
+ label : 'Resources' ,
174
+ collapsed : true ,
175
+ items : [
176
+ {
177
+ label : 'Glossary' ,
178
+ link : '/docs/resources/glossary' ,
179
+ } ,
180
+ {
181
+ label : 'Libraries' ,
182
+ link : '/docs/resources/libraries' ,
183
+ } ,
184
+ {
185
+ label : 'Open Payments-enabled wallets' ,
186
+ link : '/docs/resources/op-wallets' ,
187
+ } ,
188
+ {
189
+ label : 'Get involved' ,
190
+ link : '/docs/resources/get-involved' ,
191
+ } ,
192
+ {
193
+ label : 'External resources' ,
192
194
collapsed : true ,
193
195
items : [
194
196
{
195
- label : 'Glossary' ,
196
- link : '/docs/resources/glossary' ,
197
+ label : 'Interledger' ,
198
+ link : 'https://interledger.org/' ,
199
+ attrs : { target : '_blank' } ,
197
200
} ,
198
201
{
199
- label : 'Specification ' ,
200
- link : 'https://webmonetization.org/specification /' ,
202
+ label : 'Open Payments API ' ,
203
+ link : 'https://openpayments.guide /' ,
201
204
attrs : { target : '_blank' } ,
202
205
} ,
203
206
{
204
- label : 'Interledger ' ,
205
- link : 'https://interledger.org ' ,
207
+ label : 'Payment Handler API ' ,
208
+ link : 'https://w3c.github.io/payment-handler/ ' ,
206
209
attrs : { target : '_blank' } ,
207
210
} ,
208
211
{
209
- label : 'Open Payments' ,
210
- link : 'https://openpayments.guide/' ,
212
+ label : 'Payment pointers' ,
213
+ link : 'https://paymentpointers.org/' ,
214
+ attrs : { target : '_blank' } ,
215
+ } ,
216
+ {
217
+ label : 'Payment Request API' ,
218
+ link : 'https://www.w3.org/TR/payment-request/' ,
211
219
attrs : { target : '_blank' } ,
212
220
} ,
213
221
] ,
214
222
} ,
215
223
] ,
216
224
} ,
225
+ {
226
+ label : 'Specification' ,
227
+ link : 'https://webmonetization.org/specification/' ,
228
+ attrs : { target : '_blank' } ,
229
+ } ,
217
230
] ,
218
231
} ) ,
219
232
react ( ) ,
0 commit comments