build: Add sphinx to build documentation

Signed-off-by: Sven Sager <akira@narux.de>
This commit is contained in:
2023-06-20 10:39:29 +02:00
parent 6f4777317e
commit d29e733274
3 changed files with 26 additions and 3 deletions

View File

@@ -9,7 +9,7 @@ PACKAGE = revpimodio2
SYSTEM_PYTHON = /usr/bin/python3
PYTHON = $(or $(wildcard venv/bin/python), $(SYSTEM_PYTHON))
all: build
all: build docs
.PHONY: all
@@ -31,11 +31,14 @@ build:
install: build
$(PYTHON) -m pip install dist/$(PACKAGE)-*.whl
.PHONY: build install
docs:
$(PYTHON) -m sphinx.cmd.build -b html docs docs/_build/html
.PHONY: build docs install
## Clean
clean:
rm -rf build dist src/*.egg-info *.spec
rm -rf build docs/_build dist src/*.egg-info *.spec
clean-all: clean
rm -R venv