From: Michal Nowikowski Date: Fri, 19 Jul 2019 07:41:56 +0000 (+0200) Subject: fixed duplicate label warning by excluding files being included X-Git-Tag: Kea-1.6.1~10^2~53 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1987b6d5cd353f3abfdd7018350aad59af81a04c;p=thirdparty%2Fkea.git fixed duplicate label warning by excluding files being included --- diff --git a/doc/sphinx/Makefile.am b/doc/sphinx/Makefile.am index c9f2ed06f9..113b52abba 100644 --- a/doc/sphinx/Makefile.am +++ b/doc/sphinx/Makefile.am @@ -8,6 +8,7 @@ sphinxopts= sphinxopts+=-v sphinxopts+=-E sphinxopts+=-a +sphinxopts+=-W sphinxopts+=-j auto sphinxopts+=-c "${abs_srcdir}" diff --git a/doc/sphinx/conf.py b/doc/sphinx/conf.py index e0f36928ee..852a54e16c 100644 --- a/doc/sphinx/conf.py +++ b/doc/sphinx/conf.py @@ -32,9 +32,6 @@ with open(config_ac_path) as f: parts = line.split(',') release = parts[1] version = release -print("=" * 30) -print(release) -print("=" * 30) # -- General configuration --------------------------------------------------- @@ -71,7 +68,18 @@ language = None # List of patterns, relative to source directory, that match files and # directories to ignore when looking for source files. # This pattern also affects html_static_path and html_extra_path. -exclude_patterns = ['_build', 'Thumbs.db', '.DS_Store'] +exclude_patterns = [ + '_build', 'Thumbs.db', '.DS_Store', + # included files need to be excluded to avoid duplicate labels + 'arm/hooks-class-cmds.rst', + 'arm/hooks-cb-cmds.rst', + 'arm/hooks-ha.rst', + 'arm/hooks-host-cache.rst', + 'arm/hooks-lease-cmds.rst', + 'arm/hooks-radius.rst', + 'arm/hooks-stat-cmds.rst', + 'arm/hammer.rst', +] # The name of the Pygments (syntax highlighting) style to use. pygments_style = None