Update docs building

This commit is contained in:
Wes Barnett 2021-03-28 08:56:33 -04:00
parent c01ba154d0
commit 3da59ac9d3
No known key found for this signature in database
GPG key ID: 1070BCC98C18BD66
3 changed files with 5 additions and 4 deletions

View file

@ -35,5 +35,5 @@ test:
docs:
@sphinx-build -a docs/source docs/build
@rm -r man8
@cd docs && make man && mv build/man ../man8
@cd docs && make man
@awk 'NR==33{print ".SH DESCRIPTION"}7' docs/build/man/snap-pac.8 > man8/snap-pac.8

View file

@ -52,6 +52,7 @@ do:
.. code-block:: bash
sphinx-build docs/source docs/build
make docs
The resulting html documentation will then be located at ``docs/build/index.html``.
Additionally, this generates the manpage which will be located under ``man8``.

View file

@ -1,6 +1,6 @@
.\" Man page generated from reStructuredText.
.
.TH "SNAP-PAC" "8" "Mar 14, 2021" "" "snap-pac"
.TH "SNAP-PAC" "8" "Mar 28, 2021" "" "snap-pac"
.SH NAME
snap-pac \- Pacman hooks that use snapper to create pre/post btrfs snapshots like openSUSE's YaST
.