Skip to content
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_dir: ./publish
# this puts the docs for this tag under gh-pages:/rc/<tag>/
destination_dir: rc/${{ github.event.release.tag_name }}

Expand All @@ -48,4 +48,4 @@ jobs:
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs
publish_dir: ./publish
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ __pycache__/
.vscode/
tests/__pycache__/
dist/
docs/
publish/
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,13 @@ fmt: install dev # run code formatter
uv run ruff format kratix_sdk tests

generate-docs: install dev # create API documentation
uv run pdoc src/kratix_sdk -o docs
VERSION=$(shell python3 -c 'import json; print(*json.load(open(".release-please-manifest.json")).values(), end="")') \
uv run pdoc src/kratix_sdk \
--output-directory publish \
--template-directory docs/templates \
--logo logo.svg \
--favicon favicon.ico
cp -r docs/assets/* publish/

build-and-load-configure-image: # build example docker image and load it into kind
docker buildx build --builder kratix-image-builder --load --platform linux/arm64 \
Expand Down
Binary file added docs/assets/favicon.ico
Binary file not shown.
3 changes: 3 additions & 0 deletions docs/assets/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/templates/module.html.jinja2
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{% extends "default/module.html.jinja2" %}
{% block nav_footer %}
<footer>{{ module.modulename }} v{{ env["VERSION"] | default("snapshot") }}</footer>
{% endblock %}
{% block module_info %}
<h1 class="modulename">{{ module.modulename }} v{{ env["VERSION"] | default("dev") }}</h1>
{% endblock %}