Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Improve anchors in user/connecting.rst #246

Merged
merged 2 commits into from May 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 10 additions & 3 deletions docs/source/user/connecting.rst
@@ -1,4 +1,4 @@
.. _`connecting`:
.. _connecting:

Connecting to your site
=======================
Expand Down Expand Up @@ -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

.. _auth:
.. _errors:

Errors and warnings
-------------------
Expand All @@ -70,6 +70,8 @@ To print them to stdout:
Errors are thrown as exceptions. All exceptions inherit
:class:`mwclient.errors.MwClientError`.

.. _auth:

Authenticating
--------------

Expand Down Expand Up @@ -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
.. _old_login:

.. _old-login:

Old-school login
^^^^^^^^^^^^^^^^
Expand Down Expand Up @@ -126,6 +129,8 @@ based on the :class:`requests.auth.AuthBase`, such as Digest authentication:
>>> from requests.auth import HTTPDigestAuth
>>> site = Site('awesome.site', httpauth=HTTPDigestAuth('my_username', 'my_password'))

.. _ssl-auth:

SSL client certificate authentication
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Expand All @@ -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

.. _logout:

Logging out
^^^^^^^^^^^

Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/files.rst
@@ -1,4 +1,4 @@
.. _`files`:
.. _files:

Working with files
==================
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/implementation-notes.rst
@@ -1,4 +1,4 @@
.. _`implementation-notes`:
.. _implementation-notes:

Implementation notes
====================
Expand Down
2 changes: 1 addition & 1 deletion docs/source/user/page-ops.rst
@@ -1,4 +1,4 @@
.. _`page-ops`:
.. _page-ops:

Page operations
===============
Expand Down