Skip to content

Commit 4f6525b

Browse files
committed
navigation updates
1 parent aeaed2e commit 4f6525b

File tree

5 files changed

+1030
-35
lines changed

5 files changed

+1030
-35
lines changed

docusaurus.config.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ const config: Config = {
5959
sidebarPath: './sidebars.ts',
6060
// Remove this to remove the "edit this page" links.
6161
editUrl:
62-
'https://github.com/cadence-workflow/Cadence-Docs/tree/master/src/docs',
62+
'https://github.com/cadence-workflow/Cadence-Docs/tree/master/',
6363
},
6464
blog: {
6565
blogTitle: 'Cadence Blog',
@@ -72,7 +72,7 @@ const config: Config = {
7272
},
7373
// Remove this to remove the "edit this page" links.
7474
editUrl:
75-
'https://github.com/cadence-workflow/Cadence-Docs/tree/master/src/blog/_posts',
75+
'https://github.com/cadence-workflow/Cadence-Docs/tree/master/',
7676
// Useful options to enforce blogging best practices
7777
onInlineTags: 'warn',
7878
onInlineAuthors: 'warn',
@@ -131,13 +131,13 @@ const config: Config = {
131131
} satisfies DocsOptions,
132132
],
133133
[
134-
'client-redirects',
134+
'@docusaurus/plugin-client-redirects',
135135
{
136+
// redirects here only work in production build, not development
136137
fromExtensions: ['html'],
137138
createRedirects(routePath) {
138-
// Redirect to /docs from /docs/introduction (now docs root doc)
139139
if (routePath === '/docs' || routePath === '/docs/') {
140-
return [`${routePath}/introduction`];
140+
return [`${routePath}/get-started`];
141141
}
142142
return [];
143143
},
@@ -253,19 +253,19 @@ const config: Config = {
253253
},
254254
{
255255
label: 'Go Client',
256-
to: 'docs/get-started/',
256+
to: 'docs/go-client/',
257257
},
258258
{
259259
label: 'Java Client',
260-
to: 'docs/get-started/',
260+
to: 'docs/java-client/',
261261
},
262262
{
263263
label: 'Command Line Interface',
264-
to: 'docs/get-started/',
264+
to: 'docs/cli/',
265265
},
266266
{
267267
label: 'Operation Guide',
268-
to: 'docs/get-started/',
268+
to: 'docs/operation-guide/',
269269
},
270270
],
271271
},

0 commit comments

Comments
 (0)