Skip to content

Commit

Permalink
changed from ./docs to ./out
Browse files Browse the repository at this point in the history
  • Loading branch information
ButteryCrumpet authored and Rokt33r committed Sep 4, 2019
1 parent e316d16 commit cda018f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
node_modules
dist
docs
out
.env
coverage
temp
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"test-coverage": "jest --coverage",
"codecov": "codecov -f coverage/*.json",
"prepublishOnly": "npm test && npm run build",
"generate-docs": "typedoc --out docs src && sh scripts/generate-docs.sh"
"generate-docs": "typedoc --out out src && sh scripts/generate-docs.sh"
},
"bugs": {
"url": "https://github.com/prismyland/prismy/issues"
Expand Down
6 changes: 4 additions & 2 deletions scripts/generate-docs.sh
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
if ! [ -d "docs" ]; then
DIR="out"

if ! [ -d $DIR ]; then
echo "\n[Error!] Docs directory does not exist\n\n"
exit 2
fi

cd docs
cd $DIR
git init
git checkout -b gh-pages
git add -A
Expand Down

0 comments on commit cda018f

Please sign in to comment.