Merge branch 'sphinx-config' into develop
This commit is contained in:
commit
c9700618f7
9 changed files with 144 additions and 7 deletions
10
Makefile
10
Makefile
|
|
@ -13,7 +13,7 @@ INTERPRETER=python3.8
|
|||
all: run
|
||||
|
||||
|
||||
# Re-create venv when needed
|
||||
# =====VENV=====
|
||||
$(VENV)/bin/activate: requirements.txt requirements-dev.txt
|
||||
@ echo "Rebuilding venv..."
|
||||
@ [ ! -e "$(VENV)" ] || rm -rf "$(VENV)"
|
||||
|
|
@ -22,8 +22,9 @@ $(VENV)/bin/activate: requirements.txt requirements-dev.txt
|
|||
|
||||
build-venv: $(VENV)/bin/activate
|
||||
|
||||
|
||||
# =====CLEANING=====
|
||||
clean: clean-venv clean-cache clean-docs
|
||||
clean: clean-venv clean-cache clean-docs clean-setup
|
||||
|
||||
# Remove venv
|
||||
clean-venv:
|
||||
|
|
@ -46,9 +47,10 @@ clean-setup:
|
|||
@ [ ! -e "build" ] || rm -rf build
|
||||
@ find . -maxdepth 1 -type d -name '*.egg-info' -exec rm -rf "{}" \;
|
||||
|
||||
|
||||
# =====DOCS=====
|
||||
docs: build-venv
|
||||
@ "$(VENV)/bin/sphinx-apidoc" -o "$(DOCS)/source" "$(SRC)"
|
||||
docs: docs/source/conf.py docs/source/index.rst build-venv
|
||||
@ "$(VENV)/bin/sphinx-apidoc" -f -o "$(DOCS)/source/apidoc" "$(SRC)"
|
||||
@ "$(VENV)/bin/sphinx-build" "$(DOCS)/source" "$(DOCS)/build"
|
||||
|
||||
|
||||
|
|
|
|||
Reference in a new issue