Skip to content

Commit 63d8463

Browse files
committed
upd json
1 parent 2529269 commit 63d8463

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

docs/_static/versions.json

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

docs/source/docs_utils/versions_generator.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,15 @@ def version_key(tag):
3333
if sorted_tags:
3434
versions.append({
3535
"name": f"{sorted_tags[0]} (stable)",
36-
"version": sorted_tags[0].lstrip('v'),
37-
"url": f"{base_url}/{sorted_tags[0].lstrip('v')}/",
36+
"version": sorted_tags[0],
37+
"url": f"{base_url}/{sorted_tags[0]}/",
3838
"preferred": True,
3939
})
4040

4141
for tag in sorted_tags[1:]:
4242
versions.append({
43-
"version": tag.lstrip('v'),
44-
"url": f"{base_url}/{tag.lstrip('v')}/"
43+
"version": tag,
44+
"url": f"{base_url}/{tag}/"
4545
})
4646

4747
# Get branches

0 commit comments

Comments
 (0)