From ff94b302dae9a2b7bb9a6e9621b7ff126b83085f Mon Sep 17 00:00:00 2001 From: Pete Peterson <petersonpf@ornl.gov> Date: Wed, 22 Feb 2017 13:59:34 -0500 Subject: [PATCH] Make categories universal --- docs/sphinxext/mantiddoc/directives/categories.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/docs/sphinxext/mantiddoc/directives/categories.py b/docs/sphinxext/mantiddoc/directives/categories.py index bbff9bb86c5..0fd36f5f316 100644 --- a/docs/sphinxext/mantiddoc/directives/categories.py +++ b/docs/sphinxext/mantiddoc/directives/categories.py @@ -348,18 +348,12 @@ def create_category_pages(app): # Now any additional index pages if required if category.name in INDEX_CATEGORIES: # index in categories directory - if category.name == 'Concepts': - category_html_dir = 'concepts/categories' - else: - category_html_dir = os.path.dirname(category.html_path) + category_html_dir = os.path.join(category.name.lower(), 'categories') category_html_path_noext = os.path.join(category_html_dir, 'index') yield (category_html_path_noext, context, template) # index in document directory - if category.name == 'Concepts': - document_dir = 'concepts' - else: - document_dir = os.path.dirname(category_html_dir) + document_dir = os.path.dirname(category_html_dir) category_html_path_noext = os.path.join(document_dir, 'index') context['outpath'] = category_html_path_noext + '.html' yield (category_html_path_noext, context, template) -- GitLab