Skip to content

Commit 25c99cb

Browse files
committed
fix(docs): clean up sources and treat warnings as errors
Many deficiencies in the docs were being skipped over because `sphinx-build` is lenient. Adding the `-W` flag treats issues such as "missing reference" and "class not found" as errors.
1 parent 1f1e4ce commit 25c99cb

3 files changed

Lines changed: 11 additions & 23 deletions

File tree

api/serializers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def from_native(self, data):
3333

3434

3535
class UserSerializer(serializers.ModelSerializer):
36-
"""Serialize a :class:`~api.models.User` model."""
36+
"""Serialize a User model."""
3737

3838
class Meta:
3939
"""Metadata options for a UserSerializer."""
@@ -52,7 +52,7 @@ def data(self):
5252

5353

5454
class AdminUserSerializer(serializers.ModelSerializer):
55-
"""Serialize admin status for a :class:`~api.models.User` model."""
55+
"""Serialize admin status for a User model."""
5656

5757
class Meta:
5858
model = User

api/urls.py

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
2828
.. http:get:: /api/apps/(string:id)/
2929
30-
Retrieve a :class:`~api.models.Application` by its `id`.
30+
Retrieve a :class:`~api.models.App` by its `id`.
3131
3232
.. http:delete:: /api/apps/(string:id)/
3333
@@ -65,14 +65,6 @@
6565
6666
Create a new :class:`~api.models.Build`.
6767
68-
.. http:get:: /api/apps/(string:id)/limits/
69-
70-
Retrieve the latest :class:`~api.models.Limit`.
71-
72-
.. http:post:: /api/apps/(string:id)/limits/
73-
74-
Create a new :class:`~api.models.Limit`.
75-
7668
.. http:get:: /api/apps/(string:id)/releases/(int:version)/
7769
7870
Retrieve a :class:`~api.models.Release` by its `version`.
@@ -137,11 +129,6 @@
137129
See also
138130
:meth:`AppViewSet.run() <api.views.AppViewSet.run>`
139131
140-
.. http:post:: /api/apps/(string:id)/calculate/
141-
142-
See also
143-
:meth:`AppViewSet.calculate() <api.views.AppViewSet.calculate>`
144-
145132
146133
Application Sharing
147134
===================
@@ -200,11 +187,11 @@
200187
201188
.. http:post:: /api/auth/register/
202189
203-
Create a new :class:`~django.contrib.auth.models.User`.
190+
Create a new User.
204191
205192
.. http:delete:: /api/auth/register/
206193
207-
Destroy the logged-in :class:`~django.contrib.auth.models.User`.
194+
Destroy the logged-in User.
208195
209196
.. http:post:: /api/auth/login
210197
@@ -292,8 +279,6 @@
292279
views.AppViewSet.as_view({'post': 'logs'})),
293280
url(r'^apps/(?P<id>{})/run/?'.format(settings.APP_URL_REGEX),
294281
views.AppViewSet.as_view({'post': 'run'})),
295-
url(r'^apps/(?P<id>{})/calculate/?'.format(settings.APP_URL_REGEX),
296-
views.AppViewSet.as_view({'post': 'calculate'})),
297282
# apps sharing
298283
url(r'^apps/(?P<id>{})/perms/(?P<username>[-_\w]+)/?'.format(settings.APP_URL_REGEX),
299284
views.AppPermsViewSet.as_view({'delete': 'destroy'})),

registry/private.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ def publish_release(source, config, target):
1919
Given a source image and dictionary of last-mile configuration,
2020
create a target Docker image on the registry.
2121
22-
For example publish_release('registry.local:5000/gabrtv/myapp:v22',
23-
{'ENVVAR': 'values'},
24-
'registry.local:5000/gabrtv/myapp:v23',)
22+
For example::
23+
24+
publish_release('registry.local:5000/gabrtv/myapp:v22',
25+
{'ENVVAR': 'values'},
26+
'registry.local:5000/gabrtv/myapp:v23')
27+
2528
results in a new Docker image at 'registry.local:5000/gabrtv/myapp:v23' which
2629
contains the new configuration as ENV entries.
2730
"""

0 commit comments

Comments
 (0)