Skip to content

Commit 954bbfa

Browse files
committed
Add command for doc validation
Signed-off-by: Keshav Priyadarshi <git@keshav.space>
1 parent 7edac59 commit 954bbfa

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Makefile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,10 @@ run:
116116
@echo "-> Starting development server"
117117
${MANAGE} runserver 8000 --insecure
118118

119-
.PHONY: dev envfile isort black doc8 valid bandit check check-deploy clean migrate test docs postgresdb backupdb run
119+
check_docs:
120+
@echo "Check Sphinx Documentation build minimally"
121+
@${ACTIVATE} sphinx-build -E -W docs/source build
122+
@echo "Check for documentation style errors"
123+
@${ACTIVATE} doc8 --max-line-length 100 docs/source --ignore-path docs/_build/ --ignore D000 --quiet
124+
125+
.PHONY: dev envfile isort black doc8 valid bandit check check-deploy clean migrate test docs postgresdb backupdb run check_docs

0 commit comments

Comments
 (0)