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

Generate developer docs for Python API #503

Merged
merged 14 commits into from
Jul 4, 2024
13 changes: 13 additions & 0 deletions docs/docs/developer/api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# API

<!-- dprint-ignore-start -->

::: kpops.api

<!-- dprint-ignore-end -->

<!-- dprint-ignore-start -->

::: kpops.pipeline.Pipeline
raminqaf marked this conversation as resolved.
Show resolved Hide resolved

<!-- dprint-ignore-end -->
18 changes: 18 additions & 0 deletions docs/mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,23 @@ plugins:
exclude:
- resources/*
- glightbox
- mkdocstrings:
handlers:
python:
paths: [..]
options:
docstring_style: sphinx
show_if_no_docstring: true
line_length: 60
separate_signature: true
show_signature_annotations: true
docstring_section_style: spacy
show_root_heading: true
# The options below are not yet publicly available,
raminqaf marked this conversation as resolved.
Show resolved Hide resolved
# but would be a nice addition when released.
#show_inheritance_diagram: true
#modernize_annotations: true
#parameter_headings: true

extra:
version:
Expand Down Expand Up @@ -120,6 +137,7 @@ nav:
- GitHub Actions: user/references/ci-integration/github-actions.md
- Developer Guide:
- Getting Started: developer/getting-started.md
- API: developer/api.md
- Contributing: developer/contributing.md
- Code base:
- Auto generation: developer/auto-generation.md
77 changes: 74 additions & 3 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ mkdocs-material = "^9.0.0"
mkdocs-glightbox = "^0.3.1"
mkdocs-exclude-search = "^0.6.5"
mike = "^1.1.2"
mkdocstrings = { extras = ["python"], version = "^0.25.1" }

[tool.poetry_bumpversion.file."kpops/__init__.py"]

Expand Down
Loading