|
26 | 26 | # add these directories to sys.path here. If the directory is relative to the
|
27 | 27 | # documentation root, use os.path.abspath to make it absolute, like shown here.
|
28 | 28 | #
|
29 |
| -import os |
30 |
| -import sys |
31 |
| - |
32 |
| -import pymc_extras # isort:skip |
33 |
| - |
34 |
| -sys.path.insert(0, os.path.abspath("../")) |
| 29 | +import pymc_extras |
35 | 30 |
|
36 | 31 | # -- Project information -----------------------------------------------------
|
37 | 32 |
|
38 | 33 | project = "pymc_extras"
|
39 | 34 | copyright = "2022, pymc-devs"
|
40 | 35 | author = "pymc-devs"
|
41 | 36 |
|
42 |
| -# The short X.Y version |
43 |
| -version = pymc_extras.__version__ |
44 | 37 | # The full version, including alpha/beta/rc tags
|
45 |
| -release = version |
| 38 | +release = pymc_extras.__version__ |
| 39 | +# The short X.Y version |
| 40 | +version = release.split("+")[0] if "+" in release else release |
46 | 41 |
|
47 | 42 |
|
48 | 43 | # -- General configuration ---------------------------------------------------
|
|
112 | 107 | "collapse_navigation": True,
|
113 | 108 | "show_toc_level": 2,
|
114 | 109 | "navigation_depth": 4,
|
115 |
| - "search_bar_text": "Search the docs...", |
116 |
| - "use_search_override": False, |
| 110 | + "search_bar_text": "Search within PyMC-extras...", |
| 111 | + "use_search_override": True, |
117 | 112 | "logo": {"text": project},
|
| 113 | + "icon_links": [ |
| 114 | + { |
| 115 | + "url": "https://github.com/pymc-devs/pymc-extras", |
| 116 | + "icon": "fa-brands fa-github", |
| 117 | + "name": "GitHub", |
| 118 | + }, |
| 119 | + ], |
118 | 120 | }
|
119 | 121 | html_context = {
|
120 | 122 | "github_user": "pymc-devs",
|
|
128 | 130 | # Add any paths that contain custom static files (such as style sheets) here,
|
129 | 131 | # relative to this directory. They are copied after the builtin static files,
|
130 | 132 | # so a file named "default.css" will overwrite the builtin "default.css".
|
131 |
| -html_static_path = ["../_static"] |
| 133 | +# html_static_path = ["../_static"] |
132 | 134 |
|
133 | 135 | # -- Options for HTMLHelp output ---------------------------------------------
|
134 | 136 |
|
|
0 commit comments