From 866785193a57aacfdd03248ae9b91b666c222a97 Mon Sep 17 00:00:00 2001 From: wunder957 Date: Thu, 7 Sep 2023 15:57:06 +0800 Subject: [PATCH] Fix some make error --- dev-tools/start-docs-host.sh | 2 +- docs/source/collectors/base.rst | 16 ---------------- docs/source/collectors/index.rst | 17 +++++++++++++++-- pyproject.toml | 2 +- 4 files changed, 17 insertions(+), 20 deletions(-) delete mode 100644 docs/source/collectors/base.rst diff --git a/dev-tools/start-docs-host.sh b/dev-tools/start-docs-host.sh index 6e1a451..c9543b3 100755 --- a/dev-tools/start-docs-host.sh +++ b/dev-tools/start-docs-host.sh @@ -7,5 +7,5 @@ set -e docker run --rm \ -it \ -p 8080:80 \ --v $(pwd)/../docs/build/:/usr/share/nginx/:ro \ +-v $(pwd)/../docs/build/html:/usr/share/nginx/html:ro \ nginx diff --git a/docs/source/collectors/base.rst b/docs/source/collectors/base.rst deleted file mode 100644 index 35b9e5e..0000000 --- a/docs/source/collectors/base.rst +++ /dev/null @@ -1,16 +0,0 @@ -Collector -================== - -Base class for all collectors. - -.. autoclass:: duetector.collectors.base.Collector - :members: - :undoc-members: - :private-members: - - -.. autoclass:: duetector.collectors.base.DequeCollector - :members: - :undoc-members: - :private-members: - :show-inheritance: diff --git a/docs/source/collectors/index.rst b/docs/source/collectors/index.rst index cca04fd..718d445 100644 --- a/docs/source/collectors/index.rst +++ b/docs/source/collectors/index.rst @@ -4,10 +4,23 @@ Collector Collector will convert ``data_t`` to :doc:`Tracking ` and store them in a somewhere. + +.. autoclass:: duetector.collectors.base.Collector + :members: + :undoc-members: + :private-members: + + +.. autoclass:: duetector.collectors.base.DequeCollector + :members: + :undoc-members: + :private-members: + :show-inheritance: + + .. toctree:: :maxdepth: 2 - :caption: Avaliable Collector + :caption: Avaliable Collector and Data Models - Base Collectors DB Collectors Data Models diff --git a/pyproject.toml b/pyproject.toml index 4790911..54edec7 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -27,7 +27,7 @@ classifiers = [ ] [project.optional-dependencies] test = ["pytest", "pytest-cov", "pytype"] -docs = ["Sphinx", "sphinx-rtd-theme", "sphinx-click"] +docs = ["Sphinx<=7.2.4", "sphinx-rtd-theme", "sphinx-click"] [project.scripts] duectl = "duetector.cli.main:cli"