Skip to content

Commit b23d8cd

Browse files
authored
Update api documentation (#254)
* Removed old search console verification * fix docs make help * Improve sphinx apidocs command * Improve docs style * Generate docs
1 parent 25aba3e commit b23d8cd

36 files changed

Lines changed: 94 additions & 5 deletions

democrasite/templates/base.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
<meta name="created" content="{% now 'jS M Y h:i' %}" />
2121
<meta name="description"
2222
content="A website which automatically incorporates changes from users based on popular approval" />
23-
<meta name="google-site-verification"
24-
content="B7IAH2JHzzr3L40rxXcl-mITWAod6ud_1rOWTh-taHA" />
2523
<link rel="icon" href="{% static 'images/favicons/favicon.ico' %}" />
2624
{% block css %}
2725
<!-- Latest compiled and minified Bootstrap CSS -->

docs/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@ APP = ../democrasite
1414

1515
# Put it first so that "make" without argument is like "make help".
1616
help:
17-
@$(SPHINXBUILD) help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
17+
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
1818

1919
# Build, watch and serve docs with live reload
2020
livehtml:
2121
sphinx-autobuild -b html --host 0.0.0.0 --port 9000 --watch $(APP) -c . $(SOURCEDIR) $(BUILDDIR)/html
2222

2323
# Outputs rst files from django application code
2424
apidocs:
25-
sphinx-apidoc -e -M --tocfile democrasite -o $(SOURCEDIR)/api ../democrasite ../democrasite/contrib ../democrasite/*/migrations ../democrasite/*/tests
25+
sphinx-apidoc -fMeT -o $(SOURCEDIR)/api ../democrasite ../democrasite/contrib ../democrasite/*/migrations ../democrasite/*/tests
2626

2727
# Remove all autogenerated files, ensuring a new build picks up all changes
2828
clean:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.admin module
2+
====================================
3+
4+
.. automodule:: democrasite.activitypub.admin
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.apps module
2+
===================================
3+
4+
.. automodule:: democrasite.activitypub.apps
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.forms module
2+
====================================
3+
4+
.. automodule:: democrasite.activitypub.forms
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.models module
2+
=====================================
3+
4+
.. automodule:: democrasite.activitypub.models
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
democrasite.activitypub package
2+
===============================
3+
4+
.. automodule:: democrasite.activitypub
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
8+
9+
Submodules
10+
----------
11+
12+
.. toctree::
13+
:maxdepth: 4
14+
15+
democrasite.activitypub.admin
16+
democrasite.activitypub.apps
17+
democrasite.activitypub.forms
18+
democrasite.activitypub.models
19+
democrasite.activitypub.urls
20+
democrasite.activitypub.views
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.urls module
2+
===================================
3+
4+
.. automodule:: democrasite.activitypub.urls
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
democrasite.activitypub.views module
2+
====================================
3+
4+
.. automodule:: democrasite.activitypub.views
5+
:members:
6+
:show-inheritance:
7+
:undoc-members:

docs/api/democrasite.conftest.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ democrasite.conftest module
44
.. automodule:: democrasite.conftest
55
:members:
66
:show-inheritance:
7+
:undoc-members:

0 commit comments

Comments
 (0)