diff --git a/CHANGELOG.md b/CHANGELOG.md index ffc9439..0c5cda3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,7 @@ and the project uses [Semantic Versioning](https://semver.org/). ### Added +- Links to the GitHub repository on the docs' home page and in the footer of every page. - A History page in the docs: where Tcl/Tk, `tkinter` and Tktable come from. ### Changed diff --git a/docs/conf.py b/docs/conf.py index e30426a..2a5a7af 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -31,10 +31,34 @@ intersphinx_mapping = {"python": ("https://docs.python.org/3", None)} +# GitHub's logo (the "mark-github" Octicon), in the format Furo's footer icons expect. +GITHUB_ICON = ( + '' + '' + "" +) + html_theme = "furo" html_title = f"pytktable {release}" html_theme_options = { "source_repository": "https://github.com/nbro/tktable/", "source_branch": "main", "source_directory": "docs/", + # A GitHub icon in the footer of every page, linking to the repository. + "footer_icons": [ + { + "name": "GitHub", + "url": "https://github.com/nbro/tktable", + "html": GITHUB_ICON, + "class": "", + }, + ], } diff --git a/docs/index.md b/docs/index.md index c0deb59..bc3b2af 100644 --- a/docs/index.md +++ b/docs/index.md @@ -14,7 +14,9 @@ Windows, with `pip install "pytktable[binary]"`, or install it yourself followin check that it works. ``` -The wrapper was originally written by [Guilherme Polo](https://github.com/gpip). +The wrapper was originally written by [Guilherme Polo](https://github.com/gpip). The code is on +GitHub, in [nbro/tktable](https://github.com/nbro/tktable), where you can also +[report issues](https://github.com/nbro/tktable/issues). ```{image} images/planets.png :alt: A window with a table of the 8 planets of the Solar System, made with pytktable