Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

draft: generate reference documentation using mkdosctrings #89

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/reference.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This part of the project documentation focuses on
an **information-oriented** approach. Use it as a
reference for the technical implementation of the
`python-wiremock` project code.

::: wiremock
6 changes: 6 additions & 0 deletions mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ theme:
highlightjs: true
plugins:
- search
- mkdocstrings:
handlers:
python:
options:
show_submodules: true
markdown_extensions:
- markdown_include.include:
base_path: .
Expand All @@ -15,6 +20,7 @@ nav:
- Installation: install.md
- Testcontainers: testcontainers.md
- Standalone: api-client.md
- Reference: reference.md
- Contributing: CONTRIBUTING.md
- Resources:
- Examples: examples.md
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,13 @@ classifiers=[
]

[tool.poetry.dependencies]
python = "^3.7 | ^3.8 | ^3.9 | ^3.10 | ^3.11"
python = "^3.8 | ^3.9 | ^3.10 | ^3.11"
requests = "^2.20.0"
importlib-resources = "^5.12.0"
docker = {version = "^6.1.0", optional = true}
testcontainers = {version = "^3.7.1", optional = true}
mkdocstrings-python = "^1.3.0"
mkdocs-material = "^9.1.21"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down
2 changes: 2 additions & 0 deletions wiremock/base/base_entity.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""This is example module docstring content for documentation development"""

from collections import OrderedDict
import json

Expand Down
2 changes: 2 additions & 0 deletions wiremock/client.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""This is test docstring content for documentation development"""

# import Exceptions
from .exceptions import *

Expand Down