docusaurus/lib/core
Joel Marcey 01ebbb1512 Check for required folders based upon headerLinks right up front (#111)
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
2017-10-05 11:14:27 -07:00
..
nav Check for required folders based upon headerLinks right up front (#111) 2017-10-05 11:14:27 -07:00
BlogPageLayout.js Add comments 2017-08-15 16:55:38 -07:00
BlogPost.js Blog enhancements (#80) 2017-09-25 12:53:54 -07:00
BlogPostLayout.js Blog enhancements (#80) 2017-09-25 12:53:54 -07:00
BlogSidebar.js Blog enhancements (#80) 2017-09-25 12:53:54 -07:00
CompLibrary.js Blog enhancements (#80) 2017-09-25 12:53:54 -07:00
Container.js Run Prettier 2017-07-10 16:38:35 -07:00
Doc.js Add comments 2017-08-15 16:55:38 -07:00
DocsLayout.js Add comments 2017-08-15 16:55:38 -07:00
DocsSidebar.js Allow document not in sidebar.json to be displayed 2017-08-07 15:15:09 -07:00
GridBlock.js Allow GridBlock images to be clickable links 2017-07-21 13:57:37 -07:00
Head.js Extend Marked.js in order to support React Native's code players (#109) 2017-10-04 08:56:55 -07:00
Header.js Run Prettier 2017-07-10 16:38:35 -07:00
Marked.js Extend Marked.js in order to support React Native's code players (#109) 2017-10-04 08:56:55 -07:00
Prism.js Add Reason support to Prism.js (#92) 2017-09-26 10:29:09 -07:00
Site.js Support algoliaOptions object as value in siteConfig.js (#113) 2017-10-04 19:13:30 -07:00
SnackPlayer.js Case sensitive requires 2017-10-04 09:17:07 -07:00
toSlug.js Run Prettier 2017-07-10 16:38:35 -07:00
unindent.js Run Prettier 2017-07-10 16:38:35 -07:00
WebPlayer.js Case sensitive requires 2017-10-04 09:17:07 -07:00