Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement Octopoes Models documentation #2858

Merged
merged 8 commits into from
Apr 26, 2024
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
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ repos:
files: pyproject.toml$

- repo: https://github.com/rstcheck/rstcheck
rev: v6.2.0
rev: v6.2.1
hooks:
- id: rstcheck
# https://github.com/rstcheck/rstcheck-core/issues/4
args: ["--ignore-messages", "Hyperlink target .* is not referenced", "--ignore-directives", "mermaid"]
additional_dependencies: ["rstcheck[sphinx]"]
args: ["--ignore-messages", "Hyperlink target .* is not referenced", "--ignore-directives", "mermaid,automodule"]
additional_dependencies: ["rstcheck[sphinx]", "autodoc-pydantic==2.1.0"]

- repo: https://github.com/MarketSquare/robotframework-tidy
rev: "4.11.0"
Expand Down
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,9 @@ docs:
$(call build-settings-doc,boefjes,boefjes.config,boefjes,Boefjes)
$(call build-settings-doc,bytes,bytes.config,bytes,Bytes)
$(call build-settings-doc,mula/scheduler,config.settings,mula,Mula)
sphinx-build -b html docs/source docs/_build

PYTHONPATH=$(PYTHONPATH):boefjes/:bytes/:keiko/:mula/:octopoes/ sphinx-build -b html docs/source docs/_build


poetry-dependencies:
files=$$(find . -name pyproject.toml -maxdepth 2); \
Expand Down
3 changes: 3 additions & 0 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@
"sphinx.ext.viewcode",
"sphinx.ext.githubpages",
"sphinx.ext.autosectionlabel",
"sphinx.ext.todo",
"sphinx.ext.autodoc",
"sphinx_rtd_theme",
"myst_parser",
"sphinxcontrib.mermaid",
"sphinxcontrib.autodoc_pydantic",
]

myst_enable_extensions = ["tasklist"]
Expand Down
1 change: 1 addition & 0 deletions docs/source/developer_documentation/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ Contains documentation for developers and contributors.
boefjes
bytes
octopoes
octopoes_models
octopoes_research
keiko
80 changes: 80 additions & 0 deletions docs/source/developer_documentation/octopoes_models.rst
underdarknl marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
Octopoes Models
###############

octopoes.models.ooi.service
===========================

.. automodule:: octopoes.models.ooi.service
:members:

octopoes.models.ooi.findings
============================

.. automodule:: octopoes.models.ooi.findings
:members:

octopoes.models.ooi.email_security
==================================

.. automodule:: octopoes.models.ooi.email_security
:members:

octopoes.models.ooi.web
=======================

.. automodule:: octopoes.models.ooi.web
:members:

octopoes.models.ooi.config
==========================

.. automodule:: octopoes.models.ooi.config
:members:

octopoes.models.ooi.certificate
===============================

.. automodule:: octopoes.models.ooi.certificate
:members:

octopoes.models.ooi.monitoring
==============================

.. automodule:: octopoes.models.ooi.monitoring
:members:

octopoes.models.ooi.question
============================

.. automodule:: octopoes.models.ooi.question
:members:

octopoes.models.ooi.network
================================

.. automodule:: octopoes.models.ooi.network
:members:

octopoes.models.ooi.reports
===========================

.. automodule:: octopoes.models.ooi.reports
:members:

octopoes.models.ooi.dns.records
===============================

.. automodule:: octopoes.models.ooi.dns.records
:members:

octopoes.models.ooi.dns.zone
============================

.. automodule:: octopoes.models.ooi.dns.zone
:members:

octopoes.models.ooi.software
============================

.. automodule:: octopoes.models.ooi.software
:members:
32 changes: 27 additions & 5 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -104,5 +104,6 @@ sphinx = "<8"
sphinx_rtd_theme = "2.0.0"
sphinxcontrib-mermaid = "^0.9.2"
myst-parser = "^2.0.0"
settings-doc = "^4.0.0"
settings-doc = "^4.0.1"
colorama = "0.4.6" # Required on all platforms, not just win32
autodoc-pydantic = "^2.1.0"
9 changes: 6 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ alabaster==0.7.16 ; python_version >= "3.10" and python_version < "4.0" \
annotated-types==0.6.0 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:0641064de18ba7a25dee8f96403ebc39113d0cb953a01429249d5c7564666a43 \
--hash=sha256:563339e807e53ffd9c267e99fc6d9ea23eb8443c08f112651963e24e22f84a5d
autodoc-pydantic==2.1.0 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:3cf1b973e2f5ff0fbbe9b951c11827b5e32d3409e238f7f5782359426ab8d360 \
--hash=sha256:9f1f82ee3667589dfa08b21697be8bbd80b15110e838cd765bb1bf3ce1b0ea8f
babel==2.14.0 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:6919867db036398ba21eb5c7a0f6b28ab8cbc3ae7a73a44ebe34ae74a4e7d363 \
--hash=sha256:efb1a25b7118e67ce3a259bed20545c29cb68be8ad2c784c83689981b7a57287
Expand Down Expand Up @@ -344,9 +347,9 @@ requests==2.31.0 ; python_version >= "3.10" and python_version < "4.0" \
rich==13.7.0 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:5cb5123b5cf9ee70584244246816e9114227e0b98ad9176eede6ad54bf5403fa \
--hash=sha256:6da14c108c4866ee9520bbffa71f6fe3962e193b7da68720583850cd4548e235
settings-doc==4.0.0 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:2b6cc1529707ebf1e47c655b7e4f190254e9b3784b87b5c2cb7174346694e921 \
--hash=sha256:89542f8165ecc3e72b8d8241d6d83034ca824e890c961c935e38d5c15b75b582
settings-doc==4.0.1 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:3130ebf535b5be926ba830746fd085dac59e8fb0a5042f44c0216d6d7e69a2ae \
--hash=sha256:773248f54408d0e523978ee1729a449a635cb88c2a3cb72998f5b653cf80f334
shellingham==1.5.4 ; python_version >= "3.10" and python_version < "4.0" \
--hash=sha256:7ecfff8f2fd72616f7481040475a65b2bf8af90a56c89140852d1120324e8686 \
--hash=sha256:8dbca0739d487e5bd35ab3ca4b36e11c4078f3a234bfce294b0a0291363404de
Expand Down