-
-
Notifications
You must be signed in to change notification settings - Fork 233
/
Copy pathconf.py
57 lines (51 loc) · 2.16 KB
/
conf.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
import automl_sphinx_theme
from smac import copyright, author, version, name
from sphinx_gallery.sorting import FileNameSortKey
# from smac.cli.cmd_reader import CMDReader
options = {
"copyright": copyright,
"author": author,
"version": version,
"versions": {
f"v{version}": "#",
"v2.2.0": "https://automl.github.io/SMAC3/v2.2.0/",
"v2.1.0": "https://automl.github.io/SMAC3/v2.1.0/",
"v2.0.1": "https://automl.github.io/SMAC3/v2.0.1/",
"v2.0.0": "https://automl.github.io/SMAC3/v2.0.0/",
"v2.0.0b1": "https://automl.github.io/SMAC3/v2.0.0b1/",
"v2.0.0a2": "https://automl.github.io/SMAC3/v2.0.0a2/",
"v2.0.0a1": "https://automl.github.io/SMAC3/v2.0.0a1/",
"v1.4.0": "https://automl.github.io/SMAC3/v1.4.0/",
},
"name": name,
"html_theme_options": {
"github_url": "https://github.com/automl/SMAC3",
"twitter_url": "https://twitter.com/automl_org?lang=de",
},
# "ignore_pattern": ".*pcs$|.*scenario.txt$|.*spear_qcp$",
"sphinx_gallery_conf": {
"plot_gallery": True,
"within_subsection_order": FileNameSortKey,
"filename_pattern": "/", # We want to execute all files in `examples`
"binder": {
# Required keys
"org": "automl",
"repo": "SMAC3",
"branch": "main",
"binderhub_url": "https://mybinder.org",
"dependencies": ["../.binder/apt.txt", "../.binder/requirements.txt"],
# "filepath_prefix": "<prefix>" # A prefix to prepend to any filepaths in Binder links.
# Jupyter notebooks for Binder will be copied to this directory (relative to built documentation root).
"notebooks_dir": "notebooks/",
"use_jupyter_lab": True,
# Whether Binder links should start Jupyter Lab instead of the Jupyter Notebook interface.
},
"ignore_pattern": ".*7_parallelization_cluster.py$",
},
}
automl_sphinx_theme.set_options(globals(), options)
# Write outputs
# cmd_reader = CMDReader()
# cmd_reader.write_main_options_to_doc()
# cmd_reader.write_smac_options_to_doc()
# cmd_reader.write_scenario_options_to_doc()