mirror of
https://github.com/borgbackup/borg.git
synced 2024-12-22 07:43:06 +00:00
Fix the borg(1) man page creation
Now the date is updated every time the page is regenerated.
This commit is contained in:
parent
59ea5bc4d6
commit
5bdf998a21
2 changed files with 7 additions and 15 deletions
|
@ -1,16 +1,3 @@
|
|||
====
|
||||
borg
|
||||
====
|
||||
|
||||
----------------------------------------
|
||||
deduplicating and encrypting backup tool
|
||||
----------------------------------------
|
||||
|
||||
:Author: The Borg Collective
|
||||
:Date: 2017-02-05
|
||||
:Manual section: 1
|
||||
:Manual group: borg backup tool
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
|
||||
|
@ -65,4 +52,4 @@ SEE ALSO
|
|||
* Releases https://github.com/borgbackup/borg/releases
|
||||
* Changelog https://github.com/borgbackup/borg/blob/master/docs/changes.rst
|
||||
* GitHub https://github.com/borgbackup/borg
|
||||
* Security contact https://borgbackup.readthedocs.io/en/latest/support.html#security-contact
|
||||
* Security contact https://borgbackup.readthedocs.io/en/latest/support.html#security-contact
|
||||
|
|
|
@ -424,10 +424,15 @@ def build_topic_pages(self, Archiver):
|
|||
self.gen_man_page(man_title, doc.getvalue())
|
||||
|
||||
def build_intro_page(self):
|
||||
doc, write = self.new_doc()
|
||||
man_title = 'borg'
|
||||
print('building man page borg(1)', file=sys.stderr)
|
||||
|
||||
with open('docs/man_intro.rst') as fd:
|
||||
man_intro = fd.read()
|
||||
self.gen_man_page('borg', self.rst_prelude + man_intro)
|
||||
|
||||
self.write_man_header(write, man_title, "deduplicating and encrypting backup tool")
|
||||
self.gen_man_page(man_title, doc.getvalue() + man_intro)
|
||||
|
||||
def new_doc(self):
|
||||
doc = io.StringIO(self.rst_prelude)
|
||||
|
|
Loading…
Reference in a new issue