diff --git a/script/docs b/script/docs index 0148edf31..aaa07c081 100644 --- a/script/docs +++ b/script/docs @@ -1,11 +1,13 @@ #!/bin/bash +# Runs script/grunt docs and moves the output to gh-pages branch +# This overwrites whatever is in gh-pages mkdir docs/output script/grunt docs git checkout gh-pages --quiet -cp -rf docs/output/* docs -mv -f docs/sidebar.json _data -rm -f docs/api.json +cp -rf docs/output/* docs # Place all of the html in its proper place +mv -f docs/sidebar.json _data # Move sidebar.json to appropriate folder +rm -f docs/api.json # Remove unecessary file rm -rf docs/output git add .