Merge pull request #88 from ericnakagawa/master

Removed a redundant feature, added an error message to help troubleshooting building localized sites.
This commit is contained in:
Eric Nakagawa 2017-09-26 10:22:43 -07:00 committed by GitHub
commit effd1113ad
5 changed files with 15 additions and 8 deletions

View file

@ -136,6 +136,13 @@ class HeaderNav extends React.Component {
link.doc;
}
if (!Metadata[id]) {
if (id != link.doc) {
throw new Error(
"It looks like you've enabled language support, but haven't provided translated files. The document with id: '" +
id +
"' doesn't exist."
);
}
throw new Error(
"A headerLink is specified with a document that does not exist. No document exists with id: " +
link.doc