Skip to content

Commit

Permalink
feat: change actions for make docs with mkdocs (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
luismayta committed Jan 22, 2021
1 parent 34ead3d commit 5dadde6
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
15 changes: 7 additions & 8 deletions provision/make/docs.mk
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
#
# See ./CONTRIBUTING.rst
# See ./docs/contributing.md
#

FILE_README=$(ROOT_DIR)/README.md

docs:
make docs.help

docs.help:
@echo ' Docs:'
@echo ''
@echo ' docs.show Show restview README'
@echo ' docs.make Make documentation html'
@echo ' docs.show Show mkdocs'
@echo ' docs.build build mkdocs'
@echo ' docs.terraform generated docs for terraform'
@echo ''

Expand All @@ -21,7 +19,8 @@ docs.terraform:
variables.tf)

docs.show:
$(PIPENV_RUN) restview ${FILE_README}
$(PIPENV_RUN) mkdocs serve

docs.build:
$(PIPENV_RUN) mkdocs build

docs.make:
$(docker-compose) -f ${PATH_DOCKER_COMPOSE}/dev.yml run --rm docs bash -c "cd docs && make html"
2 changes: 1 addition & 1 deletion provision/make/utils.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# See ./CONTRIBUTING.rst
# See ./docs/contributing.md
#
.PHONY: utils.help

Expand Down
2 changes: 1 addition & 1 deletion provision/make/yarn.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# See ./CONTRIBUTING.rst
# See ./docs/contributing.md
#
yarn.help:
@echo ' yarn:'
Expand Down

0 comments on commit 5dadde6

Please sign in to comment.