You can now specify the source code URL, and it will show in the nav bar.
<img width="499" alt="Screenshot 2022-08-27 at 11 20 58" src="https://user-images.githubusercontent.com/350976/187026008-a55ef1a9-9806-4023-8df9-8755500988ab.png">
Just do the following:
python
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:
python
conf.py
html_theme_options = {
"source_url": 'https://self-hosted.foo.com/',
"source_icon": "gitlab"
}