Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jacebrowning committed Jan 26, 2019
1 parent f250d81 commit 1a492cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Expand Up @@ -121,14 +121,18 @@ docs: mkdocs uml ## Generate documentation and UML

.PHONY: mkdocs
mkdocs: install $(MKDOCS_INDEX)
$(MKDOCS_INDEX): mkdocs.yml docs/*.md
$(MKDOCS_INDEX): docs/requirements.txt mkdocs.yml docs/*.md
@ mkdir -p docs/about
@ cd docs && ln -sf ../README.md index.md
@ cd docs/about && ln -sf ../../CHANGELOG.md changelog.md
@ cd docs/about && ln -sf ../../CONTRIBUTING.md contributing.md
@ cd docs/about && ln -sf ../../LICENSE.md license.md
poetry run mkdocs build --clean --strict

# Workaround: https://github.com/rtfd/readthedocs.org/issues/5090
docs/requirements.txt: poetry.lock
poetry run pip freeze | grep mkdocs > $@

.PHONY: uml
uml: install docs/*.png
docs/*.png: $(MODULES)
Expand Down
1 change: 1 addition & 0 deletions docs/requirements.txt
@@ -0,0 +1 @@
mkdocs==1.0.4

0 comments on commit 1a492cd

Please sign in to comment.