From 52984efec98ef1122b2e85becc8c706fa5daa2c3 Mon Sep 17 00:00:00 2001 From: Johan Mabille Date: Thu, 14 Oct 2021 11:07:32 +0200 Subject: [PATCH] Fixed rtd doc generation --- docs/Doxyfile | 1 - docs/environment.yml | 4 ++-- docs/source/conf.py | 9 ++++++++- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/docs/Doxyfile b/docs/Doxyfile index 9a41c2929..7ebcb0031 100644 --- a/docs/Doxyfile +++ b/docs/Doxyfile @@ -6,7 +6,6 @@ INPUT = ../include/xsimd/types/xsimd_api.hpp \ ../include/xsimd/config/xsimd_config.hpp \ ../include/xsimd/memory/xsimd_alignment.hpp \ ../include/xsimd/memory/xsimd_aligned_allocator.hpp \ - \ ../include/xsimd/types/xsimd_generic_arch.hpp \ ../include/xsimd/types/xsimd_avx2_register.hpp \ ../include/xsimd/types/xsimd_avx512bw_register.hpp \ diff --git a/docs/environment.yml b/docs/environment.yml index 8bdf45488..63b08b681 100644 --- a/docs/environment.yml +++ b/docs/environment.yml @@ -4,5 +4,5 @@ channels: - conda-forge dependencies: - - breathe==4.25.1 - - doxygen==1.9.1 + - breathe + #- docutils<0.17 diff --git a/docs/source/conf.py b/docs/source/conf.py index bb09a55f8..c6732007a 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -4,12 +4,19 @@ import os import subprocess +on_rtd = os.environ.get('READTHEDOCS', None) == 'True' + +if on_rtd: + subprocess.call('cd ..; doxygen', shell=True) + import sphinx_rtd_theme html_theme = "sphinx_rtd_theme" - html_theme_path = [sphinx_rtd_theme.get_html_theme_path()] +def setup(app): + app.add_css_file("main_stylesheet.css") + extensions = ['breathe'] breathe_projects = { 'xsimd': '../xml' } templates_path = ['_templates']