Skip to content

Commit 4025ab6

Browse files
committed
fix static paths
1 parent 63d8463 commit 4025ab6

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

docs/source/conf.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,11 +86,13 @@
8686
version = version("autointent").replace("dev", "") # may differ
8787

8888
BASE_URL = "https://deeppavlov.github.io/AutoIntent/versions"
89+
BASE_STATIC_URL = "https://deeppavlov.github.io/AutoIntent/versions/dev/_static"
90+
8991
html_theme_options = {
9092
"logo": {
9193
"text": "AutoIntent",
92-
"image_light": f"{BASE_URL}/_static/logo-light.svg",
93-
"image_dark": f"{BASE_URL}/_static/logo-dark.svg",
94+
"image_light": f"{BASE_URL}/logo-light.svg",
95+
"image_dark": f"{BASE_URL}/logo-dark.svg",
9496
},
9597
"icon_links": [
9698
{
@@ -102,19 +104,19 @@
102104
{
103105
"name": "HuggingFace",
104106
"url": "https://huggingface.co/AutoIntent",
105-
"icon": f"{BASE_URL}/_static/hf-logo.svg",
107+
"icon": f"{BASE_URL}/hf-logo.svg",
106108
"type": "local",
107109
},
108110
],
109111
"switcher": {
110-
"json_url": f"{BASE_URL}/_static/versions.json",
112+
"json_url": f"{BASE_URL}/versions.json",
111113
"version_match": version,
112114
},
113115
"navbar_start": ["navbar-logo", "version-switcher"],
114116
"show_toc_level": 3,
115117
}
116118

117-
html_favicon = f"{BASE_URL}/_static/logo-white.svg"
119+
html_favicon = f"{BASE_URL}/logo-white.svg"
118120
html_show_sourcelink = False
119121

120122
toc_object_entries_show_parents = "hide"

0 commit comments

Comments
 (0)