Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Improve doc generation
Browse files Browse the repository at this point in the history
  • Loading branch information
abhabongse committed Jul 5, 2024
1 parent c20d776 commit 8b06637
Show file tree
Hide file tree
Showing 12 changed files with 148 additions and 100 deletions.
7 changes: 7 additions & 0 deletions .idea/pyright-langserver.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions .idea/ruff.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ repos:
- id: ruff
args: [ --fix ]
- id: ruff-format
- repo: https://github.com/RobertCraigie/pyright-python
rev: v1.1.369
hooks:
- id: pyright
- repo: https://github.com/python-poetry/poetry
rev: "1.8.3"
hooks:
Expand Down
6 changes: 1 addition & 5 deletions docs/api/app.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
# Public Application Functions

Here is the complete list of public functions.

::: myhelpers.dummy.longest_common_prefix
options:
show_root_heading: true
::: myhelpers.dummy
7 changes: 4 additions & 3 deletions docs/api/helpers.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Additional Primitive Helpers

Here is a list of additional primitive helpers.
::: myhelpers.primitives.envvar

::: myhelpers.primitives.envvar.EnvVariable
::: myhelpers.primitives.singleton.SingletonMeta
::: myhelpers.primitives.logging

::: myhelpers.primitives.singleton
2 changes: 1 addition & 1 deletion docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ Feel free to write article or customize all you want.

## Useful Links

- [API Reference](API%20Reference/index.md)
- [API Reference](api/index.md)
13 changes: 12 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,26 @@ theme:
- search.highlight
# noinspection YAMLSchemaValidation
plugins:
- autorefs
- glightbox
- mkdocstrings:
enabled: true
default_handler: python
handlers:
python:
paths:
- src
options:
show_root_heading: true
docstring_style: google
heading_level: 3
line_length: 80
separate_signature: true
show_root_heading: true
show_signature_annotations: true
show_symbol_type_heading: true
show_symbol_type_toc: true
signature_crossrefs: true
unwrap_annotated: true
import:
- https://docs.python.org/3/objects.inv
- search
Expand Down
66 changes: 35 additions & 31 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/myhelpers/primitives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from myhelpers.primitives.envvar import EnvVariable
from myhelpers.primitives.envvar import EnvVar
from myhelpers.primitives.singleton import SingletonMeta

__all__ = ['EnvVariable', 'SingletonMeta']
__all__ = ['EnvVar', 'SingletonMeta']
Loading

0 comments on commit 8b06637

Please sign in to comment.