11const lightCodeTheme = require ( 'prism-react-renderer/themes/github' ) ;
22const darkCodeTheme = require ( 'prism-react-renderer/themes/dracula' ) ;
3+ const currentLocale = process . env . DOCUSAURUS_CURRENT_LOCALE || 'en' ;
4+ const docsLocaleSegment = currentLocale === 'zh-CN' ? 'cn' : 'en' ;
5+ const docsBaseUrl = `https://docs.ivorysql.org/${ docsLocaleSegment } /ivorysql-doc/v5.1/v5.1` ;
36
47/** @type {import('@docusaurus/types').Config } */
58const config = {
@@ -120,7 +123,7 @@ const config = {
120123 } ,
121124 {
122125 label : 'Installation' ,
123- href : 'https://docs.ivorysql.org/en/ivorysql-doc/v5.1/v5.1/ 3.1#quick-installation' ,
126+ href : ` ${ docsBaseUrl } / 3.1#quick-installation` ,
124127 } ,
125128 {
126129 label : 'Contribution Guidelines' ,
@@ -146,7 +149,7 @@ const config = {
146149 } ,
147150 {
148151 label : 'Ecological Cooperation' ,
149- href : 'https://docs.ivorysql.org/en/ivorysql-doc/v5.1/v5.1/ 5.0' ,
152+ href : ` ${ docsBaseUrl } / 5.0` ,
150153 position : 'left'
151154 } ,
152155 {
@@ -181,6 +184,10 @@ const config = {
181184 href : 'https://github.com/IvorySQL/IvorySQL' ,
182185 label : 'Github' ,
183186 } ,
187+ {
188+ href : 'https://atomgit.com/IvorySQL/IvorySQL' ,
189+ label : 'GitCode' ,
190+ } ,
184191 ]
185192 } ,
186193 {
@@ -262,4 +269,4 @@ const config = {
262269 } ) ,
263270} ;
264271
265- module . exports = config ;
272+ module . exports = config ;
0 commit comments