Skip to content
Snippets Groups Projects
Commit 87dd656d authored by Waldir Pimenta's avatar Waldir Pimenta Committed by Dan Michael O. Heggø
Browse files

Docs: Improve anchors in user/connecting.rst

- Move the auth anchor to be above the correct section
- Add missing anchors so all sections have them
- Add blank line above the old_login anchor and use hyphen instead of _.
parent 39897fcc
No related branches found
No related tags found
No related merge requests found
...@@ -53,7 +53,7 @@ Note that MwClient appends its own user agent to the end of your string. ...@@ -53,7 +53,7 @@ Note that MwClient appends its own user agent to the end of your string.
.. _Wikimedia User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy .. _Wikimedia User-Agent policy: https://meta.wikimedia.org/wiki/User-Agent_policy
.. _auth: .. _errors:
Errors and warnings Errors and warnings
------------------- -------------------
...@@ -70,6 +70,8 @@ To print them to stdout: ...@@ -70,6 +70,8 @@ To print them to stdout:
Errors are thrown as exceptions. All exceptions inherit Errors are thrown as exceptions. All exceptions inherit
:class:`mwclient.errors.MwClientError`. :class:`mwclient.errors.MwClientError`.
.. _auth:
Authenticating Authenticating
-------------- --------------
...@@ -98,7 +100,8 @@ called *consumer key*), the *consumer secret*, the *access token* and the ...@@ -98,7 +100,8 @@ called *consumer key*), the *consumer secret*, the *access token* and the
.. _owner-only consumer: https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers .. _owner-only consumer: https://www.mediawiki.org/wiki/OAuth/Owner-only_consumers
.. _old_login:
.. _old-login:
Old-school login Old-school login
^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^
...@@ -126,6 +129,8 @@ based on the :class:`requests.auth.AuthBase`, such as Digest authentication: ...@@ -126,6 +129,8 @@ based on the :class:`requests.auth.AuthBase`, such as Digest authentication:
>>> from requests.auth import HTTPDigestAuth >>> from requests.auth import HTTPDigestAuth
>>> site = Site('awesome.site', httpauth=HTTPDigestAuth('my_username', 'my_password')) >>> site = Site('awesome.site', httpauth=HTTPDigestAuth('my_username', 'my_password'))
.. _ssl-auth:
SSL client certificate authentication SSL client certificate authentication
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...@@ -142,6 +147,8 @@ Please note that the private key must not be encrypted. ...@@ -142,6 +147,8 @@ Please note that the private key must not be encrypted.
.. _cert: http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification .. _cert: http://docs.python-requests.org/en/master/user/advanced/#ssl-cert-verification
.. _logout:
Logging out Logging out
^^^^^^^^^^^ ^^^^^^^^^^^
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment