Skip to content

Commit 7aaa1da

Browse files
committed
Update Docusaurus configuration for improved base URL and documentation routing
1 parent 593a6b3 commit 7aaa1da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docusaurus.config.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module.exports = {
22
title: 'Thelia documentation',
33
tagline: 'Your OpenSource E-commerce tool',
4-
url: 'https://thelia.github.io/',
5-
baseUrl: '/',
4+
url: 'https://thelia.github.io',
5+
baseUrl: '/docs/',
66
onBrokenLinks: 'warn',
77
favicon: 'img/favicon.png',
88
organizationName: 'thelia', // Usually your GitHub org/user name.
@@ -35,8 +35,7 @@ module.exports = {
3535
},
3636
items: [
3737
{
38-
to: 'docs/',
39-
activeBasePath: 'docs',
38+
to: '/',
4039
label: 'Docs',
4140
position: 'left',
4241
},
@@ -87,6 +86,7 @@ module.exports = {
8786
'@docusaurus/preset-classic',
8887
{
8988
docs: {
89+
routeBasePath: '/',
9090
sidebarPath: require.resolve('./sidebars.js'),
9191
editUrl: 'https://github.com/thelia/docs/edit/main/',
9292
},

0 commit comments

Comments
 (0)