|
1 | 1 | #!/usr/bin/env python |
2 | 2 | # -*- coding: utf-8 -*- |
3 | | -import os |
4 | 3 | import subprocess |
5 | 4 |
|
6 | 5 | import sphinx_material |
|
9 | 8 | try: |
10 | 9 | __version__ = get_distribution("celerite2").version |
11 | 10 | except DistributionNotFound: |
12 | | - __version__ = "unknown version" |
| 11 | + __version__ = "dev" |
13 | 12 |
|
14 | 13 |
|
15 | 14 | subprocess.call("doxygen Doxyfile.in", shell=True) |
|
19 | 18 | "sphinx.ext.intersphinx", |
20 | 19 | "sphinx.ext.napoleon", |
21 | 20 | "sphinx.ext.mathjax", |
| 21 | + "sphinx.ext.viewcode", |
22 | 22 | "sphinx_copybutton", |
23 | | - "nbsphinx", |
| 23 | + "myst_nb", |
24 | 24 | "breathe", |
25 | 25 | ] |
26 | 26 |
|
27 | | -autodoc_mock_imports = [ |
28 | | - "numpy", |
29 | | - "theano", |
30 | | - "pymc3", |
31 | | - "celerite2.driver", |
32 | | - "celerite2.backprop", |
33 | | -] |
34 | | - |
35 | | -intersphinx_mapping = { |
36 | | - "python": ("https://docs.python.org/3/", None), |
37 | | - "numpy": ("https://docs.scipy.org/doc/numpy/", None), |
38 | | - "scipy": ("https://docs.scipy.org/doc/scipy/reference/", None), |
39 | | - "pymc3": ("https://docs.pymc.io/", None), |
40 | | - "celerite": ("https://celerite.readthedocs.io/en/stable/", None), |
41 | | -} |
| 27 | +autodoc_mock_imports = ["theano", "pymc3"] |
42 | 28 |
|
43 | 29 | exclude_patterns = ["_build"] |
44 | 30 | templates_path = ["_templates"] |
|
48 | 34 | # General information about the project. |
49 | 35 | project = "celerite2" |
50 | 36 | author = "Dan Foreman-Mackey" |
51 | | -copyright = "2020, " + author |
| 37 | +copyright = "2020-2022" + author |
52 | 38 | version = __version__ |
53 | 39 | release = __version__ |
54 | 40 |
|
55 | | -# RTDs-action |
56 | | -if "GITHUB_TOKEN" in os.environ: |
57 | | - extensions.append("rtds_action") |
58 | | - |
59 | | - rtds_action_github_repo = "exoplanet-dev/celerite2" |
60 | | - rtds_action_path = "tutorials" |
61 | | - rtds_action_artifact_prefix = "notebooks-for-" |
62 | | - rtds_action_github_token = os.environ["GITHUB_TOKEN"] |
63 | | - |
64 | 41 | # HTML theme |
65 | 42 | html_show_sourcelink = False |
66 | 43 | html_sidebars = { |
|
107 | 84 | breathe_projects = {"celerite2": "c++/xml/"} |
108 | 85 | breathe_default_project = "celerite2" |
109 | 86 | breathe_default_members = ("members", "undoc-members") |
| 87 | + |
| 88 | +# Myst notebooks |
| 89 | +nb_execution_mode = "auto" |
| 90 | +nb_execution_timeout = -1 |
0 commit comments