Skip to content

Commit

Permalink
Openapi in sphinx, not done
Browse files Browse the repository at this point in the history
  • Loading branch information
hmpf committed Apr 17, 2024
1 parent 615b760 commit a672b47
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"sphinx.ext.coverage",
"sphinx.ext.viewcode",
"sphinx.ext.intersphinx",
"sphinxcontrib.openapi",
"djangodocs",
]

Expand Down
4 changes: 3 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
Welcome to Argus' documentation!
================================

Argus is an alert aggregator for monitoring systems.
Argus is an alert aggregator for monitoring systems.

.. openapi:: ../argus-openapi.yml

.. toctree::
about-argus
Expand Down
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,10 @@ dynamic = ["version"]
"Homepage" = "https://github.com/Uninett/Argus"

[project.optional-dependencies]
docs = ["sphinx>=2.2.0"]
docs = [
"sphinx>=2.2.0",
"sphinxcontrib-openapi",
]
dev = [
"black",
"coverage",
Expand Down

0 comments on commit a672b47

Please sign in to comment.