package.rst_t¶
Last source¶
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 | {%- 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 %}
|
Changes¶
docs(source): Make links between python files in source and git¶
- Commit
- Hash
- Date
2020-09-25 23:40:13 +0200
- Type
Modified
- Stats
+2 -3
@@ -15,11 +15,10 @@
{%- endfor %}
{%- endmacro %}
-
-.. rst-class:: package-owner
+.. 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
docs(source): Lighten source code pages¶
- Commit
- Hash
- Date
2020-09-25 23:36:45 +0200
- Type
Added
- Stats
+43 -0
@@ -0,0 +1,43 @@
+{%- 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-owner
+
+ {% if '.' in pkgname %}in :doc:`{{ pkgname.split('.')[:-1] | join(".") }} <{{ pkgname.split('.')[:-1] | join(".") }}>`{% else %}(root){% endif %}
+
+
+.. 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 %}
+
+