diff --git a/.readthedocs.yaml b/.readthedocs.yaml index 415f4b024..9d03a58f9 100644 --- a/.readthedocs.yaml +++ b/.readthedocs.yaml @@ -29,3 +29,4 @@ sphinx: formats: - htmlzip + - pdf diff --git a/docs/_templates/downloads.html b/docs/_templates/downloads.html new file mode 100644 index 000000000..ba4a968e1 --- /dev/null +++ b/docs/_templates/downloads.html @@ -0,0 +1,27 @@ + + diff --git a/docs/borg_theme/css/borg.css b/docs/borg_theme/css/borg.css index 291c166c2..4d8bf330e 100644 --- a/docs/borg_theme/css/borg.css +++ b/docs/borg_theme/css/borg.css @@ -221,3 +221,17 @@ readthedocs-flyout { .sphinxsidebar > .sidebar-block:has(#main-search):after { margin: 7px 22px 0 22px; } +/* Downloads line in the sidebar: a single line, left-aligned with the boxes + above it and the table of contents below it. */ +.borg-downloads { + padding: 0 22px; + margin: 7px 0 7px 0; + font-size: 14px; + color: #000; +} +.borg-downloads:after { + content: ''; + display: block; + border-top: 1px solid #ccc; + margin: 7px 0 0 0; +} diff --git a/docs/conf.py b/docs/conf.py index d64ee038e..75b956efa 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -156,7 +156,7 @@ html_use_smartypants = True smartquotes_action = "qe" # no D in there means "do not transform -- and ---" # Custom sidebar templates, maps document names to template names. -html_sidebars = {"**": ["logo-text.html", "versionselector.html", "searchbox.html", "globaltoc.html"]} +html_sidebars = {"**": ["logo-text.html", "versionselector.html", "searchbox.html", "downloads.html", "globaltoc.html"]} # Additional templates that should be rendered to pages, maps page names to # template names. @@ -218,7 +218,7 @@ latex_show_urls = "footnote" # latex_preamble = '' # Documents to append as an appendix to all manuals. -latex_appendices = ["support", "resources", "changes", "authors"] +latex_appendices = ["support", "changes", "authors"] # If false, no module index is generated. # latex_domain_indices = True