From ae8e28876954f53262678a60d2fc18c73ec1b7c7 Mon Sep 17 00:00:00 2001 From: Ernesto Puerta Date: Wed, 6 Feb 2019 18:04:23 +0100 Subject: [PATCH] doc: mgr/dashboard: feature-toggles: Fix config Add '*.inc.rst' to the list of excluded patterns from sphinx-build. This allows for using '*.inc.rst' as includes, and avoids duplicates. The benefit of keeping the trailing '.rst' extension is that most IDEs use that to render reStructured Text files. Fixes: http://tracker.ceph.com/issues/37530 Signed-off-by: Ernesto Puerta --- doc/conf.py | 2 +- doc/mgr/dashboard.rst | 2 +- .../{feature_toggles.rst.inc => feature_toggles.inc.rst} | 0 3 files changed, 2 insertions(+), 2 deletions(-) rename doc/mgr/dashboard_plugins/{feature_toggles.rst.inc => feature_toggles.inc.rst} (100%) diff --git a/doc/conf.py b/doc/conf.py index 45c4604d1b111..fadb5248a8634 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -9,7 +9,7 @@ release = 'dev' templates_path = ['_templates'] source_suffix = '.rst' master_doc = 'index' -exclude_patterns = ['**/.#*', '**/*~', 'start/quick-common.rst'] +exclude_patterns = ['**/.#*', '**/*~', 'start/quick-common.rst', '**/*.inc.rst'] if tags.has('man'): master_doc = 'man_index' exclude_patterns += ['index.rst', 'architecture.rst', 'glossary.rst', 'release*.rst', diff --git a/doc/mgr/dashboard.rst b/doc/mgr/dashboard.rst index 6172558b18ecc..2b504e1d97c81 100644 --- a/doc/mgr/dashboard.rst +++ b/doc/mgr/dashboard.rst @@ -769,4 +769,4 @@ Plug-ins Dashboard Plug-ins allow to extend the functionality of the dashboard in a modular and loosely coupled approach. -.. include:: dashboard_plugins/feature_toggles.rst.inc +.. include:: dashboard_plugins/feature_toggles.inc.rst diff --git a/doc/mgr/dashboard_plugins/feature_toggles.rst.inc b/doc/mgr/dashboard_plugins/feature_toggles.inc.rst similarity index 100% rename from doc/mgr/dashboard_plugins/feature_toggles.rst.inc rename to doc/mgr/dashboard_plugins/feature_toggles.inc.rst -- 2.39.5