diff --git a/docs/sphinxext/mantiddoc/directives/categories.py b/docs/sphinxext/mantiddoc/directives/categories.py index bbff9bb86c5478ffdeb4a09e58f9179ae0b884e4..0fd36f5f316b27dba717cd8076d627457963e597 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)