Skip to content

Commit 5def235

Browse files
committed
fix PDF rendering structure
without those changes, all of the toctree document headings do not show up. they are considered to be "below" the last heading of the README file. we also remove the "Notes" section from the readme as there is only one note, regarding the fork. we introduce a stub "introduction" element in the toctree, otherwise it is impossible for the PDF rendered to render the README correctly. this is to workaround a bug in the PDF renderer.
1 parent 18f3d64 commit 5def235

File tree

5 files changed

+39
-7
lines changed

5 files changed

+39
-7
lines changed

README.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
.. highlight:: bash
44

55
What is BorgBackup?
6-
===================
6+
-------------------
77

88
BorgBackup (short: Borg) is a deduplicating backup program.
99
Optionally, it supports compression and authenticated encryption.
@@ -20,7 +20,7 @@ downloaded Borg, ``docs/installation.rst`` to get started with Borg.
2020
.. _installation manual: https://borgbackup.readthedocs.org/en/stable/installation.html
2121

2222
Main features
23-
-------------
23+
~~~~~~~~~~~~~
2424

2525
**Space efficient storage**
2626
Deduplication based on content-defined chunking is used to reduce the number
@@ -82,7 +82,7 @@ Main features
8282
complete license
8383

8484
Easy to use
85-
-----------
85+
~~~~~~~~~~~
8686

8787
Initialize a new backup repository and create a backup archive::
8888

@@ -114,7 +114,7 @@ Now doing another backup, just to show off the great deduplication:
114114
For a graphical frontend refer to our complementary project `BorgWeb <https://borgweb.readthedocs.io/>`_.
115115

116116
Checking Release Authenticity and Security Contact
117-
==================================================
117+
--------------------------------------------------
118118

119119
`Releases <https://github.com/borgbackup/borg/releases>`_ are signed with this GPG key,
120120
please use GPG to verify their authenticity.
@@ -130,7 +130,7 @@ The public key can be fetched from any GPG keyserver, but be careful: you must
130130
use the **full fingerprint** to check that you got the correct key.
131131

132132
Links
133-
=====
133+
-----
134134

135135
* `Main Web Site <https://borgbackup.readthedocs.org/>`_
136136
* `Releases <https://github.com/borgbackup/borg/releases>`_,
@@ -144,7 +144,7 @@ Links
144144
* `License <https://borgbackup.readthedocs.org/en/stable/authors.html#license>`_
145145

146146
Compatibility notes
147-
===================
147+
-------------------
148148

149149
EXPECT THAT WE WILL BREAK COMPATIBILITY REPEATEDLY WHEN MAJOR RELEASE NUMBER
150150
CHANGES (like when going from 0.x.y to 1.0.0 or from 1.x.y to 2.0.0).

docs/book.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.. include:: global.rst.inc
2+
3+
Borg documentation
4+
==================
5+
6+
.. when you add an element here, do not forget to add it to index.rst
7+
8+
.. toctree::
9+
:maxdepth: 3
10+
11+
introduction
12+
installation
13+
quickstart
14+
usage
15+
deployment
16+
faq
17+
support
18+
resources
19+
changes
20+
internals
21+
development
22+
authors

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@
198198
# Grouping the document tree into LaTeX files. List of tuples
199199
# (source start file, target name, title, author, documentclass [howto/manual]).
200200
latex_documents = [
201-
('index', 'Borg.tex', 'Borg Documentation',
201+
('book', 'Borg.tex', 'Borg Documentation',
202202
'The Borg Collective', 'manual'),
203203
]
204204

docs/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ Borg Documentation
66

77
.. include:: ../README.rst
88

9+
.. when you add an element here, do not forget to add it to book.rst
10+
911
.. toctree::
1012
:maxdepth: 2
1113

docs/introduction.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Introduction
2+
============
3+
4+
.. this shim is here to fix the structure in the PDF
5+
rendering. without this stub, the elements in the toctree of
6+
index.rst show up a level below the README file included
7+
8+
.. include:: ../README.rst

0 commit comments

Comments
 (0)