Skip to content

Commit

Permalink
Improved docs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrea Zoppi <[email protected]>
  • Loading branch information
TexZK committed Feb 22, 2024
1 parent 533ceca commit 8d8ee6f
Show file tree
Hide file tree
Showing 10 changed files with 33 additions and 28 deletions.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ exclude_lines =
# Don't complain if tests don't hit defensive assertion code:
raise AssertionError
raise NotImplementedError
@pytest\.mark\.skip

# Don't complain if non-runnable code isn't run:
if 0:
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Changelog
=========

0.4.0 (TBD)
------------------
-----------

* Library rewritten from scratch (not backwards compatible).
* Added new object oriented API, hopefully more user friendly.
Expand Down
17 changes: 9 additions & 8 deletions docs/_autosummary/hexrec.base.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,10 @@
.. autosummary::
:toctree:
:template: custom-base-template.rst
:nosignatures:

FILE_TYPES
TOKEN_COLOR_CODES
~FILE_TYPES
~TOKEN_COLOR_CODES



Expand All @@ -27,12 +28,12 @@
:template: custom-base-template.rst
:nosignatures:

colorize_tokens
convert
guess_format_name
guess_format_type
load
merge
~colorize_tokens
~convert
~guess_format_name
~guess_format_type
~load
~merge



Expand Down
8 changes: 4 additions & 4 deletions docs/_autosummary/hexrec.formats.sqtp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
:template: custom-base-template.rst
:nosignatures:

from_numbers
from_strings
to_numbers
to_strings
~from_numbers
~from_strings
~to_numbers
~to_strings



Expand Down
3 changes: 2 additions & 1 deletion docs/_autosummary/hexrec.formats.srec.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
.. autosummary::
:toctree:
:template: custom-base-template.rst
:nosignatures:

SIZE_TO_ADDRESS_FORMAT
~SIZE_TO_ADDRESS_FORMAT



Expand Down
11 changes: 6 additions & 5 deletions docs/_autosummary/hexrec.utils.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,9 @@
.. autosummary::
:toctree:
:template: custom-base-template.rst
:nosignatures:

DEFAULT_DELETE
~DEFAULT_DELETE



Expand All @@ -26,10 +27,10 @@
:template: custom-base-template.rst
:nosignatures:

chop
hexlify
parse_int
unhexlify
~chop
~hexlify
~parse_int
~unhexlify



Expand Down
File renamed without changes.
9 changes: 6 additions & 3 deletions docs/_templates/custom-module-template.rst
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,9 @@
.. autosummary::
:toctree:
:template: custom-base-template.rst
:nosignatures:
{% for item in attributes %}
{{ item }}
~{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
Expand All @@ -26,7 +27,7 @@
:template: custom-base-template.rst
:nosignatures:
{% for item in functions %}
{{ item }}
~{{ item }}
{%- endfor %}
{% endif %}
{% endblock %}
Expand All @@ -52,6 +53,9 @@
.. rubric:: {{ _('Exceptions') }}

.. autosummary::
:toctree:
:template: custom-class-template.rst
:nosignatures:
{% for item in exceptions %}
{{ item }}
{%- endfor %}
Expand All @@ -65,7 +69,6 @@
.. autosummary::
:toctree:
:template: custom-module-template.rst
:recursive:
{% for item in modules %}
{{ item }}
{%- endfor %}
Expand Down
8 changes: 3 additions & 5 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,8 @@ def read_version():

autosummary_generate = True
autosummary_generate_overwrite = True
autodoc_default_options = {
'show-inheritance': True,
'undoc-members': False,
'exclude-members': '__weakref__',
}

toc_object_entries_show_parents = 'hide'

napoleon_google_docstring = True
napoleon_numpy_docstring = False
Expand All @@ -81,5 +78,6 @@ def read_version():
napoleon_use_param = True
napoleon_include_private_with_doc = True
napoleon_include_special_with_doc = True
napoleon_custom_sections = [('Method Groups', 'params_style')]

typehints_document_rtype = False
2 changes: 1 addition & 1 deletion src/hexrec/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
# POSSIBILITY OF SUCH DAMAGE.

__version__ = '0.4.dev0'
__version__ = '0.4.0'

from .base import FILE_TYPES
from .base import convert
Expand Down

0 comments on commit 8d8ee6f

Please sign in to comment.