File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments