|
86 | 86 | html_static_path = ["../_static"] |
87 | 87 | version = version("autointent").replace("dev", "") # may differ |
88 | 88 |
|
89 | | -BASE_URL = "https://deeppavlov.github.io/AutoIntent" |
| 89 | +BASE_URL = "https://deeppavlov.github.io/AutoIntent/versions/dev" |
90 | 90 | html_theme_options = { |
91 | 91 | "logo": { |
92 | 92 | "text": "AutoIntent", |
93 | | - "image_light": "../_static/logo-light.svg", |
94 | | - "image_dark": "../_static/logo-dark.svg", |
| 93 | + "image_light": f"{BASE_URL}/_static/logo-light.svg", |
| 94 | + "image_dark": f"{BASE_URL}/_static/logo-dark.svg", |
95 | 95 | }, |
96 | 96 | "icon_links": [ |
97 | 97 | { |
|
103 | 103 | { |
104 | 104 | "name": "HuggingFace", |
105 | 105 | "url": "https://huggingface.co/AutoIntent", |
106 | | - "icon": "../_static/hf-logo.svg", |
| 106 | + "icon": f"{BASE_URL}/_static/hf-logo.svg", |
107 | 107 | "type": "local", |
108 | 108 | }, |
109 | 109 | ], |
|
115 | 115 | "show_toc_level": 3, |
116 | 116 | } |
117 | 117 |
|
118 | | -html_favicon = "../_static/logo-white.svg" |
| 118 | +html_favicon = f"{BASE_URL}/_static/logo-white.svg" |
119 | 119 | html_show_sourcelink = False |
120 | 120 |
|
121 | 121 | toc_object_entries_show_parents = "hide" |
|
141 | 141 | "user_guides/*": "_static/square-white.svg", |
142 | 142 | } |
143 | 143 |
|
144 | | -# html_sidebars = { |
145 | | -# '**': [ |
146 | | -# 'versioning.html', |
147 | | -# ], |
148 | | -# } |
149 | | - |
150 | 144 | mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js" |
151 | 145 |
|
152 | | -# sphinx-multiversion |
153 | | -# Whitelist for tags matching v1.0, v2.1 format |
154 | | -smv_tag_whitelist = r'^v\d+\.\d+\.\d+$' |
155 | | - |
156 | | -# Whitelist for the dev branch |
157 | | -smv_branch_whitelist = r'^dev$' |
158 | | - |
159 | | -# Output format (keeping your current format) |
160 | | -smv_outputdir_format = 'versions/{config.version}/{ref.name}' |
161 | | - |
162 | | -# Include both tags and dev branch as released |
163 | | -smv_released_pattern = r'^(refs/tags/.*|refs/heads/dev)$' |
164 | | - |
165 | 146 | repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', "..")) # if conf.py is in docs/ |
166 | 147 | def setup(app) -> None: # noqa: ANN001 |
167 | 148 | generate_versions_json(app, repo_root, BASE_URL) |
|
0 commit comments