Prepend mdx files which used as includes with underscore to avoid creating and indexing pages from them
Summary: By default docusaurus generates pages and routes for every mdx file it finds under the root dir. So even for the mdx files which are only used as includes and don't even have headers, page is still created, then index and often looks very weird, e.g. title is the same as file name etc. See e.g. this one: https://www.internalfb.com/intern/staticdocs/flipper/docs/fb/portal-troubleshooting/ I went through Flipper docs and renamed all mdx files which are only used as includes to prepend them with underscore. Everything which name is starting with underscore, or which is inside a folder which name is starting with underscore is considered private by docusaurus and skipped. Reviewed By: passy Differential Revision: D32722547 fbshipit-source-id: 0524d4dd56960714fbdd2b01ad8383cd16de4948
This commit is contained in:
committed by
Facebook GitHub Bot
parent
bce1316743
commit
ceba421997
@@ -3,8 +3,8 @@ id: desktop-plugin-structure
|
||||
title: Plugin structure
|
||||
---
|
||||
|
||||
import FbNpmDeps from '../fb/adding-npm-dependencies-0.mdx'
|
||||
import FbOnlyParts from '../fb/fb-only-parts-in-os-plugins.mdx'
|
||||
import FbNpmDeps from '../fb/_adding-npm-dependencies-0.mdx'
|
||||
import FbOnlyParts from '../fb/_fb-only-parts-in-os-plugins.mdx'
|
||||
|
||||
Flipper Desktop plugins have a rigid structure. We recommend to scaffold any new plugin using our scaffolding tooling.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user