Skip to content

Commit dbc40ce

Browse files
committed
Added docs for last commit, plus lots of cleanup of page titles
1 parent 6804f05 commit dbc40ce

85 files changed

Lines changed: 662 additions & 93 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

docs/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ live:
2020

2121
# Generate API docs in source/code, making sure to exclude setup.py, dist, build, and egg info etc.
2222
rst:
23-
sphinx-apidoc -o "$(SOURCEDIR)/code/" ../ ../setup.py ../dist ../build ../privex_helpers.egg-info '**__pycache__**'
23+
sphinx-apidoc -o "$(SOURCEDIR)/helpers/" ../ ../setup.py ../dist ../build ../privex_helpers.egg-info '**__pycache__**'
2424

2525
# Catch-all target: route all unknown targets to Sphinx using the new
2626
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{{ name | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. auto{{ objtype }}:: {{ objname }}
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{{ name | escape | underline}}
2+
3+
.. currentmodule:: {{ module }}
4+
5+
.. autoclass:: {{ objname }}
6+
7+
{% block methods %}
8+
.. automethod:: __init__
9+
10+
{% if methods %}
11+
.. rubric:: Methods
12+
13+
.. autosummary::
14+
{% for item in methods %}
15+
~{{ name }}.{{ item }}
16+
{%- endfor %}
17+
{% endif %}
18+
{% endblock %}
19+
20+
{% block attributes %}
21+
{% if attributes %}
22+
.. rubric:: Attributes
23+
24+
.. autosummary::
25+
{% for item in attributes %}
26+
~{{ name }}.{{ item }}
27+
{%- endfor %}
28+
{% endif %}
29+
{% endblock %}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{{ fullname | escape | underline}}
2+
3+
.. automodule:: {{ fullname }}
4+
5+
{% block functions %}
6+
{% if functions %}
7+
.. rubric:: Functions
8+
9+
.. autosummary::
10+
{% for item in functions %}
11+
{{ item }}
12+
{%- endfor %}
13+
{% endif %}
14+
{% endblock %}
15+
16+
{% block classes %}
17+
{% if classes %}
18+
.. rubric:: Classes
19+
20+
.. autosummary::
21+
{% for item in classes %}
22+
{{ item }}
23+
{%- endfor %}
24+
{% endif %}
25+
{% endblock %}
26+
27+
{% block exceptions %}
28+
{% if exceptions %}
29+
.. rubric:: Exceptions
30+
31+
.. autosummary::
32+
{% for item in exceptions %}
33+
{{ item }}
34+
{%- endfor %}
35+
{% endif %}
36+
{% endblock %}

docs/source/helpers/asyncx/privex.helpers.asyncx.async_sync.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
privex.helpers.asyncx.async\_sync
2-
=================================
1+
async\_sync
2+
===========
33

44
.. currentmodule:: privex.helpers.asyncx
55

docs/source/helpers/asyncx/privex.helpers.asyncx.run_sync.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
privex.helpers.asyncx.run\_sync
2-
===============================
1+
run\_sync
2+
=========
33

44
.. currentmodule:: privex.helpers.asyncx
55

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
\_\_init\_\_
2+
============
3+
4+
.. currentmodule:: privex.helpers.cache.CacheAdapter
5+
6+
.. automethod:: CacheAdapter.__init__
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
get
2+
===
3+
4+
.. currentmodule:: privex.helpers.cache.CacheAdapter
5+
6+
.. automethod:: CacheAdapter.get
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
get\_or\_set
2+
============
3+
4+
.. currentmodule:: privex.helpers.cache.CacheAdapter
5+
6+
.. automethod:: CacheAdapter.get_or_set
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
remove
2+
======
3+
4+
.. currentmodule:: privex.helpers.cache.CacheAdapter
5+
6+
.. automethod:: CacheAdapter.remove

0 commit comments

Comments
 (0)