I was getting this error when running the examples: ``` Error: It looks like you've enabled language support, but haven't provided translated files. The document with id: 'en-doc1' doesn't exist. ``` However, this error was an indirect result of me not renaming the `docs-examples-from-docusaurus` directory to `docs` since I had `doc` in my `headerLinks` in the example siteConfig.js. So let's check the headerLinks and make sure we have the required directories. Here is an example of the error if I try to load a Docusaurus site just after running `npm run examples` without having renamed the directories. ``` Error: You have 'doc' in your headerLinks, but no 'docs' folder exists one level up from 'website' folder. Are you running the examples? If so, make sure you rename 'docs-examples-from-docusaurus' to 'docs'. at /Users/joelm/dev/test/website/node_modules/docusaurus/lib/core/nav/HeaderNav.js:226:15 : : ``` Test Plan: Tested a local package in verdaccio |
||
---|---|---|
admin | ||
docs | ||
docusaurus-init | ||
examples | ||
lib | ||
website | ||
.gitignore | ||
.npmignore | ||
circle.yml | ||
crowdin.yaml | ||
LICENSE | ||
package.json | ||
README.md | ||
yarn.lock |
Docusaurus
Docusaurus is a project for easily building, deploying, and maintaining open source project websites. CI badges go here
- 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 Docusaurus ships with the key pages and sections you need to get started. A home page, a docs section, a blog, and additional support pages.
Installation
Docusaurus is available as docusaurus
package on npm
The recommended way to use Docusaurs depends on your project. Here you can find short guides for the most common scenarios:
Contributing
We've released Docusaurus because it helps us better scale and support 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 contain bugs which are fairly easy to fix. This is a great place to get started.
License
React is ? licensed.
React documentation is ? licensed.