diff --git a/docs/source/_static/custom.css b/docs/source/_static/custom.css new file mode 100644 index 00000000..c246b87a --- /dev/null +++ b/docs/source/_static/custom.css @@ -0,0 +1,15 @@ +/* Footer layout: copyright on the left, GitHub link on the right in smaller font. */ +div[role="contentinfo"] { + display: flex; + justify-content: space-between; + align-items: baseline; + flex-wrap: wrap; +} + +div[role="contentinfo"] p { + margin: 0; +} + +.footer-github-link { + font-size: 0.85em; +} diff --git a/docs/source/_templates/footer.html b/docs/source/_templates/footer.html new file mode 100644 index 00000000..5c172270 --- /dev/null +++ b/docs/source/_templates/footer.html @@ -0,0 +1,13 @@ +{% extends "!footer.html" %} +{% block contentinfo %} +

+ {%- if show_copyright %} + {%- trans copyright=copyright|e %}Copyright © {{ copyright }}{% endtrans -%} + {%- endif %} + {%- if last_updated %} + {%- trans last_updated=last_updated|e %}: built {{ last_updated }}{% endtrans %} + {%- endif -%} + . +

+ GitHub +{% endblock %} diff --git a/docs/source/conf.py b/docs/source/conf.py index b258a3ba..1080d5d4 100644 --- a/docs/source/conf.py +++ b/docs/source/conf.py @@ -19,7 +19,7 @@ # -- Project information ----------------------------------------------------- project = "Simple graph functionality for Python" -copyright = "2020, Peter Corke" +copyright = "2020-present, Peter Corke" author = "Peter Corke" @@ -80,10 +80,11 @@ # html_theme = "sphinx_rtd_theme" html_show_sourcelink = True -html_last_updated_fmt = "%d-%b-%Y" +html_last_updated_fmt = "%Y-%m-%d" show_authors = True # Add any paths that contain custom static files (such as style sheets) here, # relative to this directory. They are copied after the builtin static files, # so a file named "default.css" will overwrite the builtin "default.css". html_static_path = ["_static"] +html_css_files = ["custom.css"]