Skip to content

Commit cd45bad

Browse files
committed
refactor(vitepress): drop .html from local urls
1 parent d56148e commit cd45bad

File tree

3 files changed

+64
-69
lines changed

3 files changed

+64
-69
lines changed

main/.vitepress/config.mjs

Lines changed: 62 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,6 @@ export default defineConfig({
139139
],
140140
sitemap: {
141141
hostname: 'https://docs.agoric.com',
142-
transformItems: items => {
143-
// include local redirects to preserve SEO
144-
items.push(Object.keys(rewrites).map(url => ({ url })));
145-
return items;
146-
},
147142
},
148143
plugins: [],
149144
/* --- ROUTE REWRITES / REDIRECTS --- */
@@ -181,11 +176,11 @@ export default defineConfig({
181176
{ text: 'Getting Started', link: '/guides/getting-started/' },
182177
{
183178
text: 'Smart Wallet Dapp Architecture',
184-
link: '/guides/getting-started/contract-rpc.html',
179+
link: '/guides/getting-started/contract-rpc',
185180
},
186181
{
187182
text: 'Deploying Smart Contracts',
188-
link: '/guides/getting-started/deploying.html',
183+
link: '/guides/getting-started/deploying',
189184
},
190185
],
191186
},
@@ -196,7 +191,7 @@ export default defineConfig({
196191
items: [
197192
{
198193
text: 'Smart Contract Basics',
199-
link: '/guides/zoe/contract-basics.html',
194+
link: '/guides/zoe/contract-basics',
200195
},
201196
{ text: 'Zoe Overview', link: '/guides/zoe/' },
202197
],
@@ -209,7 +204,7 @@ export default defineConfig({
209204
{ text: 'Agoric CLI Reference', link: '/guides/agoric-cli/' },
210205
{
211206
text: 'Using agd to make queries and transactions',
212-
link: '/guides/agoric-cli/agd-query-tx.html',
207+
link: '/guides/agoric-cli/agd-query-tx',
213208
},
214209
],
215210
},
@@ -224,19 +219,19 @@ export default defineConfig({
224219
},
225220
{
226221
text: 'Hardened JavaScript',
227-
link: '/guides/js-programming/hardened-js.html',
222+
link: '/guides/js-programming/hardened-js',
228223
},
229224
{
230225
text: 'Eventual Send with E()',
231-
link: '/guides/js-programming/eventual-send.html',
226+
link: '/guides/js-programming/eventual-send',
232227
},
233228
{
234229
text: 'Far(), Remotable, and Marshaling',
235-
link: '/guides/js-programming/far.html',
230+
link: '/guides/js-programming/far',
236231
},
237232
{
238233
text: 'Notifiers and Subscriptions',
239-
link: '/guides/js-programming/notifiers.html',
234+
link: '/guides/js-programming/notifiers',
240235
},
241236
],
242237
},
@@ -257,16 +252,16 @@ export default defineConfig({
257252
{ text: 'ERTP Overview', link: '/guides/ertp/' },
258253
{
259254
text: 'Amounts, Values, and Brands',
260-
link: '/guides/ertp/amounts.html',
255+
link: '/guides/ertp/amounts',
261256
},
262-
{ text: 'AmountMath', link: '/guides/ertp/amount-math.html' },
257+
{ text: 'AmountMath', link: '/guides/ertp/amount-math' },
263258
{
264259
text: 'Issuers and Mints',
265-
link: '/guides/ertp/issuers-and-mints.html',
260+
link: '/guides/ertp/issuers-and-mints',
266261
},
267262
{
268263
text: 'Purses and Payments',
269-
link: '/guides/ertp/purses-and-payments.html',
264+
link: '/guides/ertp/purses-and-payments',
270265
},
271266
],
272267
},
@@ -281,15 +276,15 @@ export default defineConfig({
281276
},
282277
{
283278
text: 'Declaring Required Capabilities',
284-
link: '/guides/coreeval/permissions.html',
279+
link: '/guides/coreeval/permissions',
285280
},
286281
{
287282
text: 'Code the Proposal',
288-
link: '/guides/coreeval/proposal.html',
283+
link: '/guides/coreeval/proposal',
289284
},
290285
{
291286
text: 'Deploy a Governance Proposal to a Local Testnet',
292-
link: '/guides/coreeval/local-testnet.html',
287+
link: '/guides/coreeval/local-testnet',
293288
},
294289
],
295290
},
@@ -301,72 +296,72 @@ export default defineConfig({
301296
{ text: 'Example Zoe Contracts', link: '/guides/zoe/contracts/' },
302297
{
303298
text: 'Oracle Query Contract',
304-
link: '/guides/zoe/contracts/oracle.html',
299+
link: '/guides/zoe/contracts/oracle',
305300
},
306301
{
307302
text: 'Vault Contract',
308-
link: '/guides/zoe/contracts/vault.html',
303+
link: '/guides/zoe/contracts/vault',
309304
},
310-
{ text: 'Loan Contract', link: '/guides/zoe/contracts/loan.html' },
305+
{ text: 'Loan Contract', link: '/guides/zoe/contracts/loan' },
311306
{
312307
text: 'Funded Call Spread Contract',
313-
link: '/guides/zoe/contracts/fundedCallSpread.html',
308+
link: '/guides/zoe/contracts/fundedCallSpread',
314309
},
315310
{
316311
text: 'Priced Call Spread Contract',
317-
link: '/guides/zoe/contracts/pricedCallSpread.html',
312+
link: '/guides/zoe/contracts/pricedCallSpread',
318313
},
319314
{
320315
text: 'Covered Call Contract',
321-
link: '/guides/zoe/contracts/covered-call.html',
316+
link: '/guides/zoe/contracts/covered-call',
322317
},
323318
{
324319
text: 'OTC Desk Contract',
325-
link: '/guides/zoe/contracts/otc-desk.html',
320+
link: '/guides/zoe/contracts/otc-desk',
326321
},
327322
{
328323
text: 'ConstantProduct AMM Contract',
329-
link: '/guides/zoe/contracts/constantProductAMM.html',
324+
link: '/guides/zoe/contracts/constantProductAMM',
330325
},
331326
{
332327
text: 'Sell Items Contract',
333-
link: '/guides/zoe/contracts/sell-items.html',
328+
link: '/guides/zoe/contracts/sell-items',
334329
},
335330
{
336331
text: 'Atomic Swap Contract',
337-
link: '/guides/zoe/contracts/atomic-swap.html',
332+
link: '/guides/zoe/contracts/atomic-swap',
338333
},
339334
{
340335
text: 'Barter Exchange Contract',
341-
link: '/guides/zoe/contracts/barter-exchange.html',
336+
link: '/guides/zoe/contracts/barter-exchange',
342337
},
343338
{
344339
text: 'Second-Price Auction Contract',
345-
link: '/guides/zoe/contracts/second-price-auction.html',
340+
link: '/guides/zoe/contracts/second-price-auction',
346341
},
347342
{
348343
text: 'Simple Exchange Contract',
349-
link: '/guides/zoe/contracts/simple-exchange.html',
344+
link: '/guides/zoe/contracts/simple-exchange',
350345
},
351346
{
352347
text: 'Escrow To Vote Contract',
353-
link: '/guides/zoe/contracts/escrow-to-vote.html',
348+
link: '/guides/zoe/contracts/escrow-to-vote',
354349
},
355350
{
356351
text: 'Mint Payments Contract',
357-
link: '/guides/zoe/contracts/mint-payments.html',
352+
link: '/guides/zoe/contracts/mint-payments',
358353
},
359354
{
360355
text: 'Mint and Sell NFTs Contract',
361-
link: '/guides/zoe/contracts/mint-and-sell-nfts.html',
356+
link: '/guides/zoe/contracts/mint-and-sell-nfts',
362357
},
363358
{
364359
text: 'Use Object Contract',
365-
link: '/guides/zoe/contracts/use-obj-example.html',
360+
link: '/guides/zoe/contracts/use-obj-example',
366361
},
367362
{
368363
text: 'Automatic Refund Contract',
369-
link: '/guides/zoe/contracts/automatic-refund.html',
364+
link: '/guides/zoe/contracts/automatic-refund',
370365
},
371366
],
372367
},
@@ -381,7 +376,7 @@ export default defineConfig({
381376
},
382377
{
383378
text: 'PSM Contract',
384-
link: '/guides/zoe/actual-contracts/PSM.html',
379+
link: '/guides/zoe/actual-contracts/PSM',
385380
},
386381
],
387382
},
@@ -393,19 +388,19 @@ export default defineConfig({
393388
{ text: 'Agoric Dapps', link: '/guides/dapps/' },
394389
{
395390
text: 'Dapp Templates',
396-
link: '/guides/dapps/dapp-templates.html',
391+
link: '/guides/dapps/dapp-templates',
397392
},
398393
{
399394
text: 'Starting Multiuser Dapps',
400-
link: '/guides/dapps/starting-multiuser-dapps.html',
395+
link: '/guides/dapps/starting-multiuser-dapps',
401396
},
402397
{
403398
text: 'Deploying Smart Contracts',
404-
link: '/guides/getting-started/deploying.html',
399+
link: '/guides/getting-started/deploying',
405400
},
406401
{
407402
text: 'Smart Wallet Dapp Architecture',
408-
link: '/guides/getting-started/contract-rpc.html',
403+
link: '/guides/getting-started/contract-rpc',
409404
},
410405
],
411406
},
@@ -417,21 +412,21 @@ export default defineConfig({
417412
},
418413
{
419414
text: 'Chainlink Integration',
420-
link: '/guides/chainlink-integration.html',
415+
link: '/guides/chainlink-integration',
421416
collapsed: true,
422417
items: [],
423418
},
424419
{
425420
text: 'SubQuery Indexing',
426-
link: '/guides/subquery-indexing.html',
421+
link: '/guides/subquery-indexing',
427422
collapsed: true,
428423
items: [],
429424
},
430425
],
431426
'/reference/': [
432427
{
433428
text: 'Wallet API',
434-
link: '/reference/wallet-api.html',
429+
link: '/reference/wallet-api',
435430
collapsed: true,
436431
items: [],
437432
},
@@ -441,21 +436,21 @@ export default defineConfig({
441436
collapsed: true,
442437
items: [
443438
{ text: 'ERTP API', link: '/reference/ertp-api/' },
444-
{ text: 'Issuer Object', link: '/reference/ertp-api/issuer.html' },
445-
{ text: 'Mint Object', link: '/reference/ertp-api/mint.html' },
446-
{ text: 'Brand Object', link: '/reference/ertp-api/brand.html' },
447-
{ text: 'Purse Object', link: '/reference/ertp-api/purse.html' },
439+
{ text: 'Issuer Object', link: '/reference/ertp-api/issuer' },
440+
{ text: 'Mint Object', link: '/reference/ertp-api/mint' },
441+
{ text: 'Brand Object', link: '/reference/ertp-api/brand' },
442+
{ text: 'Purse Object', link: '/reference/ertp-api/purse' },
448443
{
449444
text: 'Payment Object',
450-
link: '/reference/ertp-api/payment.html',
445+
link: '/reference/ertp-api/payment',
451446
},
452447
{
453448
text: 'AmountMath Object',
454-
link: '/reference/ertp-api/amount-math.html',
449+
link: '/reference/ertp-api/amount-math',
455450
},
456451
{
457452
text: 'ERTP Data Types',
458-
link: '/reference/ertp-api/ertp-data-types.html',
453+
link: '/reference/ertp-api/ertp-data-types',
459454
},
460455
],
461456
},
@@ -467,15 +462,15 @@ export default defineConfig({
467462
{ text: 'Agoric REPL', link: '/reference/repl/' },
468463
{
469464
text: 'Timer Services',
470-
link: '/reference/repl/timerServices.html',
465+
link: '/reference/repl/timerServices',
471466
},
472-
{ text: 'The Agoric Board', link: '/reference/repl/board.html' },
473-
{ text: 'Network API', link: '/reference/repl/networking.html' },
467+
{ text: 'The Agoric Board', link: '/reference/repl/board' },
468+
{ text: 'Network API', link: '/reference/repl/networking' },
474469
{
475470
text: 'Price Authority',
476-
link: '/reference/repl/priceAuthority.html',
471+
link: '/reference/repl/priceAuthority',
477472
},
478-
{ text: 'Scratch', link: '/reference/repl/scratch.html' },
473+
{ text: 'Scratch', link: '/reference/repl/scratch' },
479474
],
480475
},
481476
{
@@ -484,32 +479,32 @@ export default defineConfig({
484479
collapsed: true,
485480
items: [
486481
{ text: 'Zoe API', link: '/reference/zoe-api/' },
487-
{ text: 'Zoe Service', link: '/reference/zoe-api/zoe.html' },
482+
{ text: 'Zoe Service', link: '/reference/zoe-api/zoe' },
488483
{
489484
text: 'UserSeat Object',
490-
link: '/reference/zoe-api/user-seat.html',
485+
link: '/reference/zoe-api/user-seat',
491486
},
492487
{
493488
text: 'Zoe Contract Facet',
494-
link: '/reference/zoe-api/zoe-contract-facet.html',
489+
link: '/reference/zoe-api/zoe-contract-facet',
495490
},
496-
{ text: 'ZCFSeat Object', link: '/reference/zoe-api/zcfseat.html' },
497-
{ text: 'ZCFMint Object', link: '/reference/zoe-api/zcfmint.html' },
491+
{ text: 'ZCFSeat Object', link: '/reference/zoe-api/zcfseat' },
492+
{ text: 'ZCFMint Object', link: '/reference/zoe-api/zcfmint' },
498493
{
499494
text: 'PriceAuthority Object',
500-
link: '/reference/zoe-api/price-authority.html',
495+
link: '/reference/zoe-api/price-authority',
501496
},
502497
{
503498
text: 'ZoeHelper Functions',
504-
link: '/reference/zoe-api/zoe-helpers.html',
499+
link: '/reference/zoe-api/zoe-helpers',
505500
},
506501
{
507502
text: 'Ratio Math Functions',
508-
link: '/reference/zoe-api/ratio-math.html',
503+
link: '/reference/zoe-api/ratio-math',
509504
},
510505
{
511506
text: 'Zoe Data Types',
512-
link: '/reference/zoe-api/zoe-data-types.html',
507+
link: '/reference/zoe-api/zoe-data-types',
513508
},
514509
],
515510
},

main/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ footer: Apache-2.0 Licensed | Copyright © 2023 - Agoric
7272
text="Once you've completed the Getting Started, here are a few next steps."
7373
/>
7474
<h3 style="margin-top: 0em;">
75-
<a href="/guides/js-programming/hardened-js.html">Learn the basics of HardenedJS</a>
75+
<a href="/guides/js-programming/hardened-js">Learn the basics of HardenedJS</a>
7676
</h3>
7777
It's JavaScript with the safety you expect - see why MetaMask uses it to safely run their Snaps technology for 30M+ customers.
7878
<h3>

snippets/test-marshal.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ const makeTranslationTable = (makeSlot, makeVal) => {
128128
* 1. A message consisting of the method name `install`
129129
* with the `bundle` argument is marshaled..."
130130
*
131-
* [1]: https://docs.agoric.com/guides/js-programming/eventual-send.html#eventual-send
131+
* [1]: https://docs.agoric.com/guides/js-programming/eventual-send#eventual-send
132132
*/
133133
test.serial(
134134
'marshal messages from E(zoe).install(), E(zoe).startInstance()',

0 commit comments

Comments
 (0)