Skip to content

Commit e1a3b68

Browse files
committed
Merge pull request #1510 from rtfd/fix-autodoc-paths
Change docs import path and prefix APIs with readthedocs namespace
2 parents 84fcbaf + cd20cc5 commit e1a3b68

File tree

7 files changed

+100
-99
lines changed

7 files changed

+100
-99
lines changed

docs/api/bookmarks.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
:mod:`bookmarks`
2-
================
1+
:mod:`readthedocs.bookmarks`
2+
============================
33

4-
:mod:`bookmarks.admin`
4+
:mod:`readthedocs.bookmarks.admin`
55
----------------------------------
6-
.. automodule:: bookmarks.admin
6+
.. automodule:: readthedocs.bookmarks.admin
77
:members:
88

9-
:mod:`bookmarks.models`
10-
----------------------------------
11-
.. automodule:: bookmarks.models
9+
:mod:`readthedocs.bookmarks.models`
10+
-----------------------------------
11+
.. automodule:: readthedocs.bookmarks.models
1212
:members:
1313

14-
:mod:`bookmarks.urls`
15-
----------------------------------
16-
.. automodule:: bookmarks.urls
14+
:mod:`readthedocs.bookmarks.urls`
15+
---------------------------------
16+
.. automodule:: readthedocs.bookmarks.urls
1717
:members:
1818

19-
:mod:`bookmarks.views`
19+
:mod:`readthedocs.bookmarks.views`
2020
----------------------------------
21-
.. automodule:: bookmarks.views
21+
.. automodule:: readthedocs.bookmarks.views
2222
:members:
2323

2424

docs/api/builds.rst

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
:mod:`builds`
2-
=============
1+
:mod:`readthedocs.builds`
2+
=========================
33

4-
:mod:`builds.admin`
5-
----------------------------------
6-
.. automodule:: builds.admin
4+
:mod:`readthedocs.builds.admin`
5+
-------------------------------
6+
.. automodule:: readthedocs.builds.admin
77
:members:
88

9-
:mod:`builds.models`
10-
----------------------------------
11-
.. automodule:: builds.models
9+
:mod:`readthedocs.builds.models`
10+
--------------------------------
11+
.. automodule:: readthedocs.builds.models
1212
:members:
1313

14-
:mod:`builds.urls`
15-
----------------------------------
16-
.. automodule:: builds.urls
14+
:mod:`readthedocs.builds.urls`
15+
------------------------------
16+
.. automodule:: readthedocs.builds.urls
1717
:members:
1818

19-
:mod:`builds.views`
20-
----------------------------------
21-
.. automodule:: builds.views
19+
:mod:`readthedocs.builds.views`
20+
-------------------------------
21+
.. automodule:: readthedocs.builds.views
2222
:members:
2323

docs/api/core.rst

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,44 @@
1-
:mod:`core`
2-
===========
1+
:mod:`readthedocs.core`
2+
=======================
33

4-
:mod:`core.admin`
5-
----------------------------------
6-
.. automodule:: core.admin
4+
:mod:`readthedocs.core.admin`
5+
-----------------------------
6+
.. automodule:: readthedocs.core.admin
77
:members:
88

9-
:mod:`core.forms`
10-
----------------------------------
11-
.. automodule:: core.forms
9+
:mod:`readthedocs.core.forms`
10+
-----------------------------
11+
.. automodule:: readthedocs.core.forms
1212
:members:
1313

14-
:mod:`core.middleware`
14+
:mod:`readthedocs.core.middleware`
1515
----------------------------------
16-
.. automodule:: core.middleware
16+
.. automodule:: readthedocs.core.middleware
1717
:members:
1818

19-
:mod:`core.models`
20-
----------------------------------
21-
.. automodule:: core.models
19+
:mod:`readthedocs.core.models`
20+
------------------------------
21+
.. automodule:: readthedocs.core.models
2222
:members:
2323

24-
:mod:`core.search_sites`
25-
----------------------------------
26-
.. automodule:: core.search_sites
24+
:mod:`readthedocs.core.search_sites`
25+
------------------------------------
26+
.. automodule:: readthedocs.core.search_sites
2727
:members:
2828

29-
:mod:`core.views`
30-
----------------------------------
31-
.. automodule:: core.views
29+
:mod:`readthedocs.core.views`
30+
-----------------------------
31+
.. automodule:: readthedocs.core.views
3232
:members:
3333

3434

35-
:mod:`core.management.commands`
36-
----------------------------------
35+
:mod:`readthedocs.core.management.commands`
36+
-------------------------------------------
3737
This is where custom ``manage.py`` commands are defined.
3838

39-
.. automodule:: core.management.commands.build_files
39+
.. automodule:: readthedocs.core.management.commands.build_files
4040
:members:
4141

42-
.. automodule:: core.management.commands.update_repos
42+
.. automodule:: readthedocs.core.management.commands.update_repos
4343
:members:
4444

docs/api/doc_builder.rst

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
:mod:`doc_builder`
2-
==================
1+
:mod:`readthedocs.doc_builder`
2+
==============================
33

4-
:mod:`doc_builder.base`
5-
----------------------------------
6-
.. automodule:: doc_builder.base
4+
:mod:`readthedocs.doc_builder.base`
5+
-----------------------------------
6+
.. automodule:: readthedocs.doc_builder.base
77
:members:
88

9-
:mod:`doc_builder.envrionments`
10-
-------------------------------
11-
.. automodule:: doc_builder.environments
9+
:mod:`readthedocs.doc_builder.envrionments`
10+
-------------------------------------------
11+
.. automodule:: readthedocs.doc_builder.environments
1212
:members:
1313

14-
:mod:`doc_builder.backends`
15-
----------------------------------
14+
:mod:`readthedocs.doc_builder.backends`
15+
---------------------------------------
1616

1717

18-
:mod:`doc_builder.backends.sphinx`
19-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
20-
.. automodule:: doc_builder.backends.sphinx
18+
:mod:`readthedocs.doc_builder.backends.sphinx`
19+
----------------------------------------------
20+
.. automodule:: readthedocs.doc_builder.backends.sphinx
2121
:members:

docs/api/projects.rst

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,51 @@
1-
:mod:`projects`
2-
===============
1+
:mod:`readthedocs.projects`
2+
===========================
33

4-
:mod:`projects.admin`
5-
----------------------------------
6-
.. automodule:: projects.admin
4+
:mod:`readthedocs.projects.admin`
5+
---------------------------------
6+
.. automodule:: readthedocs.projects.admin
77
:members:
88

9-
:mod:`projects.constants`
10-
----------------------------------
11-
.. automodule:: projects.constants
9+
:mod:`readthedocs.projects.constants`
10+
-------------------------------------
11+
.. automodule:: readthedocs.projects.constants
1212
:members:
1313

14-
:mod:`projects.forms`
15-
----------------------------------
16-
.. automodule:: projects.forms
14+
:mod:`readthedocs.projects.forms`
15+
---------------------------------
16+
.. automodule:: readthedocs.projects.forms
1717
:members:
1818

19-
:mod:`projects.models`
19+
:mod:`readthedocs.projects.models`
2020
----------------------------------
21-
.. automodule:: projects.models
21+
.. automodule:: readthedocs.projects.models
2222
:members:
2323

24-
:mod:`projects.search_indexes`
25-
----------------------------------
26-
.. automodule:: projects.search_indexes
24+
:mod:`readthedocs.projects.search_indexes`
25+
------------------------------------------
26+
.. automodule:: readthedocs.projects.search_indexes
2727
:members:
2828

29-
:mod:`projects.tasks`
30-
----------------------------------
31-
.. automodule:: projects.tasks
29+
:mod:`readthedocs.projects.tasks`
30+
---------------------------------
31+
.. automodule:: readthedocs.projects.tasks
3232
:members:
3333

34-
:mod:`projects.utils`
35-
----------------------------------
36-
.. automodule:: projects.utils
34+
:mod:`readthedocs.projects.utils`
35+
---------------------------------
36+
.. automodule:: readthedocs.projects.utils
3737
:members:
3838

39-
:mod:`projects.views`
40-
----------------------------------
39+
:mod:`readthedocs.projects.views`
40+
---------------------------------
4141

42-
:mod:`projects.views.public`
43-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44-
.. automodule:: projects.views.public
42+
:mod:`readthedocs.projects.views.public`
43+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44+
.. automodule:: readthedocs.projects.views.public
4545
:members:
4646

47-
:mod:`projects.views.private`
48-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49-
.. automodule:: projects.views.private
47+
:mod:`readthedocs.projects.views.private`
48+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
49+
.. automodule:: readthedocs.projects.views.private
5050
:members:
5151

docs/api/vcs_support.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
:mod:`vcs_support`
2-
==================
1+
:mod:`readthedocs.vcs_support`
2+
==============================
33

4-
:mod:`vcs_support.base`
5-
-----------------------
4+
:mod:`readthedocs.vcs_support.base`
5+
-----------------------------------
66

7-
.. automodule:: vcs_support.base
7+
.. automodule:: readthedocs.vcs_support.base
88
:members:
99

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@
55

66
from recommonmark.parser import CommonMarkParser
77

8-
sys.path.insert(0, os.path.abspath('../readthedocs'))
9-
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.sqlite")
8+
sys.path.insert(0, os.path.abspath('..'))
9+
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "readthedocs.settings.sqlite")
10+
1011
from django.conf import settings
1112

1213
import django

0 commit comments

Comments
 (0)