From 02c81daa0c738f96b5a234adcfde307258a03b74 Mon Sep 17 00:00:00 2001 From: Daniel Wagner Date: Fri, 4 Feb 2022 12:45:19 +0100 Subject: [PATCH] doc: Fix sphinx setup sphinx warns about cyclic refernce. Do not include the index into the index file. Also add the build dir and index.rst to the ignore list. This avoids another type of warnings. Signed-off-by: Daniel Wagner --- doc/conf.py | 2 +- doc/index.rst | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index 8e10c92b..422386a5 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -40,7 +40,7 @@ templates_path = ['_templates'] # 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 = ['html', 'man', 'index.rst', 'Thumbs.db', '.DS_Store'] # -- Options for HTML output ------------------------------------------------- diff --git a/doc/index.rst b/doc/index.rst index 716808a9..639b3d5b 100644 --- a/doc/index.rst +++ b/doc/index.rst @@ -10,7 +10,6 @@ Welcome to libnvme's documentation! :maxdepth: 2 :caption: Contents: - index libnvme -- 2.50.1