From 4559a5f14d1cf56669e1a52477a5c31bee718a61 Mon Sep 17 00:00:00 2001 From: u214892 <u214892@sbb.ch> Date: Tue, 21 May 2019 15:08:25 +0200 Subject: [PATCH] #31 suppress sphinx warnings as temporary workaround --- docs/Makefile | 3 ++- make_docs.py | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/Makefile b/docs/Makefile index e6adc31c..eb44e95e 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -2,7 +2,8 @@ # # You can set these variables from the command line. -SPHINXOPTS = +# TODO fix sphinx warnings instead of suppressing them... +SPHINXOPTS = -Q SPHINXBUILD = python -msphinx SPHINXPROJ = flatland SOURCEDIR = . diff --git a/make_docs.py b/make_docs.py index 8cc1124a..5d27230f 100644 --- a/make_docs.py +++ b/make_docs.py @@ -24,7 +24,8 @@ subprocess.call(['sphinx-apidoc', '-o', 'docs/', 'flatland']) os.environ["SPHINXPROJ"] = "flatland" os.chdir('docs') subprocess.call(['python', '-msphinx', '-M', 'clean', '.', '_build']) -subprocess.call(['python', '-msphinx', '-M', 'html', '.', '_build']) -subprocess.call(['python', '-mpydeps', '../flatland', '-o', '_build/html/flatland.svg']) +# TODO fix sphinx warnings instead of suppressing them... +subprocess.call(['python', '-msphinx', '-M', 'html', '.', '_build', '-Q']) +subprocess.call(['python', '-mpydeps', '../flatland', '-o', '_build/html/flatland.svg', '--no-config', '--noshow']) browser('_build/html/index.html') -- GitLab