Skip to content

Commit 52984ef

Browse files
committed
Fixed rtd doc generation
1 parent 9b22b9e commit 52984ef

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

docs/Doxyfile

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ INPUT = ../include/xsimd/types/xsimd_api.hpp \
66
../include/xsimd/config/xsimd_config.hpp \
77
../include/xsimd/memory/xsimd_alignment.hpp \
88
../include/xsimd/memory/xsimd_aligned_allocator.hpp \
9-
\
109
../include/xsimd/types/xsimd_generic_arch.hpp \
1110
../include/xsimd/types/xsimd_avx2_register.hpp \
1211
../include/xsimd/types/xsimd_avx512bw_register.hpp \

docs/environment.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ channels:
44
- conda-forge
55

66
dependencies:
7-
- breathe==4.25.1
8-
- doxygen==1.9.1
7+
- breathe
8+
#- docutils<0.17

docs/source/conf.py

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,19 @@
44
import os
55
import subprocess
66

7+
on_rtd = os.environ.get('READTHEDOCS', None) == 'True'
8+
9+
if on_rtd:
10+
subprocess.call('cd ..; doxygen', shell=True)
11+
712
import sphinx_rtd_theme
813

914
html_theme = "sphinx_rtd_theme"
10-
1115
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
1216

17+
def setup(app):
18+
app.add_css_file("main_stylesheet.css")
19+
1320
extensions = ['breathe']
1421
breathe_projects = { 'xsimd': '../xml' }
1522
templates_path = ['_templates']

0 commit comments

Comments
 (0)