Skip to content

Commit 744f860

Browse files
get /docs/ working without changing all links other than homepage
1 parent 1fa6590 commit 744f860

2 files changed

Lines changed: 37 additions & 37 deletions

File tree

src/components/home-page.tsx

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,62 +4,62 @@ const navigation = [
44
{
55
title: "For Developers",
66
links: [
7-
["Build a Program", "/developers/tutorials/build"],
8-
["Proof Lifecycle", "/developers/proof-lifecycle"],
9-
["Request a Proof", "/developers/tutorials/request"],
10-
["Tracking a Request", "developers/tutorials/tracking"],
11-
["Use a Proof", "developers/tutorials/use"],
7+
["Build a Program", "/docs/developers/tutorials/build"],
8+
["Proof Lifecycle", "/docs/developers/proof-lifecycle"],
9+
["Request a Proof", "/docs/developers/tutorials/request"],
10+
["Tracking a Request", "/docs/developers/tutorials/tracking"],
11+
["Use a Proof", "/docs/developers/tutorials/use"],
1212
],
1313
},
1414
{
1515
title: "For Provers",
1616
links: [
17-
["The Boundless Proving Stack", "/provers/proving-stack"],
18-
["Broker Config", "/provers/broker"],
19-
["Monitoring", "/provers/monitoring"],
20-
["Performance Optimization", "/provers/performance-optimization"],
17+
["The Boundless Proving Stack", "/docs/provers/proving-stack"],
18+
["Broker Config", "/docs/provers/broker"],
19+
["Monitoring", "/docs/provers/monitoring"],
20+
["Performance Optimization", "/docs/provers/performance-optimization"],
2121
],
2222
},
2323
{
2424
title: "Tooling",
2525
links: [
2626
["Boundless Mainnet Explorer", "https://explorer.boundless.network/orders"],
2727
["Boundless Testnet Explorer", "https://explorer.testnet.boundless.network/orders"],
28-
["Boundless CLI", "/developers/tooling/sdk"],
29-
["Boundless SDK", "/developers/tooling/sdk"],
30-
["Bento CLI", "/developers/tooling/cli"],
28+
["Boundless CLI", "/docs/developers/tooling/sdk"],
29+
["Boundless SDK", "/docs/developers/tooling/sdk"],
30+
["Bento CLI", "/docs/developers/tooling/cli"],
3131
],
3232
},
3333
{
3434
title: "Tutorials",
3535
links: [
36-
["Callbacks", "/developers/tutorials/callbacks"],
37-
["Proof Composition", "/developers/tutorials/proof-composition"],
38-
["Proof Types", "/developers/tutorials/proof-types"],
39-
["Setting up a Trusted Prover", "/developers/tutorials/sensitive-inputs"],
40-
["Smart Contract Requestors", "/developers/tutorials/smart-contract-requestor"],
41-
["Migrating from Bonsai", "/developers/tutorials/bonsai"],
36+
["Callbacks", "/docs/developers/tutorials/callbacks"],
37+
["Proof Composition", "/docs/developers/tutorials/proof-composition"],
38+
["Proof Types", "/docs/developers/tutorials/proof-types"],
39+
["Setting up a Trusted Prover", "/docs/developers/tutorials/sensitive-inputs"],
40+
["Smart Contract Requestors", "/docs/developers/tutorials/smart-contract-requestor"],
41+
["Migrating from Bonsai", "/docs/developers/tutorials/bonsai"],
4242
],
4343
},
4444
{
4545
title: "$ZKC",
4646
links: [
47-
["$ZKC Quick Start", "/zkc/quick-start"],
48-
["$ZKC as Proving Collateral", "/zkc/collateral"],
49-
["ZK Mining: Wallet Setup", "/zkc/mining/wallet-setup"],
50-
["ZK Mining: Enabling ZK Mining", "/zkc/mining/enable"],
51-
["ZK Mining: Walkthrough", "/zkc/mining/walkthrough"],
52-
["ZK Mining: Claiming Rewards", "/zkc/mining/claiming-rewards"],
47+
["$ZKC Quick Start", "/docs/zkc/quick-start"],
48+
["$ZKC as Proving Collateral", "/docs/zkc/collateral"],
49+
["ZK Mining: Wallet Setup", "/docs/zkc/mining/wallet-setup"],
50+
["ZK Mining: Enabling ZK Mining", "/docs/zkc/mining/enable"],
51+
["ZK Mining: Walkthrough", "/docs/zkc/mining/walkthrough"],
52+
["ZK Mining: Claiming Rewards", "/docs/zkc/mining/claiming-rewards"],
5353
],
5454
},
5555
{
5656
title: "Reference",
5757
links: [
58-
["Chains & Deployments", "/developers/smart-contracts/deployments"],
59-
["Verifier Contracts", "/developers/smart-contracts/verifier-contracts"],
60-
["Boundless Smart Contract Docs", "/developers/smart-contracts/reference"],
58+
["Chains & Deployments", "/docs/developers/smart-contracts/deployments"],
59+
["Verifier Contracts", "/docs/developers/smart-contracts/verifier-contracts"],
60+
["Boundless Smart Contract Docs", "/docs/developers/smart-contracts/reference"],
6161
["$ZKC Token Source Code & Docs", "https://github.com/boundless-xyz/zkc?tab=readme-ov-file#zkc"],
62-
["Bento Technical Design", "/provers/bento"],
62+
["Bento Technical Design", "/docs/provers/bento"],
6363
],
6464
},
6565
];
@@ -85,25 +85,25 @@ export default function HomePage() {
8585
<h1 className="font-semibold text-2xl sm:text-2xl">Get Started</h1>
8686
<div className="flex flex-col gap-3 sm:flex-row">
8787
<a
88-
href="/developers/quick-start"
88+
href="/docs/developers/quick-start"
8989
className="rounded-lg border border-neutral-400 px-4 py-1 font-bold text-[20px] hover:bg-neutral-100 dark:border-neutral-700 dark:hover:bg-neutral-800"
9090
>
9191
Developers
9292
</a>
9393
<a
94-
href="/provers/quick-start"
94+
href="/docs/provers/quick-start"
9595
className="rounded-lg border border-neutral-400 px-4 py-1 font-bold text-[20px] hover:bg-neutral-100 dark:border-neutral-700 dark:hover:bg-neutral-800"
9696
>
9797
Provers
9898
</a>
9999
<a
100-
href="/zkc/quick-start"
100+
href="/docs/zkc/quick-start"
101101
className="rounded-lg border border-neutral-400 px-4 py-1 font-bold text-[20px] hover:bg-neutral-100 dark:border-neutral-700 dark:hover:bg-neutral-800"
102102
>
103103
$ZKC
104104
</a>
105105
<a
106-
href="/zkc/mining/overview"
106+
href="/docs/zkc/mining/overview"
107107
className="rounded-lg border border-neutral-400 px-4 py-1 font-bold text-[20px] hover:bg-neutral-100 dark:border-neutral-700 dark:hover:bg-neutral-800"
108108
>
109109
ZK Mining

vocs.config.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,9 +284,13 @@ export function generateSitemap() {
284284

285285
export default defineConfig({
286286
rootDir: "src",
287-
baseUrl: 'https://boundless-xyz.github.io',
288287
basePath: '/docs',
288+
baseUrl: 'https://boundless-xyz.github.io',
289289
logoUrl: "/logo.svg",
290+
vite: {
291+
base: '/docs/',
292+
plugins: [generateSitemap()],
293+
},
290294
topNav: [
291295
{ text: "Explorer", link: "https://explorer.boundless.network/orders" },
292296
{ text: "Support Forum", link: "https://github.com/boundless-xyz/boundless/discussions" }
@@ -296,10 +300,6 @@ export default defineConfig({
296300
google: "Ubuntu Mono",
297301
},
298302
},
299-
vite: {
300-
base: '/docs/',
301-
plugins: [generateSitemap()],
302-
},
303303
sidebar: SIDEBAR_ITEMS,
304304
socials: [
305305
{

0 commit comments

Comments
 (0)