Skip to content

Commit

Permalink
Render HTTP API documentation inline
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrehan committed Sep 25, 2023
1 parent e999b63 commit 5d71812
Show file tree
Hide file tree
Showing 5 changed files with 53 additions and 4 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ jobs:
poetry-version: "1.3.2"
- name: Install dependencies
run: poetry install
- name: Build HTTP documentation
run: npx @redocly/cli build-docs http-api.yml --output docs/http-api.html
- name: Build python reference
run: |
poetry run pdocs as_markdown blueye.sdk -o docs/reference
Expand Down
5 changes: 5 additions & 0 deletions docs/http-api.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
hide:
- toc
---
<swagger-ui src="http-api.yml"/>
4 changes: 3 additions & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ plugins:
- search
- macros:
module_name: doc_utils
- swagger-ui-tag:
supportedSubmitMethods: []

markdown_extensions:
- admonition
Expand Down Expand Up @@ -55,7 +57,7 @@ nav:
- "Subscribing to a telemetry message": "telemetry-callback.md"
- "Updating from v1 to v2": "migrating-to-v2.md"
- "Protobuf protocol": "protobuf-protocol.md"
- "HTTP API": "http-api.html"
- "HTTP API": "http-api.md"
- Reference:
- blueye.sdk.battery: "reference/blueye/sdk/battery.md"
- blueye.sdk.camera: "reference/blueye/sdk/camera.md"
Expand Down
45 changes: 44 additions & 1 deletion 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 @@ -29,6 +29,7 @@ packaging = "^22.0"
python-dateutil = "^2.8.2"
pyzmq = "^25.0.0"
proto-plus = "^1.22.2"
mkdocs-swagger-ui-tag = "^0.6.5"

[tool.poetry.dev-dependencies]
pytest = "^7.4"
Expand Down

0 comments on commit 5d71812

Please sign in to comment.