Skip to content

Commit

Permalink
chore: Change the base URL to move assets to /docs (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
pranavrajs committed Apr 28, 2021
1 parent 98a9ee4 commit 8e95423
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 11 deletions.
21 changes: 11 additions & 10 deletions docusaurus.config.js
Expand Up @@ -2,8 +2,8 @@
module.exports = {
title: 'Chatwoot',
tagline: 'Open-source customer engangement suite, an alternative to Intercom & Zendesk',
url: 'https://chatwoot.com/docs',
baseUrl: '/',
url: 'https://chatwoot.com/',
baseUrl: '/docs/',
onBrokenLinks: 'throw',
onBrokenMarkdownLinks: 'warn',
favicon: 'img/favicon.png',
Expand All @@ -19,26 +19,26 @@ module.exports = {
},
items: [
{
to: 'docs/self-hosted',
activeBasePath: 'docs/self-hosted',
to: 'self-hosted',
activeBasePath: 'self-hosted',
label: 'Self Hosted',
position: 'left',
},
{
to: 'docs/product',
activeBasePath: 'docs/product',
to: 'product',
activeBasePath: 'product',
label: 'Product',
position: 'left',
},
{
to: 'docs/contributing-guide',
activeBasePath: 'docs/contributing-guide',
to: 'contributing-guide',
activeBasePath: 'contributing-guide',
label: 'Contributing Guide',
position: 'left',
},
{
to: 'docs/handbook/about-chatwoot/history',
activeBasePath: 'docs/handbook',
to: 'handbook/about-chatwoot/history',
activeBasePath: 'handbook',
label: 'Handbook',
position: 'left',
},
Expand All @@ -55,6 +55,7 @@ module.exports = {
'@docusaurus/preset-classic',
{
docs: {
routeBasePath: '/',
sidebarPath: require.resolve('./sidebars.js'),
editUrl:
'https://github.com/chatwoot/docs/edit/main/',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -5,7 +5,7 @@
"scripts": {
"docusaurus": "docusaurus",
"start": "docusaurus start",
"build": "docusaurus build",
"build": "docusaurus build --out-dir build/docs",
"swizzle": "docusaurus swizzle",
"deploy": "docusaurus deploy",
"clear": "docusaurus clear",
Expand Down

0 comments on commit 8e95423

Please sign in to comment.