Skip to content

0.12.0

Compare
Choose a tag to compare
@dantownsend dantownsend released this 27 Aug 10:23
· 45 commits to master since this release

You can now specify the source code URL, and it will show in the nav bar.

Screenshot 2022-08-27 at 11 20 58

Just do the following:

# conf.py

html_theme_options = {
    "source_url": 'https://github.com/piccolo-orm/piccolo_theme/'
}

The icon is inferred automatically based on the URL (in the above example, we show the GitHub logo). You can explicitly set the icon if you prefer:

# conf.py

html_theme_options = {
    "source_url": 'https://self-hosted.foo.com/',
    "source_icon": "gitlab"
}