swissChili | c41a15e | 2021-06-16 09:14:56 -0700 | [diff] [blame] | 1 | import subprocess, os |
| 2 | |
| 3 | rtd = os.environ.get('READTHEDOCS', None) == 'True' |
| 4 | |
| 5 | if rtd: |
| 6 | print('Generating kernel doxygen') |
| 7 | subprocess.call('doxygen kernel.doxyfile', shell=True) |
| 8 | print('Generating lisp doxygen') |
| 9 | subprocess.call('doxygen lisp.doxyfile', shell=True) |
| 10 | |
swissChili | e00e88a | 2021-05-30 17:54:26 -0700 | [diff] [blame] | 11 | project = 'Bluejay' |
| 12 | copyright = '2021, swissChili' |
| 13 | author = 'swissChili' |
| 14 | |
| 15 | extensions = [ |
swissChili | c41a15e | 2021-06-16 09:14:56 -0700 | [diff] [blame] | 16 | 'breathe' |
swissChili | e00e88a | 2021-05-30 17:54:26 -0700 | [diff] [blame] | 17 | ] |
| 18 | |
swissChili | c41a15e | 2021-06-16 09:14:56 -0700 | [diff] [blame] | 19 | breathe_projects = { |
| 20 | 'Kernel': '_dox_kernel/xml', |
| 21 | 'Lisp': '_dox_lisp/xml' |
| 22 | } |
| 23 | |
| 24 | breathe_default_project = 'Kernel' |
| 25 | |
swissChili | e00e88a | 2021-05-30 17:54:26 -0700 | [diff] [blame] | 26 | templates_path = ['_templates'] |
| 27 | |
swissChili | c41a15e | 2021-06-16 09:14:56 -0700 | [diff] [blame] | 28 | exclude_patterns = ['_build', '_dox_kernel', '_dox_lisp', 'Thumbs.db', '.DS_Store'] |
swissChili | e00e88a | 2021-05-30 17:54:26 -0700 | [diff] [blame] | 29 | |
swissChili | c41a15e | 2021-06-16 09:14:56 -0700 | [diff] [blame] | 30 | html_theme = 'sphinx_rtd_theme' |
swissChili | e00e88a | 2021-05-30 17:54:26 -0700 | [diff] [blame] | 31 | |
| 32 | html_static_path = ['_static'] |
swissChili | 61ced3b | 2021-07-02 14:52:05 -0700 | [diff] [blame] | 33 | |
| 34 | def setup(app): |
| 35 | app.add_stylesheet('custom.css') |