docusaurus/packages/docusaurus-plugin-content-docs/src
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
..
__tests__ fix(v2): fix docs homepage permalink issues (#2905) 2020-06-17 14:54:08 +02:00
markdown refactor(v2): legacy export = syntax (#2948) 2020-06-17 01:55:14 +08:00
theme/hooks feat(v2): add search page (#2756) 2020-05-17 15:55:40 +08:00
constants.ts chore: yearless copyright headers for source code (#2320) 2020-02-25 23:12:28 +08:00
env.ts chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
index.ts fix(v2): fix docs homepage permalink issues (#2905) 2020-06-17 14:54:08 +02:00
lastUpdate.ts chore: yearless copyright headers for source code (#2320) 2020-02-25 23:12:28 +08:00
metadata.ts fix(v2): fix docs homepage permalink issues (#2905) 2020-06-17 14:54:08 +02:00
order.ts chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
sidebars.ts polish(v2): improve Docusaurus 1 to 2 migration developer experience (#2884) 2020-06-06 11:16:50 +08:00
types.ts fix(v2): fix docs homepage permalink issues (#2905) 2020-06-17 14:54:08 +02:00
version.ts chore: yearless copyright headers for source code (#2320) 2020-02-25 23:12:28 +08:00