diff --git a/.gitignore b/.gitignore index 22fa0cc6d8..745a03451f 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ mocha.js *_LOCAL_* *_REMOTE_* docs/_site -*.sublime-workspace +docs/_dist + diff --git a/package.json b/package.json index f63d728955..84c79dd8b7 100644 --- a/package.json +++ b/package.json @@ -305,6 +305,7 @@ "coveralls": "nyc report --reporter=text-lcov | coveralls", "prebuildDocs": "node scripts/docs-update-toc.js", "buildDocs": "bundle exec jekyll build --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts", + "postbuildDocs": "buildProduction docs/_site/index.html --outroot docs/_dist --canonicalroot https://mochajs.org/ --optimizeimages --asyncscripts ", "prewatchDocs": "node scripts/docs-update-toc.js", "watchDocs": "bundle exec jekyll serve --source ./docs --destination ./docs/_site --config ./docs/_config.yml --safe --drafts --watch" }, @@ -322,6 +323,7 @@ }, "devDependencies": { "assert": "^1.4.1", + "assetgraph-builder": "^5.6.4", "browserify": "^14.4.0", "coffee-script": "^1.10.0", "coveralls": "^3.0.0",