Skip to content

Commit

Permalink
feat: auto docs using mkdocstrings
Browse files Browse the repository at this point in the history
- new doc dependencies: `mkdocs`, `mkdocs-material` and `mkdocstrings`
- auto reference documentation using `mkdocstrings`
- moves `pytest` to "tests" dependency group
- install only pytest for testing in github-ci
  • Loading branch information
yozachar committed Mar 6, 2023
1 parent 6a6bfed commit bfd5217
Show file tree
Hide file tree
Showing 5 changed files with 729 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
#----------------------------------------------
- name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --no-interaction --no-root
run: poetry install --no-interaction --no-root --no-ansi --only tests
#----------------------------------------------
# run test suite
#----------------------------------------------
Expand Down
15 changes: 15 additions & 0 deletions docs/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Reference

::: validators.utils

::: validators.between

::: validators.btc_address

::: validators.card

::: validators.domain

::: validators.email

::: validators.length
27 changes: 27 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
site_name: "validators"
site_description: "Automatic documentation from sources, for MkDocs."
site_url: "https://python-validators.github.io/"
repo_url: "https:/python-validators/validators"
edit_uri: "tree/master/docs/"
repo_name: "validators/validators"
site_dir: "site"
watch: [README.md, validators/]

nav:
- Reference: index.md

theme:
name: material

plugins:
- search
- mkdocstrings:
handlers:
python:
import:
- https://docs.python-requests.org/en/master/objects.inv

extra:
social:
- icon: fontawesome/brands/github
link: https:/python-validators/validators
Loading

0 comments on commit bfd5217

Please sign in to comment.