jenkins-bot submitted this change.

View Change

Approvals: JJMC89: Looks good to me, approved jenkins-bot: Verified
[doc] Add manpage reference

Change-Id: I10282ab172b63f11d4f0d254af9a4d34eea38c19
---
M docs/conf.py
M docs/getting_help.rst
M docs/glossary.rst
M docs/installation.rst
M docs/library_usage.rst
5 files changed, 5 insertions(+), 6 deletions(-)

diff --git a/docs/conf.py b/docs/conf.py
index 6a10812..d4430c2 100644
--- a/docs/conf.py
+++ b/docs/conf.py
@@ -318,6 +318,7 @@
['Pywikibot team'], 1)
]

+manpages_url = 'https://www.mediawiki.org/wiki/Manual:Pywikibot/{path}'
# If true, show URL addresses after external links.
#
# man_show_urls = False
diff --git a/docs/getting_help.rst b/docs/getting_help.rst
index 5a062b1..208af04 100644
--- a/docs/getting_help.rst
+++ b/docs/getting_help.rst
@@ -2,7 +2,7 @@
------------

.. note::
- Please see `Manual:Pywikibot/Communication <https://www.mediawiki.org/wiki/Manual:Pywikibot/Communication>`_.
+ Please see :manpage:`Communication`.

.. tip::
Please report bugs at `Phabricator <https://phabricator.wikimedia.org/>`_.
diff --git a/docs/glossary.rst b/docs/glossary.rst
index 2de688d..b6290d1 100644
--- a/docs/glossary.rst
+++ b/docs/glossary.rst
@@ -67,8 +67,8 @@
is a Jupyter notebooks deployment hosted by Wikimedia. It has
preinstalled the :term:`stable` release of Pywikibot. Refer:

+ - :manpage:`PAWS`
- https://wikitech.wikimedia.org/wiki/PAWS
- - https://www.mediawiki.org/wiki/Manual:Pywikibot/PAWS

PyPI
The Python Package Index (PyPI), a repository of software for the
diff --git a/docs/installation.rst b/docs/installation.rst
index 74ba2f5..0f1f34e 100644
--- a/docs/installation.rst
+++ b/docs/installation.rst
@@ -18,5 +18,4 @@
(not available with site-package) or refer :mod:`pywikibot.config`.

.. note::
- Please also see the documentation at
- `Manual:Pywikibot/Installation <https://www.mediawiki.org/wiki/Manual:Pywikibot/Installation>`_
+ Please also see the documentation at :manpage:`Installation`
diff --git a/docs/library_usage.rst b/docs/library_usage.rst
index 95da419..79d5c25 100644
--- a/docs/library_usage.rst
+++ b/docs/library_usage.rst
@@ -84,5 +84,4 @@
:language: python

.. note::
- Please also see the documentation at
- `Manual:Pywikibot/Create your own script <https://www.mediawiki.org/wiki/Manual:Pywikibot/Create_your_own_script>`_
+ Please also see the documentation at :manpage:`Create your own script`

To view, visit change 703837. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Change-Id: I10282ab172b63f11d4f0d254af9a4d34eea38c19
Gerrit-Change-Number: 703837
Gerrit-PatchSet: 1
Gerrit-Owner: Xqt <info@gno.de>
Gerrit-Reviewer: JJMC89 <JJMC89.Wikimedia@gmail.com>
Gerrit-Reviewer: jenkins-bot
Gerrit-MessageType: merged