Make FAIL_WARN a boolean
This commit is contained in:
parent
78cd83845f
commit
e914f0df8e
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -88,10 +88,10 @@ jobs:
|
|||||||
run: python test.py mypy
|
run: python test.py mypy
|
||||||
|
|
||||||
- name: Build man page
|
- name: Build man page
|
||||||
run: make FAIL_WARN=-W man
|
run: make FAIL_WARN=1 man
|
||||||
|
|
||||||
- name: Build HTML docs
|
- name: Build HTML docs
|
||||||
run: make FAIL_WARN=-W html
|
run: make FAIL_WARN=1 html
|
||||||
|
|
||||||
bundle:
|
bundle:
|
||||||
name: Bundle test (${{ matrix.os }})
|
name: Bundle test (${{ matrix.os }})
|
||||||
|
|||||||
@ -1,6 +1,10 @@
|
|||||||
# Minimal makefile for Sphinx documentation
|
# Minimal makefile for Sphinx documentation
|
||||||
#
|
#
|
||||||
|
|
||||||
|
ifdef FAIL_WARN
|
||||||
|
FAIL_WARN=-W
|
||||||
|
endif
|
||||||
|
|
||||||
# You can set these variables from the command line.
|
# You can set these variables from the command line.
|
||||||
SPHINXOPTS = -n -q -j auto -T $(FAIL_WARN) $(OPTS)
|
SPHINXOPTS = -n -q -j auto -T $(FAIL_WARN) $(OPTS)
|
||||||
SPHINXBUILD = sphinx-build
|
SPHINXBUILD = sphinx-build
|
||||||
|
|||||||
@ -79,11 +79,11 @@ def run_tag(args: Any) -> None:
|
|||||||
|
|
||||||
|
|
||||||
def run_man(args: Any) -> None:
|
def run_man(args: Any) -> None:
|
||||||
call('make FAIL_WARN=-W man', cwd=docs_dir)
|
call('make FAIL_WARN=1 man', cwd=docs_dir)
|
||||||
|
|
||||||
|
|
||||||
def run_html(args: Any) -> None:
|
def run_html(args: Any) -> None:
|
||||||
call('make FAIL_WARN=-W "OPTS=-D analytics_id=UA-20736318-2" dirhtml', cwd=docs_dir)
|
call('make FAIL_WARN=1 "OPTS=-D analytics_id=UA-20736318-2" dirhtml', cwd=docs_dir)
|
||||||
add_old_redirects('docs/_build/dirhtml')
|
add_old_redirects('docs/_build/dirhtml')
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user