Skip to content

Commit

Permalink
Decommission agent_based_api.v1: prepare sphinx
Browse files Browse the repository at this point in the history
Change-Id: I9a1dc2bb62671655dbc76b04a8397a0542cc3419
  • Loading branch information
mo-ki committed Oct 18, 2024
1 parent 623a144 commit 4879124
Show file tree
Hide file tree
Showing 7 changed files with 22 additions and 25 deletions.
21 changes: 9 additions & 12 deletions doc/plugin-api/source/cmk.agent_based/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,17 @@
Agent based ("Check API")
=========================

Version 1
Version 2
=========

.. automodule:: cmk.base.plugins.agent_based.agent_based_api
:members:
.. toctree::

v2
v2.clusterize
v2.render

Version 1 (Checkmk 2.2.0 - 2.3.0)
=================================

.. toctree::

Expand All @@ -15,12 +21,3 @@ Version 1
v1.register
v1.render
v1.type_defs

Version 2
=========

.. toctree::

v2
v2.clusterize
v2.render
4 changes: 2 additions & 2 deletions doc/plugin-api/source/cmk.agent_based/v1.clusterize.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=============================
agent_based_api.v1.clusterize
cmk.agent_based.v1.clusterize
=============================

.. automodule:: cmk.base.plugins.agent_based.agent_based_api.v1.clusterize
.. automodule:: cmk.agent_based.v1.clusterize
:members:
:show-inheritance:
4 changes: 2 additions & 2 deletions doc/plugin-api/source/cmk.agent_based/v1.register.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
===========================
agent_based_api.v1.register
cmk.agent_based.v1.register
===========================

.. automodule:: cmk.base.plugins.agent_based.agent_based_api.v1.register
.. automodule:: cmk.agent_based.v1.register
:members:
:show-inheritance:
4 changes: 2 additions & 2 deletions doc/plugin-api/source/cmk.agent_based/v1.render.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
=========================
agent_based_api.v1.render
cmk.agent_based.v1.render
=========================

.. automodule:: cmk.base.plugins.agent_based.agent_based_api.v1.render
.. automodule:: cmk.agent_based.v1.render
:members:
:show-inheritance:
4 changes: 2 additions & 2 deletions doc/plugin-api/source/cmk.agent_based/v1.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
==================
agent_based_api.v1
cmk.agent_based.v1
==================

.. automodule:: cmk.base.plugins.agent_based.agent_based_api.v1
.. automodule:: cmk.agent_based.v1
:members:
:show-inheritance:
4 changes: 2 additions & 2 deletions doc/plugin-api/source/cmk.agent_based/v1.type_defs.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
============================
agent_based_api.v1.type_defs
cmk.agent_based.v1.type_defs
============================

.. automodule:: cmk.base.plugins.agent_based.agent_based_api.v1.type_defs
.. automodule:: cmk.agent_based.v1.type_defs
:members:
:show-inheritance:
6 changes: 3 additions & 3 deletions doc/plugin-api/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@
# The better way to deal with it would be to create a dedicated venv for the plugin API doc
# generator which pulls in our packages as dependencies. This way we would ensure that all
# dependencies are available during the sphinx execution. But since the documented modules
# cmk.base.plugins.bakery.bakery_api, cmk.base.plugins.agent_based.agent_based_api and
# cmk.cee.dcd.plugins.connectors.connectors_api are not separate packages right now, we can
# not move on with this.
# cmk.base.plugins.bakery.bakery_api and
# cmk.cee.dcd.plugins.connectors.connectors_api
# are not separate packages right now, we can not move on with this.
autodoc_mock_imports = [
"cmk.trace",
"livestatus",
Expand Down

0 comments on commit 4879124

Please sign in to comment.