Added docker and non-docker make commands

pull/319/head
8ear 2019-08-02 10:28:08 +02:00
parent 6bf51f4555
commit d9156174a6
No known key found for this signature in database
GPG Key ID: 00AAF736693E6C4E
1 changed files with 19 additions and 8 deletions

View File

@ -1,3 +1,4 @@
# https://www.mkdocs.org/user-guide/deploying-your-docs/
.PHONY: prepare_docs generate_docs ci_generate_docs test_docs
@ -9,15 +10,25 @@ prepare_docs:
cp -R doc/logos/* docs/import_mod/logos
cp LICENSE docs/license.md
install_requirements:
pip install -r docs/REQUIREMENTS.txt
generate_docs: prepare_docs
docker run --rm -it -v $(PWD):/docs squidfunk/mkdocs-material build
# https://www.mkdocs.org/user-guide/deploying-your-docs/
deploy:
docker run --rm -it -v $(PWD):/docs -v /home/$(whoami)/.docker:/root/.docker:ro squidfunk/mkdocs-material gh-deploy
ci_generate_docs: prepare_docs
mkdocs build
deploy:
mkdocs gh-deploy
test_docs: prepare_docs
docker run --rm -it -p 8000:8000 -v $(PWD):/docs squidfunk/mkdocs-material
mkdocs serve
# DOCKER make commands
generate_docs_docker: prepare_docs
docker run --rm -it -v $(PWD):/docs squidfunk/mkdocs-material build
deploy_docker:
docker run --rm -it -v $(PWD):/docs -v /home/$(whoami)/.docker:/root/.docker:ro squidfunk/mkdocs-material gh-deploy
test_docs_docker: prepare_docs
docker run --rm -it -p 8000:8000 -v $(PWD):/docs squidfunk/mkdocs-material