update Makefile to generate documentation

This commit is contained in:
Sam 2019-07-14 14:47:07 +02:00
parent a84da05427
commit 5c13dec256
2 changed files with 9 additions and 0 deletions

View File

@ -13,6 +13,9 @@ clean-install:
rm -fr $(NODE_MODULES) rm -fr $(NODE_MODULES)
rm -fr $(VENV) rm -fr $(VENV)
html:
$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
install-db: install-db:
psql -U postgres -f fittrackee_api/db/create.sql psql -U postgres -f fittrackee_api/db/create.sql
$(FLASK) db upgrade --directory $(MIGRATIONS) $(FLASK) db upgrade --directory $(MIGRATIONS)

View File

@ -25,3 +25,9 @@ COV = $(VENV)/bin/python-codacy-coverage
# Node env # Node env
NODE_MODULES = $(PWD)/node_modules NODE_MODULES = $(PWD)/node_modules
NPM ?= yarn NPM ?= yarn
#Sphinx Docs
SPHINXOPTS ?=
SPHINXBUILD ?= $(VENV)/bin/sphinx-build
SOURCEDIR = docs/source
BUILDDIR = docs/build