docusaurus/packages/docusaurus-init/templates
Alexey Pyltsyn 96e7fcef25
feat(v2): add ability to set custom heading id (#4222)
* feat(v2): add ability to set custom heading id

* Add cli command

* Fix slugger

* write-heading-ids doc + add in commands/templates

* refactor + add tests for writeHeadingIds

* polish writeHeadingIds

* polish writeHeadingIds

* remove i18n goals todo section as the  remaining items are quite abstract/useless

* fix edge case with 2 md links in heading

* extract parseMarkdownHeadingId helper function

* refactor using the shared parseMarkdownHeadingId utility fn

* change logic of edge case

* Handle edge case

* Document explicit ids feature

Co-authored-by: slorber <lorber.sebastien@gmail.com>
2021-03-05 19:36:14 +01:00
..
bootstrap feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00
classic feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00
facebook feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00
README.MD fix(v2): bad update notifier dist tag (#3824) 2020-11-26 12:06:52 +01:00

Templates

Official templates provided by Docusaurus. They are designed to be selected when using the npx @docusaurus/init init [name] [template] CLI command.

Guide to Test Templates for Developer

  1. yarn install in the root of the repo (one level above this directory).
  2. Go to any template's directory, example: cd classic && yarn start.