Skip to content

Commit 6b30a12

Browse files
authored
Merge pull request #2578 from lukegb/docs-cleanup
Clean up documentation
2 parents 4275d21 + 2b9fd8f commit 6b30a12

File tree

9 files changed

+51
-171
lines changed

9 files changed

+51
-171
lines changed

docs/api/core.rst

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@
2121
.. automodule:: readthedocs.core.models
2222
:members:
2323

24-
:mod:`readthedocs.core.search_sites`
25-
------------------------------------
26-
.. automodule:: readthedocs.core.search_sites
27-
:members:
28-
2924
:mod:`readthedocs.core.views`
3025
-----------------------------
3126
.. automodule:: readthedocs.core.views
@@ -36,9 +31,35 @@
3631
-------------------------------------------
3732
This is where custom ``manage.py`` commands are defined.
3833

39-
.. automodule:: readthedocs.core.management.commands.build_files
34+
.. automodule:: readthedocs.core.management.commands.archive
35+
:members:
36+
37+
.. automodule:: readthedocs.core.management.commands.clean_builds
38+
:members:
39+
40+
.. automodule:: readthedocs.core.management.commands.import_github_language
41+
:members:
42+
43+
.. automodule:: readthedocs.core.management.commands.import_github
44+
:members:
45+
46+
.. automodule:: readthedocs.core.management.commands.pull
47+
:members:
48+
49+
.. automodule:: readthedocs.core.management.commands.reindex_elasticsearch
50+
:members:
51+
52+
.. automodule:: readthedocs.core.management.commands.set_metadata
53+
:members:
54+
55+
.. automodule:: readthedocs.core.management.commands.symlink
56+
:members:
57+
58+
.. automodule:: readthedocs.core.management.commands.update_api
4059
:members:
4160

4261
.. automodule:: readthedocs.core.management.commands.update_repos
4362
:members:
4463

64+
.. automodule:: readthedocs.core.management.commands.update_versions
65+
:members:

docs/gsoc.rst

Lines changed: 0 additions & 65 deletions
This file was deleted.

docs/i18n.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ Administrative Tasks
247247

248248

249249
Updating Localization Files
250-
~~~~~~~~~~~~~~~~~~~~~~~~~~~
250+
^^^^^^^^^^^^^^^^^^^^^^^^^^^
251251

252252
To update the translation source files (eg if you changed or added translatable
253253
strings in the templates or Python code) you should run ``python manage.py
@@ -262,7 +262,7 @@ crowd-sourced online translation tool.
262262
.. _i18n-compiling:
263263

264264
Compiling to MO
265-
~~~~~~~~~~~~~~~
265+
^^^^^^^^^^^^^^^
266266

267267
Gettext doesn't parse any text files, it reads a binary format for faster
268268
performance. To compile the latest PO files in the repository, Django provides
@@ -281,7 +281,7 @@ make sure you don't forcibly add them to the repository.
281281

282282

283283
Transifex Integration
284-
~~~~~~~~~~~~~~~~~~~~~
284+
^^^^^^^^^^^^^^^^^^^^^
285285

286286
To push updated translation source files to Transifex, run ``tx
287287
push -s`` (for English) or ``tx push -t <language>`` (for non-English).

docs/index.rst

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ We pull your code from your Subversion_, Bazaar_, Git_, and Mercurial_ repositor
77
Then we build documentation and host it for you.
88
Think of it as *Continuous Documentation*.
99

10-
The code is open source, and `available on github`_.
10+
The code is open source, and `available on GitHub`_.
1111

1212
.. _Read the docs: http://readthedocs.org/
1313
.. _Sphinx: http://sphinx.pocoo.org/
@@ -18,7 +18,7 @@ The code is open source, and `available on github`_.
1818
.. _Bazaar: http://bazaar.canonical.com/
1919
.. _Git: http://git-scm.com/
2020
.. _Mercurial: http://mercurial.selenic.com/
21-
.. _available on github: http://github.com/rtfd/readthedocs.org
21+
.. _available on GitHub: http://github.com/rtfd/readthedocs.org
2222

2323
The main documentation for the site is organized into a couple sections:
2424

@@ -30,7 +30,6 @@ Information about development is also available:
3030

3131
* :ref:`dev-docs`
3232
* :ref:`design-docs`
33-
* :ref:`ops-docs`
3433

3534
.. _user-docs:
3635

@@ -46,6 +45,8 @@ Information about development is also available:
4645
faq
4746
yaml-config
4847
guides/index
48+
api
49+
embed
4950

5051
.. _about-docs:
5152

@@ -58,6 +59,8 @@ Information about development is also available:
5859
ethical-advertising
5960
sponsors
6061
open-source-philosophy
62+
story
63+
talks
6164

6265
.. _feature-docs:
6366

@@ -87,6 +90,7 @@ Information about development is also available:
8790
:caption: Developer Documentation
8891

8992
install
93+
api/index
9094
changelog
9195
tests
9296
docs

docs/user-defined-redirects.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Note that the ``/`` at the start doesn't count the ``/en/latest``,
4848
but just the user-controlled section of the URL.
4949

5050
Exact Redirects
51-
--------------
51+
---------------
5252

5353
If you're redirecting from an old host AND you aren't maintaining old paths for your
5454
documents, a Prefix Redirect won't suffice and you'll need to create *Exact Redirects*

readthedocs/builds/models.py

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -32,40 +32,30 @@
3232

3333

3434
class Version(models.Model):
35-
36-
"""
37-
Attributes
38-
----------
39-
40-
``identifier``
41-
The identifier is the ID for the revision this is version is for. This
42-
might be the revision number (e.g. in SVN), or the commit hash (e.g. in
43-
Git). If the this version is pointing to a branch, then ``identifier``
44-
will contain the branch name.
45-
46-
``verbose_name``
47-
This is the actual name that we got for the commit stored in
48-
``identifier``. This might be the tag or branch name like ``"v1.0.4"``.
49-
However this might also hold special version names like ``"latest"``
50-
and ``"stable"``.
51-
52-
``slug``
53-
The slug is the slugified version of ``verbose_name`` that can be used
54-
in the URL to identify this version in a project. It's also used in the
55-
filesystem to determine how the paths for this version are called. It
56-
must not be used for any other identifying purposes.
57-
"""
5835
project = models.ForeignKey(Project, verbose_name=_('Project'),
5936
related_name='versions')
6037
type = models.CharField(
6138
_('Type'), max_length=20,
6239
choices=VERSION_TYPES, default='unknown',
6340
)
6441
# used by the vcs backend
42+
43+
#: The identifier is the ID for the revision this is version is for. This
44+
#: might be the revision number (e.g. in SVN), or the commit hash (e.g. in
45+
#: Git). If the this version is pointing to a branch, then ``identifier``
46+
#: will contain the branch name.
6547
identifier = models.CharField(_('Identifier'), max_length=255)
6648

49+
#: This is the actual name that we got for the commit stored in
50+
#: ``identifier``. This might be the tag or branch name like ``"v1.0.4"``.
51+
#: However this might also hold special version names like ``"latest"``
52+
#: and ``"stable"``.
6753
verbose_name = models.CharField(_('Verbose Name'), max_length=255)
6854

55+
#: The slug is the slugified version of ``verbose_name`` that can be used
56+
#: in the URL to identify this version in a project. It's also used in the
57+
#: filesystem to determine how the paths for this version are called. It
58+
#: must not be used for any other identifying purposes.
6959
slug = VersionSlugField(_('Slug'), max_length=255,
7060
populate_from='verbose_name')
7161

readthedocs/core/management/commands/import_intersphinx.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

readthedocs/core/management/commands/sync_builds.py

Lines changed: 0 additions & 55 deletions
This file was deleted.

readthedocs/core/search_sites.py

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)