@@ -27,11 +27,16 @@ if (process.env.NODE_ENV === 'production') {
2727// Can also be set via command line: npm run build -- --base-url /documentation/
2828const baseUrl = process . env . DOCUSAURUS_BASE_URL || '/' ;
2929
30+ // Determine route base path for docs
31+ // Can be set to '/docs/' if we need docs under a subdirectory
32+ // Default is '/' to serve docs at the root
33+ const routeBasePath = process . env . DOCUSAURUS_ROUTE_BASE_PATH || '/' ;
34+
3035// URL can also be overridden if needed
3136const url = process . env . DOCUSAURUS_URL || 'https://docs.harperdb.io' ;
3237
3338// Always log configuration at build time
34- console . log ( 'Docusaurus URL config:' , { url, baseUrl } ) ;
39+ console . log ( 'Docusaurus URL config:' , { url, baseUrl, routeBasePath } ) ;
3540
3641const config : Config = {
3742 title : 'Harper Docs' ,
@@ -45,7 +50,7 @@ const config: Config = {
4550 } ,
4651
4752 // Set the production url of your site here
48- url : url ,
53+ url,
4954 // Set the /<baseUrl>/ pathname under which your site is served
5055 baseUrl,
5156
@@ -66,10 +71,10 @@ const config: Config = {
6671 {
6772 docs : {
6873 // Use converted docs from DOCS_PATH or default location
69- path : process . env . DOCS_PATH || 'docs' ,
74+ path : process . env . DOCS_PATH || '../ docs' ,
7075 sidebarPath : './sidebars.ts' ,
71- // Docs are always at the root of the baseUrl
72- routeBasePath : '/' ,
76+ // Docs are served at the configured route base path
77+ routeBasePath,
7378 editUrl : ( { docPath } ) => {
7479 // Find where docs/ starts in the path and use everything from there
7580 const docsIndex = docPath . indexOf ( 'docs/' ) ;
@@ -172,10 +177,10 @@ const config: Config = {
172177 label : 'Getting Started' ,
173178 to : '/getting-started' ,
174179 } ,
175- {
176- label : 'Developers' ,
177- to : '/category /developers' ,
178- } ,
180+ // {
181+ // label: 'Developers',
182+ // to: '/developers',
183+ // },
179184 {
180185 label : 'Administration' ,
181186 to : '/administration' ,
0 commit comments