Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature/twidi/enhance-source-doc' into develop
- Loading branch information
Showing
9 changed files
with
427 additions
and
97 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
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,16 @@ | ||
.. rst-class:: package-side-info | ||
|
||
in :doc:`{{ basename.split('.')[:-1] | join(".") }} <{{ basename.split('.')[:-1] | join(".") }}>` | ||
:doc:`View Git history </git/content/{{ basename.split('.') | join("/") }}.py>` | ||
|
||
{{ basename.split('.')[-1] | e | heading }} | ||
|
||
.. rst-class:: package-or-module-title | ||
|
||
{{ ['"', basename.split('.')[-1] | e, '" module'] | join("") }} | ||
|
||
.. automodule:: {{ qualname }} | ||
{%- for option in automodule_options %} | ||
:{{ option }}: | ||
{%- endfor %} | ||
|
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,42 @@ | ||
{%- macro automodule(modname, options) -%} | ||
.. automodule:: {{ modname }} | ||
{%- for option in options %} | ||
:{{ option }}: | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
{%- macro toctree(docnames, section_name) -%} | ||
.. rubric:: {{ section_name }} | ||
:class: package-sub | ||
|
||
.. toctree:: | ||
{% for docname in docnames %} | ||
{{ docname.split('.')[-1] }} <{{ docname }}> | ||
{%- endfor %} | ||
{%- endmacro %} | ||
|
||
.. rst-class:: package-side-info | ||
|
||
{% if '.' in pkgname %}in :doc:`{{ pkgname.split('.')[:-1] | join(".") }} <{{ pkgname.split('.')[:-1] | join(".") }}>`{% else %}(root){% endif %} | ||
:doc:`View Git history </git/content/{{ pkgname.split('.') | join("/") }}/__init__.py>` | ||
|
||
.. rst-class:: package-or-module-title | ||
|
||
{{ ['"', pkgname.split('.')[-1] | e, '" package'] | join("") }} | ||
|
||
{{ pkgname.split('.')[-1] | e | heading }} | ||
|
||
|
||
{%- if subpackages %} | ||
{{ toctree(subpackages, "Subpackages") }} | ||
{% endif %} | ||
|
||
{%- if submodules %} | ||
{{ toctree(submodules, "Submodules") }} | ||
{% endif %} | ||
|
||
{%- if not is_namespace %} | ||
{{ automodule(pkgname, automodule_options) }} | ||
{% endif %} | ||
|
||
|
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
Oops, something went wrong.