Skip to content

Commit 14cbf05

Browse files
committed
Make the build "super pulenta"
1 parent 879978e commit 14cbf05

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ help:
4040
# treated as errors, which is good to skip simple Sphinx syntax mistakes.
4141
.PHONY: build
4242
build: setup
43-
sphinx-build -j auto -W -b html -d $(OUTPUT_DOCTREE) -D language=$(LANGUAGE) . $(OUTPUT_HTML)
43+
PYTHONWARNINGS=ignore::FutureWarning sphinx-build -j auto -W --keep-going -b html -d $(OUTPUT_DOCTREE) -D language=$(LANGUAGE) . $(OUTPUT_HTML)
4444
@echo "Success! Open file://`pwd`/$(OUTPUT_HTML)/index.html, " \
4545
"or run 'make serve' to see them in http://localhost:8000";
4646

conf.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
#
1212
# This can be built locally using `sphinx-build` by running
1313
#
14-
# $ sphinx-build -b html -n -d _build/doctrees -D language=es . _build/html
14+
# $ sphinx-build -b html -d _build/doctrees -D language=es . _build/html
1515

1616
import sys, os, time
1717
sys.path.append(os.path.abspath('cpython/Doc/tools/extensions'))
@@ -37,6 +37,12 @@
3737
os.system('ln -nfs `pwd` cpython/locales/es/LC_MESSAGES')
3838

3939

40+
exclude_patterns = [
41+
# This file is not included and it not marked as :orphan:
42+
'distutils/_setuptools_disclaimer.rst',
43+
'README.rst',
44+
]
45+
4046
if not os.environ.get('SPHINX_GETTEXT') == 'True':
4147
# Override all the files from ``.overrides`` directory
4248
import glob

0 commit comments

Comments
 (0)