Skip to content

Commit cd79a56

Browse files
Update docusaurus.config.ts
set v25 as current
1 parent d0c218b commit cd79a56

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

docusaurus-docs/docusaurus.config.ts

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,18 @@ const config: Config = {
5555
sidebarPath: './sidebars.ts',
5656
remarkPlugins: [remarkMath],
5757
rehypePlugins: [rehypeKatex],
58+
includeCurrentVersion: true,
59+
lastVersion: 'current',
60+
versions: {
61+
'current': {
62+
label: 'v25.0 (latest)',
63+
path: '',
64+
},
65+
'v24.1': {
66+
label: 'v24.1',
67+
path: 'v24.1',
68+
},
69+
},
5870
editUrl: ({versionDocsDirPath, docPath}) => {
5971
return `https://github.com/dgraph-io/dgraph-docs/edit/main/docusaurus-docs/${versionDocsDirPath || 'docs'}/${docPath}`;
6072
},
@@ -67,6 +79,18 @@ const config: Config = {
6779
path: 'docs-graphql',
6880
routeBasePath: 'graphql',
6981
sidebarPath: './sidebars-graphql.ts',
82+
includeCurrentVersion: true,
83+
lastVersion: 'current',
84+
versions: {
85+
'current': {
86+
label: 'v25.0 (latest)',
87+
path: '',
88+
},
89+
'v24.1': {
90+
label: 'v24.1',
91+
path: 'v24.1',
92+
},
93+
},
7094
editUrl: ({versionDocsDirPath, docPath}) => {
7195
return `https://github.com/dgraph-io/dgraph-docs/edit/main/docusaurus-docs/${versionDocsDirPath || 'docs-graphql'}/${docPath}`;
7296
},

0 commit comments

Comments
 (0)