From 5c13dec256b2b1e6760cf15ac72ce762069483c3 Mon Sep 17 00:00:00 2001 From: Sam Date: Sun, 14 Jul 2019 14:47:07 +0200 Subject: [PATCH] update Makefile to generate documentation --- Makefile | 3 +++ Makefile.config | 6 ++++++ 2 files changed, 9 insertions(+) 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