Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f58e01c

Browse files
committed
versioning config (mike)
1 parent 68292b0 commit f58e01c

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

docs/overrides/main.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{% extends "base.html" %}
2+
3+
{% block outdated %}
4+
This document is for a version of the library other than the latest (current) version.
5+
<a href="{{ '../' ~ base_url }}">
6+
<strong>Take me to the current version's docs.</strong>
7+
</a>
8+
{% endblock %}

mkdocs-requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,14 @@ h11==0.14.0
1414
httpcore==1.0.3
1515
httpx==0.26.0
1616
idna==3.6
17+
importlib_metadata==7.0.2
18+
importlib_resources==6.1.3
1719
iniconfig==2.0.0
1820
Jinja2==3.1.3
1921
Markdown==3.5.2
2022
MarkupSafe==2.1.5
2123
mergedeep==1.3.4
24+
mike==2.0.0
2225
mkdocs==1.5.3
2326
mkdocs-autorefs==0.5.0
2427
mkdocs-gen-files==0.5.0
@@ -38,6 +41,7 @@ pydantic==2.6.1
3841
pydantic_core==2.16.2
3942
Pygments==2.17.2
4043
pymdown-extensions==10.7
44+
pyparsing==3.1.2
4145
pytest==8.0.1
4246
python-dateutil==2.8.2
4347
PyYAML==6.0.1
@@ -50,4 +54,6 @@ sniffio==1.3.0
5054
tqdm==4.66.2
5155
typing_extensions==4.9.0
5256
urllib3==2.2.0
57+
verspec==0.1.0
5358
watchdog==4.0.0
59+
zipp==3.17.0

mkdocs.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ watch: [README.md, src/openai]
88

99
theme:
1010
name: material
11+
custom_dir: docs/overrides
1112
icon:
1213
repo: fontawesome/brands/git-alt
1314

@@ -28,12 +29,8 @@ theme:
2829
name: Switch to light mode
2930

3031
font:
31-
#text: Sora # BIG!
3232
text: Inter
33-
#text: Actor
34-
3533
code: Chivo Mono
36-
#code: Martian Mono # BIG!
3734

3835
features:
3936
- content.code.annotate
@@ -116,8 +113,8 @@ extra:
116113
social:
117114
- icon: fontawesome/brands/github
118115
link: https://github.com/mmacy
119-
# version:
120-
# provider: mike
116+
version:
117+
provider: mike
121118

122119
nav:
123120
- Welcome:

0 commit comments

Comments
 (0)