Skip to content

Commit

Permalink
add cool github /pypi link stuff
Browse files Browse the repository at this point in the history
Change-Id: I57ec7a22a1d14992cc0f70d527a584a737022e21
  • Loading branch information
zzzeek committed Aug 19, 2024
1 parent 30292b3 commit 434a788
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/build/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,27 @@
# further. For a list of options available for each theme, see the
# documentation.
# NOTE: use nature_override.css, not this
# html_theme_options = {}

# mike got these just by copying from
# https://github.com/executablebooks/sphinx-book-theme/blob/master/docs/conf.py#L103.
# none of this seems to be clearly documented
html_theme_options = {
"repository_url": "https://github.com/sqlalchemy/alembic",
"repository_branch": "main",
"icon_links": [
{
"name": "GitHub",
"url": "https://github.com/sqlalchemy/alembic",
"icon": "fa-brands fa-github",
},
{
"name": "PyPI",
"url": "https://pypi.org/project/alembic/",
"icon": "https://img.shields.io/pypi/dw/alembic",
"type": "url",
},
],
}

# Add any paths that contain custom themes here, relative to this directory.
# html_theme_path = []
Expand Down

0 comments on commit 434a788

Please sign in to comment.