Easy to maintain open source documentation websites.
Find a file
Sébastien Lorber 15e73daae7
feat(v2): global data + useGlobalData + docs versions dropdown (#2971)
* doc components initial simplification

* doc components initial simplification

* add docContext test

* Add poc of global data system + use it in the theme

* Revert "doc components initial simplification"

This reverts commit f657b4c4

* revert useless changes

* avoid loosing context on docs switch

* fix docs tests

* fix @generated/globalData ts declaration / es import

* typo

* revert bad commit

* refactor navbar in multiple parts + add navbar item types validation + try to fix remaining merge bugs

* add missing watch mode for plugin debug

* fix docs global data integration, move related hooks to docs plugin + convert to TS

* change versions link label

* fix activeClassName react warning

* improve docs global data system + contextual navbar dropdown

* fix bug preventing the deployment

* refactor the global data system to namespace automatically by plugin name + plugin id

* proper NavbarItem comp

* fix tests

* fix snapshot

* extract theme config schema in separate file + rename navbar links to navbar items

* minor typos

* polish docs components/api

* polish useDocs api surface

* fix the docs version suggestions comp + data

* refactors + add docsClientUtils unit tests

* Add documentation

* typo

* Add check for duplicate plugin ids detection

* multi-instance: createData plugin data should be namespaced by plugin instance id

* remove attempt for multi-instance support
2020-07-21 11:16:08 +02:00
.circleci chore: drop support for node <10.9 (#2207) 2020-01-12 13:24:11 +08:00
.github chore(v2): Add E2E test for yarn v2 (#3008) 2020-07-01 12:06:03 +02:00
.runme misc: add v2 runme demo to README (#2811) 2020-05-30 13:36:42 +08:00
admin chore(v2): Add E2E test for yarn v2 (#3008) 2020-07-01 12:06:03 +02:00
docs docs(v1): fixing few typos and enhancing few sentences clarity (#3082) 2020-07-20 16:48:37 +02:00
jest chore(v2): fix code style (revert previous changes) 2020-04-05 17:38:12 +03:00
packages feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00
website feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00
website-1.x feat(v2): Support keywords meta in blog posts (#3038) 2020-07-09 17:02:00 +02:00
.editorconfig
.eslintignore feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00
.eslintrc.js feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00
.gitattributes
.gitignore feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00
.gitpod.yml feat: add Gitpod config for Docusaurus 2 (#2201) 2020-01-12 12:33:21 +08:00
.nvmrc chore: drop support for node <10.9 (#2207) 2020-01-12 13:24:11 +08:00
.prettierignore fix(v2): refactor color mode system (#3012) 2020-06-30 12:21:20 +02:00
.prettierrc chore(v2): update Prettier config (#2542) 2020-04-05 23:51:47 +08:00
.stylelintrc.js fix(v2): improve stylelint copyright header rule (#2363) 2020-03-07 11:49:52 +08:00
.watchmanconfig misc(v2): make watchman config valid 2020-03-24 12:17:00 +08:00
babel.config.js chore: yearless copyright headers for source code (#2320) 2020-02-25 23:12:28 +08:00
CHANGELOG-2.x.md chore(v2): rename 2.0.0-alpha.57 to 2.0.0-alpha.58 2020-06-18 14:00:16 +02:00
CHANGELOG.md chore: prepare for v1.14.4 release (#2211) 2020-01-13 00:11:23 +08:00
CODE_OF_CONDUCT.md
CONTRIBUTING.md docs: Updated link for #docusaurus-2-dev discord (#3078) 2020-07-20 11:59:15 +02:00
crowdin.yaml
jest.config.js feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00
lerna.json v2.0.0-alpha.58 2020-06-18 14:02:26 +02:00
LICENSE chore: yearless copyright headers for source code (#2320) 2020-02-25 23:12:28 +08:00
LICENSE-docs
package.json feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00
README.md chore: prettier 2020-06-01 14:41:28 +03:00
tsconfig.json feat(v2): Support swizzling TypeScript components (#2671) 2020-06-25 16:07:30 +02:00
yarn.lock feat(v2): global data + useGlobalData + docs versions dropdown (#2971) 2020-07-21 11:16:08 +02:00

Docusaurus

Docusaurus

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

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.

You can see the clean live demo with classic theme by clicking this badge Runme.

Introduction

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

  • Simple to Start Docusaurus is built to be easy to get up and running in as little time 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.