diff --git a/examples/basics/siteConfig.js b/examples/basics/siteConfig.js
index 2f93a1713f..accc9e4abf 100644
--- a/examples/basics/siteConfig.js
+++ b/examples/basics/siteConfig.js
@@ -34,8 +34,6 @@ const siteConfig = {
headerIcon: "img/docusaurus.svg",
footerIcon: "img/docusaurus.svg",
favicon: "img/favicon.png",
- /* the name of your custom css file that resides in static/css/ */
- // customCssFileName: "custom.css",
/* colors for website */
colors: {
primaryColor: "#2E8555",
diff --git a/lib/core/Head.js b/lib/core/Head.js
index 9135b29bd7..983591e6b2 100644
--- a/lib/core/Head.js
+++ b/lib/core/Head.js
@@ -43,11 +43,6 @@ class Head extends React.Component {
rel="stylesheet"
href={this.props.config.baseUrl + "css/main.css"}
/>
- {this.props.config.customCssFileName &&
- }
);
diff --git a/lib/core/nav/HeaderNav.js b/lib/core/nav/HeaderNav.js
index d4c93277e9..951a8cf1d1 100644
--- a/lib/core/nav/HeaderNav.js
+++ b/lib/core/nav/HeaderNav.js
@@ -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
diff --git a/lib/server/readMetadata.js b/lib/server/readMetadata.js
index 10a7a9739e..8b83f203c2 100644
--- a/lib/server/readMetadata.js
+++ b/lib/server/readMetadata.js
@@ -12,6 +12,7 @@ const CWD = process.cwd();
const path = require("path");
const fs = require("fs");
const glob = require("glob");
+const chalk = require("chalk");
const siteConfig = require(CWD + "/siteConfig.js");
const versionFallback = require("./versionFallback.js");
@@ -271,6 +272,13 @@ function generateBlogMetadata() {
const metadatas = [];
let files = glob.sync(CWD + "/blog/**/*.*");
+ if (!files || files.length == 0) {
+ console.error(
+ `${chalk.yellow(
+ CWD + "/blog/ appears to be empty"
+ )} Make sure you've put your blog files in your Docusaurus 'website' folder.`
+ );
+ }
files.sort().reverse().forEach(file => {
const extension = path.extname(file);
if (extension !== ".md" && extension !== ".markdown") {
diff --git a/website/siteConfig.js b/website/siteConfig.js
index 4b18ce23db..ddc92fb176 100644
--- a/website/siteConfig.js
+++ b/website/siteConfig.js
@@ -58,7 +58,6 @@ const siteConfig = {
apiKey: "3eb9507824b8be89e7a199ecaa1a9d2c",
indexName: "docusaurus"
},
- customCssFileName: "custom.css", //the name of your custom css file
colors: {
primaryColor: "#2E8555",
secondaryColor: "#205C3B",