summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorVasek Sraier <git@vakabus.cz>2022-09-26 13:21:32 +0200
committerAleš Mrázek <ales.mrazek@nic.cz>2023-01-10 19:57:13 +0100
commit45a7e8edd3ff537dea34f80f733e5cc69f3200cd (patch)
tree3882faa797fb4a82a97a9af7584029b333c9f395 /scripts
parentkresctl: fix typing annotations for old python (diff)
downloadknot-resolver-45a7e8edd3ff537dea34f80f733e5cc69f3200cd.tar.xz
knot-resolver-45a7e8edd3ff537dea34f80f733e5cc69f3200cd.zip
docs: generating and linking JSON schema for the declarative config
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/make-doc.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/make-doc.sh b/scripts/make-doc.sh
index d41e234c..086fe410 100755
--- a/scripts/make-doc.sh
+++ b/scripts/make-doc.sh
@@ -2,6 +2,15 @@
# SPDX-License-Identifier: GPL-3.0-or-later
cd "$(dirname ${0})/.."
+
+# generate JSON schema for the manager's declarative config
+pushd manager
+## the following python command should hopefully run without any dependencies except for standard python
+mkdir -p ../doc/_static/
+python3 -m knot_resolver_manager.cli schema > ../doc/_static/config-schema.json
+popd
+
+
pushd doc
doxygen
popd