Skip to content

Commit 2bc6bd8

Browse files
authored
Merge pull request #4172 from stsewd/remove-some-warnings
Fix some warnings on docs
2 parents ad64347 + 74b3db4 commit 2bc6bd8

File tree

11 files changed

+18
-22
lines changed

11 files changed

+18
-22
lines changed

docs/api/projects.rst

-5
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
.. automodule:: readthedocs.projects.models
2222
:members:
2323

24-
:mod:`readthedocs.projects.search_indexes`
25-
------------------------------------------
26-
.. automodule:: readthedocs.projects.search_indexes
27-
:members:
28-
2924
:mod:`readthedocs.projects.tasks`
3025
---------------------------------
3126
.. automodule:: readthedocs.projects.tasks

docs/privacy-policy.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ Why do we collect this?
102102
- We limit our use of your User Personal Information to the purposes listed in this Privacy Statement.
103103
If we need to use your User Personal Information for other purposes, we will ask your permission first.
104104
You can always see what information we have in your
105-
`user account <https://readthedocs.org/accounts/edit/>`_.
105+
`user account <https://readthedocs.org/accounts/edit/>`__.
106106

107107
What information Read the Docs does not collect
108108
-----------------------------------------------
@@ -367,7 +367,7 @@ How you can access and control the information we collect
367367

368368
If you're already a Read the Docs user, you may access, update, alter,
369369
or delete your basic user profile information by
370-
`editing your user account <https://readthedocs.org/accounts/edit/>`_.
370+
`editing your user account <https://readthedocs.org/accounts/edit/>`__.
371371

372372

373373
Data retention and deletion
@@ -383,7 +383,7 @@ so unless you choose to delete your account,
383383
we will retain your account information indefinitely.
384384

385385
If you would like to delete your User Personal Information,
386-
you may do so in your `user account <https://readthedocs.org/accounts/delete/>`_.
386+
you may do so in your `user account <https://readthedocs.org/accounts/delete/>`__.
387387
We will retain and use your information as necessary to comply with
388388
our legal obligations, resolve disputes, and enforce our agreements,
389389
but barring legal requirements, we will delete your full profile.

docs/team.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ This might include tasks like:
3232
Members
3333
~~~~~~~
3434

35-
* `Eric Holscher <https://github.com/ericholscher>`_ (Pacific Time)
36-
* `Anthony Johnson <https://github.com/agjohnson>`_ (Mountain Time)
37-
* `Manuel Kaufmann <https://github.com/humitos>`_ (Central Time)
35+
* `Eric Holscher <https://github.com/ericholscher>`__ (Pacific Time)
36+
* `Anthony Johnson <https://github.com/agjohnson>`__ (Mountain Time)
37+
* `Manuel Kaufmann <https://github.com/humitos>`__ (Central Time)
3838
* Your Name Here
3939

4040
Feel free to ask any of us if you have questions or want to join!

readthedocs/builds/managers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ class VersionManagerBase(models.Manager):
1919
"""
2020
Version manager for manager only queries.
2121
22-
For queries not suitable for the :py:cls:`VersionQuerySet`, such as create
22+
For queries not suitable for the :py:class:`VersionQuerySet`, such as create
2323
queries.
2424
"""
2525

readthedocs/builds/models.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,8 @@ class APIVersion(Version):
356356
Version proxy model for API data deserialization.
357357
358358
This replaces the pattern where API data was deserialized into a mocked
359-
:py:cls:`Version` object. This pattern was confusing, as it was not explicit
359+
:py:class:`Version` object.
360+
This pattern was confusing, as it was not explicit
360361
as to what form of object you were working with -- API backed or database
361362
backed.
362363

readthedocs/core/utils/extend.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def get_override_class(proxy_class, default_class=None):
1515
The `proxy_class` is the main class that is used, and `default_class` is the
1616
default class that this proxy class will instantiate. If `default_class` is
1717
not defined, this will be inferred from the `proxy_class`, as is defined in
18-
:py:cls:`SettingsOverrideObject`.
18+
:py:class:`SettingsOverrideObject`.
1919
"""
2020
if default_class is None:
2121
default_class = getattr(proxy_class, '_default_class')

readthedocs/core/views/hooks.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def github_build(request): # noqa: D205
163163
GitHub webhook consumer.
164164
165165
.. warning:: **DEPRECATED**
166-
Use :py:cls:`readthedocs.restapi.views.integrations.GitHubWebhookView`
166+
Use :py:class:`readthedocs.restapi.views.integrations.GitHubWebhookView`
167167
instead of this view function
168168
169169
This will search for projects matching either a stripped down HTTP or SSH
@@ -218,7 +218,7 @@ def gitlab_build(request): # noqa: D205
218218
GitLab webhook consumer.
219219
220220
.. warning:: **DEPRECATED**
221-
Use :py:cls:`readthedocs.restapi.views.integrations.GitLabWebhookView`
221+
Use :py:class:`readthedocs.restapi.views.integrations.GitLabWebhookView`
222222
instead of this view function
223223
224224
Search project repository URLs using the site URL from GitLab webhook payload.
@@ -253,7 +253,7 @@ def bitbucket_build(request):
253253
Consume webhooks from multiple versions of Bitbucket's API.
254254
255255
.. warning:: **DEPRECATED**
256-
Use :py:cls:`readthedocs.restapi.views.integrations.BitbucketWebhookView`
256+
Use :py:class:`readthedocs.restapi.views.integrations.BitbucketWebhookView`
257257
instead of this view function
258258
259259
New webhooks are set up with v2, but v1 webhooks will still point to this
@@ -327,7 +327,7 @@ def generic_build(request, project_id_or_slug=None):
327327
328328
.. warning:: **DEPRECATED**
329329
330-
Use :py:cls:`readthedocs.restapi.views.integrations.GenericWebhookView`
330+
Use :py:class:`readthedocs.restapi.views.integrations.GenericWebhookView`
331331
instead of this view function
332332
"""
333333
try:

readthedocs/doc_builder/environments.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ class BuildEnvironment(BaseEnvironment):
389389
Any exceptions raised inside this context and handled by the eventual
390390
:py:meth:`__exit__` method, specifically, inside :py:meth:`handle_exception`
391391
and :py:meth:`update_build`. If the exception is a subclass of
392-
:py:cls:`BuildEnvironmentError`, then this error message is added to the
392+
:py:class:`BuildEnvironmentError`, then this error message is added to the
393393
build object and is shown to the user as the top-level failure reason for
394394
why the build failed. Other exceptions raise a general failure warning on
395395
the build.

readthedocs/projects/models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -850,7 +850,7 @@ class APIProject(Project):
850850
Project proxy model for API data deserialization.
851851
852852
This replaces the pattern where API data was deserialized into a mocked
853-
:py:cls:`Project` object. This pattern was confusing, as it was not explicit
853+
:py:class:`Project` object. This pattern was confusing, as it was not explicit
854854
as to what form of object you were working with -- API backed or database
855855
backed.
856856

readthedocs/projects/views/mixins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ class ProjectRelationMixin(object):
1313
Mixin class for constructing model views for project dashboard.
1414
1515
This mixin class is used for model views on models that have a relation
16-
to the :py:cls:`Project` model.
16+
to the :py:class:`Project` model.
1717
1818
:cvar project_lookup_url_kwarg: URL kwarg to use in project lookup
1919
:cvar project_lookup_field: Query field for project relation

readthedocs/rtd_tests/tests/test_project_symlinks.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class TempSiterootCase(object):
5959
temporary path. Each test is therefore isolated, and cleanup will remove
6060
these paths after the test case wraps up.
6161
62-
And subclasses that implement :py:cls:`TestCase` should also make use of
62+
And subclasses that implement :py:class:`TestCase` should also make use of
6363
:py:func:`override_settings`.
6464
"""
6565

0 commit comments

Comments
 (0)