fix 404 pages

Reviewed By: jknoxville, passy

Differential Revision: D37614048

fbshipit-source-id: 58593b45193382ccdcc8a7eeb77335e663e8eb95
This commit is contained in:
Anton Kastritskiy
2022-07-05 08:19:08 -07:00
committed by Facebook GitHub Bot
parent 569283a1a7
commit 013e964287
2 changed files with 16 additions and 9 deletions

View File

@@ -7,9 +7,7 @@
* @format
*/
// start-import-example
const {fbContent, fbInternalOnly} = require('internaldocs-fb-helpers');
// end-import-example
const {fbContent, fbInternalOnly} = require('docusaurus-plugin-internaldocs-fb/internal');
const repoUrl = 'https://github.com/facebook/flipper';
const siteUrl = fbContent({
@@ -47,7 +45,7 @@ const siteConfig = {
},
items: [
{
to: 'docs/features/index',
to: 'docs/features',
label: 'Features',
position: 'right',
},
@@ -62,7 +60,7 @@ const siteConfig = {
position: 'right',
},
{
to: 'docs/internals/index',
to: 'docs/internals',
label: 'Under the Hood',
position: 'right',
},
@@ -102,7 +100,7 @@ const siteConfig = {
items: [
{
label: 'Core Plugins',
to: 'docs/features/index',
to: 'docs/features',
},
{
label: 'Community Plugins',
@@ -270,7 +268,7 @@ const siteConfig = {
},
{
to: '/docs/getting-started',
from: ['/docs/fb/index'],
from: ['/docs/fb'],
},
{
from: ['/docs/features/network-plugin'],
@@ -371,7 +369,16 @@ const siteConfig = {
to: '/docs/features/plugins/mobile-config',
},
]),
],
].map(x => ({
...x,
from: x.from.reduce(
(acc, href) => {
acc.push(href, `${href}/index`);
return acc;
},
[],
)}),
),
},
],
],