Easy to maintain open source documentation websites.
Find a file
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
.circleci chore(v2): upgrade dependencies + require Node 12 (#4223) 2021-02-18 15:12:42 +01:00
.devcontainer chore: add DevContainer config for GitHub codespaces (#4003) 2021-01-11 14:54:47 +01:00
.github misc: restore build size bot (#4337) 2021-03-03 16:36:40 +01:00
.husky chore(v2): upgrade dependencies + require Node 12 (#4223) 2021-02-18 15:12:42 +01:00
__tests__ chore(v2): ensure publishConfig.access presence with tests (#3786) 2020-11-19 17:14:45 +01:00
admin polish(v2): improve codesandbox template package.json (#4074) 2021-01-20 13:29:45 +01:00
examples feat(v2): support/use React v17 by default (#4218) 2021-02-12 17:04:45 +01:00
jest chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
packages feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00
website feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00
website-1.x docs(v1): update phrasing for website directory relative to docs directory (#4346) 2021-03-04 16:23:35 +01:00
.editorconfig
.eslintignore chore(v1): add missing generated files from v1 to ignores (#3872) 2020-12-03 18:13:44 +01:00
.eslintrc.js chore(v2): upgrade ESLint deps (#3767) 2020-11-18 17:52:50 +01:00
.gitattributes
.gitignore chore(v1): add missing generated files from v1 to ignores (#3872) 2020-12-03 18:13:44 +01:00
.gitpod.yml
.nvmrc chore(v2): upgrade dependencies + require Node 12 (#4223) 2021-02-18 15:12:42 +01:00
.prettierignore chore(v1): add missing generated files from v1 to ignores (#3872) 2020-12-03 18:13:44 +01:00
.prettierrc chore(v2): update Prettier config (#2542) 2020-04-05 23:51:47 +08:00
.stylelintrc.js
.watchmanconfig misc(v2): make watchman config valid 2020-03-24 12:17:00 +08:00
babel.config.js
CHANGELOG-2.x.md chore(v2): prepare v2.0.0.alpha-70 release (#3933) 2020-12-17 20:08:20 +01:00
CHANGELOG.md docs: corrected some few typos in the docusaurus tech docs (#3276) 2020-08-14 11:38:54 +02:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md docs(v2): docs typos (#3252) 2020-08-11 13:51:00 +02:00
crowdin-v1.yml chore(v1): upgrade v1 Crowdin cli + CI config (#4040) 2021-01-13 18:29:41 +01:00
crowdin-v2.yaml docs(v2): i18n doc + polish (#4014) 2021-01-19 17:26:31 +01:00
generateExamples.js polish(v2): improve codesandbox template package.json (#4074) 2021-01-20 13:29:45 +01:00
jest.config.js chore(v2): fix windows Jest tests (#3959) 2020-12-28 19:50:12 +01:00
lerna.json chore(v2): prepare v2.0.0.alpha-70 release (#3933) 2020-12-17 20:08:20 +01:00
LICENSE
LICENSE-docs
package.json chore(v2): upgrade dependencies + require Node 12 (#4223) 2021-02-18 15:12:42 +01:00
README.md docs(v2): move migrated sites from v1 to v2 showcase (#4296) 2021-02-26 17:15:38 +01:00
tsconfig.json feat(v2): core v2 i18n support + Docusaurus site Crowdin integration (#3325) 2020-11-26 12:16:46 +01:00
yarn.lock feat(v2): add ability to set custom heading id (#4222) 2021-03-05 19:36:14 +01:00

Docusaurus

Docusaurus

Twitter Follow npm version CircleCI status PRs Welcome Discord Chat code style: prettier Tested with Jest Gitpod Ready-to-Code Netlify Status CI Score

We are working hard on Docusaurus v2. If you are new to Docusaurus, try using the new version instead of v1. See the Docusaurus v2 website for more details.

Introduction

Docusaurus is a project for building, deploying, and maintaining open source project websites easily.

Use new.docusaurus.io to test Docusaurus immediately in CodeSandbox.

  • Simple to Start

Docusaurus is built in a way so that it can get running in as little time as possible. We've built Docusaurus to handle the website build process so you can focus on your project.

  • Localizable

Docusaurus ships with localization support via CrowdIn. Empower and grow your international community by translating your documentation.

  • Customizable

While Docusaurus ships with the key pages and sections you need to get started, including a home page, a docs section, a blog, and additional support pages, it is also customizable as well to ensure you have a site that is uniquely yours.

Installation

Docusaurus is available as the docusaurus package on npm.

We have also released the docusaurus-init package to make getting started with Docusaurus even easier.

Contributing

We've released Docusaurus because it helps us better scale and supports the many OSS projects at Facebook. We hope that other organizations can benefit from the project. We are thankful for any contributions from the community.

Code of Conduct

Facebook has adopted a Code of Conduct that we expect project participants to adhere to. Please read the full text so that you can understand what actions will and will not be tolerated.

Contributing guide

Read our contributing guide to learn about our development process, how to propose bugfixes and improvements, and how to build and test your changes to Docusaurus.

Beginner-friendly bugs

To help you get your feet wet and get you familiar with our contribution process, we have a list of beginner-friendly bugs that might contain smaller issues to tackle first. This is a great place to get started.

Contact

We have a few channels for contact:

  • Discord with two text channels:
    • #docusaurus-users for those using Docusaurus.
    • #docusaurus-dev for those wanting to contribute to the Docusaurus core.
  • @docusaurus on Twitter
  • GitHub Issues

Contributors

This project exists thanks to all the people who contribute. [Contribute].

Backers

Thank you to all our backers! 🙏 Become a backer

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. Become a sponsor

License

Docusaurus is MIT licensed.

The Docusaurus documentation (e.g., .md files in the /docs folder) is Creative Commons licensed.

Special thanks

BrowserStack logo

BrowserStack supports us with free access for open source.

Rocket Validator logo

Rocket Validator helps us find HTML markup or accessibility issues.