docusaurus/packages/docusaurus-plugin-content-docs
Sébastien Lorber f6b1c85b01
fix(v2): fix docs homepage permalink issues (#2905)
* better fixes for docs homepage

* fix tests

* create special route for docs homepage + cleanup existing code

* no need to create multiple docs parent paths

* useful comment

* add test for slug + doc home usage at the same time error

* remove confusing variable name

* fix tests by using same suffix as before for docs base metadata path

* metadata: use homePageId correctly for nested docs: the full docId (including /) should be used to compare against homePageId

* add folder/testNested test doc

* refactor a bit processMetadata, the home should be handled correctly for all versions

* Workaround to fix issue when parent layout route (DocPage) has same path as the child route (DocItem): see https://github.com/facebook/docusaurus/issues/2917

* revert homePageId

* remove test doc

* remove test doc

* add useful comment
2020-06-17 14:54:08 +02:00
..
src fix(v2): fix docs homepage permalink issues (#2905) 2020-06-17 14:54:08 +02:00
package.json misc(v2): better dx: yarn clear, yarn watch, yarn serve (#2922) 2020-06-16 20:40:46 +08:00
tsconfig.json misc(v2): remove legacy from docs 2019-10-10 19:45:50 -07:00
types.d.ts fix(v2): use remark-admonitions separately in each plugin instead of in preset only (#2642) 2020-04-24 12:18:54 +08:00