|
45 | 45 | "sphinx_copybutton",
|
46 | 46 | "sphinx_design",
|
47 | 47 | "sphinx_gallery.gen_gallery",
|
48 |
| - "rtds_action", |
49 | 48 | ]
|
50 | 49 |
|
51 |
| -# The name of your GitHub repository |
52 |
| -rtds_action_github_repo = "fastplotlib/fastplotlib" |
53 | 50 |
|
54 |
| -# The path where the artifact should be extracted |
55 |
| -# Note: this is relative to the conf.py file! |
56 |
| -rtds_action_path = "_gallery" |
| 51 | +if "RTD_BUILD" in os.environ.keys(): |
| 52 | + extensions.append("rtds_action") |
57 | 53 |
|
58 |
| -# The "prefix" used in the `upload-artifact` step of the action |
59 |
| -rtds_action_artifact_prefix = "gallery-" |
| 54 | + # The name of your GitHub repository |
| 55 | + rtds_action_github_repo = "fastplotlib/fastplotlib" |
60 | 56 |
|
61 |
| -# A GitHub personal access token is required, more info below |
62 |
| -rtds_action_github_token = os.environ["GITHUB_TOKEN"] |
| 57 | + # The path where the artifact should be extracted |
| 58 | + # Note: this is relative to the conf.py file! |
| 59 | + rtds_action_path = "_gallery" |
63 | 60 |
|
64 |
| -# Whether or not to raise an error on Read the Docs if the |
65 |
| -# artifact containing the notebooks can't be downloaded (optional) |
66 |
| -rtds_action_error_if_missing = False |
| 61 | + # The "prefix" used in the `upload-artifact` step of the action |
| 62 | + rtds_action_artifact_prefix = "gallery-" |
| 63 | + |
| 64 | + # A GitHub personal access token is required, more info below |
| 65 | + rtds_action_github_token = os.environ["GITHUB_TOKEN"] |
| 66 | + |
| 67 | + # Whether or not to raise an error on Read the Docs if the |
| 68 | + # artifact containing the notebooks can't be downloaded (optional) |
| 69 | + rtds_action_error_if_missing = False |
67 | 70 |
|
68 | 71 |
|
69 | 72 | sphinx_gallery_conf = {
|
|
0 commit comments