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:
Sébastien Lorber 2020-07-22 19:55:40 +02:00 committed by GitHub
parent 27f384a67c
commit 811c7ae4e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
30 changed files with 2639 additions and 146 deletions

View file

@ -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',
},