Skip to content

Commit 3e06e9f

Browse files
committed
update url
1 parent 4f18d3d commit 3e06e9f

File tree

4 files changed

+7
-31
lines changed

4 files changed

+7
-31
lines changed

Makefile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,6 @@ test-docs: docs
3838
serve-docs: docs
3939
$(poetry) python -m http.server -d docs/build/html 8333
4040

41-
.PHONY: multi-version-docs
42-
multi-version-docs:
43-
$(poetry) sphinx-multiversion docs/source docs/build/html
44-
4541
.PHONY: clean-docs
4642
clean-docs:
4743
rm -rf docs/build

docs/_static/versions.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
{
33
"name": "v0.0.1 (stable)",
44
"version": "0.0.1",
5-
"url": "https://deeppavlov.github.io/AutoIntent/0.0.1/",
5+
"url": "https://deeppavlov.github.io/AutoIntent/versions/dev/0.0.1/",
66
"preferred": true
77
},
88
{
99
"version": "dev (dev)",
10-
"url": "https://deeppavlov.github.io/AutoIntent/dev/"
10+
"url": "https://deeppavlov.github.io/AutoIntent/versions/dev/dev/"
1111
}
1212
]

docs/source/conf.py

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,12 @@
8686
html_static_path = ["../_static"]
8787
version = version("autointent").replace("dev", "") # may differ
8888

89-
BASE_URL = "https://deeppavlov.github.io/AutoIntent"
89+
BASE_URL = "https://deeppavlov.github.io/AutoIntent/versions/dev"
9090
html_theme_options = {
9191
"logo": {
9292
"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",
9595
},
9696
"icon_links": [
9797
{
@@ -103,7 +103,7 @@
103103
{
104104
"name": "HuggingFace",
105105
"url": "https://huggingface.co/AutoIntent",
106-
"icon": "../_static/hf-logo.svg",
106+
"icon": f"{BASE_URL}/_static/hf-logo.svg",
107107
"type": "local",
108108
},
109109
],
@@ -115,7 +115,7 @@
115115
"show_toc_level": 3,
116116
}
117117

118-
html_favicon = "../_static/logo-white.svg"
118+
html_favicon = f"{BASE_URL}/_static/logo-white.svg"
119119
html_show_sourcelink = False
120120

121121
toc_object_entries_show_parents = "hide"
@@ -141,27 +141,8 @@
141141
"user_guides/*": "_static/square-white.svg",
142142
}
143143

144-
# html_sidebars = {
145-
# '**': [
146-
# 'versioning.html',
147-
# ],
148-
# }
149-
150144
mathjax_path = "https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"
151145

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-
165146
repo_root = os.path.abspath(os.path.join(os.path.dirname(__file__), '..', "..")) # if conf.py is in docs/
166147
def setup(app) -> None: # noqa: ANN001
167148
generate_versions_json(app, repo_root, BASE_URL)

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ sphinx-autodoc-typehints = "^2.5.0"
9595
sphinx-copybutton = "^0.5.2"
9696
sphinx-autoapi = "^3.3.3"
9797
ipykernel = "^6.29.5"
98-
sphinx-multiversion = "^0.2.4"
9998

10099
[tool.poetry.scripts]
101100
"autointent" = "autointent._pipeline._cli_endpoint:optimize"

0 commit comments

Comments
 (0)