mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-02 19:03:38 +02:00
Add docusaurus-init to the headerlink message (#202)
This commit is contained in:
parent
fbcbaa52d3
commit
b2de777b1e
1 changed files with 4 additions and 4 deletions
|
@ -224,15 +224,15 @@ class HeaderNav extends React.Component {
|
|||
if (link.doc && !fs.existsSync(CWD + "/../docs/")) {
|
||||
throw new 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'."
|
||||
"'website' folder. Did you run `docusaurus-init` or `npm run examples`? If so, " +
|
||||
"make sure you rename 'docs-examples-from-docusaurus' to 'docs'."
|
||||
);
|
||||
}
|
||||
if (link.blog && !fs.existsSync(CWD + "/blog/")) {
|
||||
throw new Error(
|
||||
"You have 'blog' in your headerLinks, but no 'blog' folder exists in your " +
|
||||
"website folder. Are you running the examples? If so, make sure you rename " +
|
||||
"'blog-examples-from-docusaurus' to 'blog'."
|
||||
"website folder. Did you run `docusaurus-init` or `npm run examples`? If so, " +
|
||||
"make sure you rename 'blog-examples-from-docusaurus' to 'blog'."
|
||||
);
|
||||
}
|
||||
if (link.page && !fs.existsSync(CWD + "/pages/")) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue