mirror of
https://github.com/facebook/docusaurus.git
synced 2025-07-30 06:50:36 +02:00
fix(v2): fix recent baseurl issues (#3093)
* try to fix the baseUrl related issues * fix some newly detected broken links * fix baseurl and broken link issues * try to configure netlify to use baseUrl deployment * add proper netlify settings? * add proper netlify settings? * add proper netlify settings? * test commit * try to fix the redirects * cleanup working conf * minor redirect fix
This commit is contained in:
parent
27f384a67c
commit
811c7ae4e9
30 changed files with 2639 additions and 146 deletions
|
@ -14,12 +14,14 @@ const allDocHomesPaths = [
|
|||
...versions.slice(1).map((version) => `/docs/${version}/`),
|
||||
];
|
||||
|
||||
const baseUrl = process.env.BASE_URL || '/';
|
||||
|
||||
module.exports = {
|
||||
title: 'Docusaurus',
|
||||
tagline: 'Build optimized websites quickly, focus on your content',
|
||||
organizationName: 'facebook',
|
||||
projectName: 'docusaurus',
|
||||
baseUrl: '/',
|
||||
baseUrl,
|
||||
url: 'https://v2.docusaurus.io',
|
||||
onBrokenLinks: 'throw',
|
||||
favicon: 'img/docusaurus.ico',
|
||||
|
@ -189,7 +191,7 @@ module.exports = {
|
|||
activeBaseRegex: `docs/next/(support|team|resources)`,
|
||||
},
|
||||
{
|
||||
to: 'versions',
|
||||
to: '/versions',
|
||||
label: 'All versions',
|
||||
position: 'right',
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue