scripts/generate-images.sh \
scripts/docs-almalinux9-minimal-build.sh \
scripts/docs-ubuntu-debian-minimal-build.sh \
+ scripts/evedoc.py \
examples/plugins
SUBDIRS = $(HTP_DIR) rust src plugins qa rules doc contrib etc python ebpf \
$(SURICATA_UPDATE_DIR)
EXTRA_DIST = \
+ _generated \
_static \
3rd-party-integration \
acknowledgements.rst \
+ appendix \
capture-hardware \
command-line-options.rst \
conf.py \
SPHINX_BUILD = sphinx-build -q
-html:
+html: _generated
sysconfdir=$(sysconfdir) \
localstatedir=$(localstatedir) \
version=$(PACKAGE_VERSION) \
$(SPHINX_BUILD) -W -b html -d _build/doctrees \
$(top_srcdir)/doc/userguide _build/html
-_build/latex/Suricata.pdf:
+_build/latex/Suricata.pdf: _generated
sysconfdir=$(sysconfdir) \
localstatedir=$(localstatedir) \
version=$(PACKAGE_VERSION) \
pdf: userguide.pdf
-_build/man: manpages/suricata.rst manpages/suricatasc.rst manpages/suricatactl.rst manpages/suricatactl-filestore.rst
+_build/man: _generated manpages/suricata.rst manpages/suricatasc.rst manpages/suricatactl.rst manpages/suricatactl-filestore.rst
RELEASE_DATE=$(RELEASE_DATE) \
sysconfdir=$(sysconfdir) \
localstatedir=$(localstatedir) \
rm -f $(top_builddir)/doc/userguide/userguide.pdf
endif # SPHINX_BUILD
+
+_generated:
+ ./generate-evedoc.sh
--- /dev/null
+EVE Index
+=========
+
+.. toctree::
+ :maxdepth: 1
+
+.. include:: ../_generated/eve-index.rst
--- /dev/null
+Appendix
+========
+
+.. toctree::
+ :maxdepth: 1
+
+ eve-index
else:
app.add_stylesheet('css/suricata.css')
+ # Build generated pages if they don't exist. For example, when on
+ # RTD and we're build from git instead of a distribution package.
+ if not os.path.exists("./_generated"):
+ os.system("./generate-evedoc.sh")
+
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
"sysconfdir": os.getenv("sysconfdir", "/etc"),
"localstatedir": os.getenv("localstatedir", "/var"),
}
+
+# Custom code generate some documentation.
+# evedoc = "./evedoc.py"
+# eve_schema = "../../etc/schema.json"
+# os.makedirs("_generated", exist_ok=True)
+# subprocess.call([evedoc, "--output", "_generated/eve-index.rst", eve_schema])
+# for proto in ["quic", "pgsql"]:
+# subprocess.call([evedoc, "--output", "_generated/{}.rst".format(proto), "--object", proto, eve_schema])
--- /dev/null
+#! /bin/sh
+#
+# Generate RST EVE documentation.
+#
+# This has been broken out of the Makefile so it can be called by
+# make, and Sphinx via conf.py.
+
+set -e
+
+mkdir -p _generated
+../../scripts/evedoc.py --output _generated/eve-index.rst ../../etc/schema.json
+../../scripts/evedoc.py --output _generated/quic.rst --object quic ../../etc/schema.json
+../../scripts/evedoc.py --output _generated/pgsql.rst --object pgsql ../../etc/schema.json
acknowledgements
licenses/index.rst
devguide/index.rst
- verifying-source-files
\ No newline at end of file
+ verifying-source-files
+ appendix/index.rst
.. _PostgreSQL message format - BackendKeyData: https://www.postgresql.org/docs
/current/protocol-message-formats.html#PROTOCOL-MESSAGE-FORMATS-BACKENDKEYDATA
+Field Reference
+~~~~~~~~~~~~~~~
+
+.. include:: ../../_generated/pgsql.rst
Event type: IKE
---------------
"ja4": "q13d0310h3_55b375c5d22e_cd85d2d88918"
}
+Output Reference
+~~~~~~~~~~~~~~~~
+
+.. include:: ../../_generated/quic.rst
+
Event type: DHCP
-----------------
"dest_mac": "00:1d:09:f0:92:ab",
"dest_ip": "10.10.10.1"
}
-
etcdatadir = $(datadir)/suricata
-EXTRA_DIST = suricata.logrotate.in \
+EXTRA_DIST = schema.json \
+ suricata.logrotate.in \
suricata.service.in
dist_etcdata_DATA = classification.config \