Skip to content

Commit

Permalink
Fix docs building
Browse files Browse the repository at this point in the history
  • Loading branch information
abondar committed May 23, 2024
1 parent 4bfc46e commit 8e75f88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
8 changes: 8 additions & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
# This file does only contain a selection of the most common options. For a
# full list see the documentation:
# http://www.sphinx-doc.org/en/stable/config
import json

# -- Path setup --------------------------------------------------------------

Expand Down Expand Up @@ -113,10 +114,17 @@
html_theme = "sphinx_immaterial"
html_show_sourcelink = True


# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
#
def get_version_info():
with open("versions.json") as f:
versions = json.load(f)
return versions


html_theme_options = {
"google_analytics": ["G-MJ7RHW2FRB", "auto"],
"repo_url": "https://github.com/tortoise/tortoise-orm",
Expand Down
5 changes: 0 additions & 5 deletions docs/versions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,5 @@
"version": "https://tortoise.github.io",
"title": "latest",
"aliases": []
},
{
"version": "https://tortoise.github.io/0.19.1",
"title": "0.19.1",
"aliases": []
}
]

0 comments on commit 8e75f88

Please sign in to comment.