diff --git a/Makefile b/Makefile index c2d00b54..cf36d894 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,9 @@ clean-install: rm -fr $(NODE_MODULES) rm -fr $(VENV) +html: + $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + install-db: psql -U postgres -f fittrackee_api/db/create.sql $(FLASK) db upgrade --directory $(MIGRATIONS) diff --git a/Makefile.config b/Makefile.config index 2e4f4639..407974eb 100644 --- a/Makefile.config +++ b/Makefile.config @@ -25,3 +25,9 @@ COV = $(VENV)/bin/python-codacy-coverage # Node env NODE_MODULES = $(PWD)/node_modules NPM ?= yarn + +#Sphinx Docs +SPHINXOPTS ?= +SPHINXBUILD ?= $(VENV)/bin/sphinx-build +SOURCEDIR = docs/source +BUILDDIR = docs/build