-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
3,958 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -48,6 +48,7 @@ docs/api/ | |
docs/docs/ | ||
docs/examples | ||
docs/sample_data | ||
docs/models/ | ||
docs/modules/ | ||
|
||
# Mac OS X | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,4 +18,4 @@ | |
dt:target { | ||
margin-top: 0; | ||
padding-top: 0; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/* Styles for tables. For sphinx-material, requires docutils class to be in 'table_classes' */ | ||
.docutils table { | ||
box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12),0 3px 1px -2px rgba(0,0,0,.2); | ||
display:inline-block; | ||
border-radius:.1rem; | ||
font-size:.64rem; | ||
margin-top:1.5em; | ||
max-width:100%; | ||
overflow:auto; | ||
-webkit-overflow-scrolling:touch | ||
} | ||
.docutils th { | ||
min-width:5rem; | ||
padding:.6rem .8rem; | ||
background-color: #ecf0f3; | ||
border-top: 3px solid #00bfa5; | ||
vertical-align:top | ||
} | ||
.docutils td { | ||
padding:.6rem .8rem; | ||
border-top:.05rem solid rgba(0,1,0,.07); | ||
vertical-align:top | ||
} | ||
.docutils tr{transition:background-color .125s} | ||
.docutils tr:hover{ | ||
background-color:rgba(0,0,0,.035); | ||
box-shadow:inset 0 .05rem 0 #fff | ||
} | ||
.docutils tr:first-child td{border-top:0} | ||
.docutils table a {word-break:normal} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
{% if referencefile %} | ||
.. include:: {{ referencefile }} | ||
{% endif %} | ||
|
||
{{ objname }} | ||
{{ underline }} | ||
|
||
.. currentmodule:: {{ module }} | ||
|
||
.. autoclass:: {{ objname }} | ||
:show-inheritance: | ||
:members: | ||
|
||
{% block attributes_summary %} | ||
{% if attributes %} | ||
.. rubric:: Attributes Summary | ||
|
||
.. csv-table:: | ||
:class: docutils | ||
:header: "Name", "Type", "Description" | ||
:widths: 10, 12, 30 | ||
:file: {{ '../models/' + objname + '.csv' }} | ||
|
||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block methods %} | ||
{% if methods %} | ||
.. rubric:: Methods | ||
|
||
{% for item in methods %} | ||
.. automethod:: {{ item }} | ||
{%- endfor %} | ||
|
||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{% if referencefile %} | ||
.. include:: {{ referencefile }} | ||
{% endif %} | ||
|
||
{{ objname }} | ||
{{ underline }} | ||
|
||
.. automodule:: {{ fullname }} | ||
|
||
{% block functions %} | ||
{% if functions %} | ||
.. rubric:: Functions | ||
|
||
.. autosummary:: | ||
{% for item in functions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block classes %} | ||
{% if classes %} | ||
.. rubric:: Classes | ||
|
||
.. autosummary:: | ||
{% for item in classes %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} | ||
|
||
{% block exceptions %} | ||
{% if exceptions %} | ||
.. rubric:: Exceptions | ||
|
||
.. autosummary:: | ||
{% for item in exceptions %} | ||
{{ item }} | ||
{%- endfor %} | ||
{% endif %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.. This file exists only to generate sources. | ||
.. Then automodsumm is used to generate a table of classes only. | ||
.. automodapi:: pyinaturalist.models |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
pyinaturalist.models | ||
==================== | ||
.. automodule:: pyinaturalist.models | ||
|
||
.. automodsumm:: pyinaturalist.models | ||
:classes-only: | ||
:nosignatures: | ||
:skip: BaseModel, BaseModelCollection, LazyProperty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,14 @@ | ||
# flake8: noqa: F401, F403 | ||
"""Utilities for generating pyinaturalist documentation, including: | ||
* Dynamic docs: Function signatures + docstrings based on API request params | ||
* Static docs: Sphinx documentation on readthedocs.io | ||
""" | ||
from pyinaturalist.api_docs.forge_utils import ( | ||
copy_doc_signature, | ||
copy_docstrings, | ||
copy_signature, | ||
copy_signatures, | ||
document_request_params, | ||
) | ||
from pyinaturalist.api_docs.model_docs import document_models |
Oops, something went wrong.