From 1a46da3a715ffce79e21e3e325aa691de59a3a03 Mon Sep 17 00:00:00 2001 From: Guillaume Ayoub Date: Tue, 25 Oct 2022 09:28:59 +0200 Subject: [PATCH] Simplify manpage Fix #1741. --- docs/conf.py | 6 +++--- docs/manpage.rst | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 docs/manpage.rst diff --git a/docs/conf.py b/docs/conf.py index 7267b3f663..841f7bdd25 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -63,7 +63,7 @@ # One entry per manual page. List of tuples # (source start file, name, description, authors, manual section). man_pages = [ - ('index', 'weasyprint', 'WeasyPrint Documentation', + ('manpage', 'weasyprint', 'The Awesome Document Factory', ['Simon Sapin and contributors'], 1) ] @@ -72,8 +72,8 @@ # dir menu entry, description, category) texinfo_documents = [( 'index', 'WeasyPrint', 'WeasyPrint Documentation', - 'Simon Sapin', 'WeasyPrint', 'The Awesome Document Factory', - 'Miscellaneous'), + 'Simon Sapin and contributors', 'WeasyPrint', + 'The Awesome Document Factory', 'Miscellaneous'), ] # Example configuration for intersphinx: refer to the Python standard library. diff --git a/docs/manpage.rst b/docs/manpage.rst new file mode 100644 index 0000000000..878689b691 --- /dev/null +++ b/docs/manpage.rst @@ -0,0 +1,16 @@ +:orphan: + +.. currentmodule:: weasyprint + + +Description +----------- + +.. autofunction:: weasyprint.__main__.main(argv=sys.argv) + :noindex: + + +About +----- + +.. include:: ../README.rst