.gitlab-ci: docs: install the main requirements.txt, treat warnings as errors

This commit is contained in:
InsanePrawn 2022-11-12 02:47:55 +01:00
parent 33b52b2774
commit 2237b940c4
2 changed files with 3 additions and 3 deletions

View file

@ -72,9 +72,9 @@ push_docker:
.docs: .docs:
image: "${CI_REGISTRY_IMAGE}:dev" image: "${CI_REGISTRY_IMAGE}:dev"
before_script: before_script:
- pip install -r docs/requirements.txt - pip install -r requirements.txt -r docs/requirements.txt
script: script:
- (cd docs && make) - (cd docs && SPHINXARGS='-W' make)
- mv docs/html public - mv docs/html public
artifacts: artifacts:
paths: paths:

View file

@ -10,7 +10,7 @@ clean:
rm -rf html source/cli .buildinfo .doctrees rm -rf html source/cli .buildinfo .doctrees
html: html:
sphinx-build $(buildargs) sphinx-build $(SPHINXARGS) $(buildargs)
serve: html serve: html
(cd html && python -m http.server 9999) (cd html && python -m http.server 9999)