summaryrefslogtreecommitdiffstats
path: root/scripts/meson/make-doc.sh
blob: 1bea3df98930dff18dca2710989b75c2e3dfac09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
# SPDX-License-Identifier: GPL-3.0-or-later
set -o errexit -o nounset
cd "$(dirname "${0}")/../.."

# convert JSON schema to html
generate-schema-doc --config expand_buttons=true doc/_static/config.schema.json doc/_static/schema_doc.html

# generating the user documentation
SPHINX=$(type -P sphinx-build-3 sphinx-build | head -n1)
rm -rf doc/html
"$SPHINX" "$@" -b html -d doc/user/.doctrees doc/user doc/html

pushd doc/dev
doxygen
popd

# generating the developer documentation
rm -rf doc/html/dev
"$SPHINX" "$@" -b html -d doc/dev/.doctrees doc/dev doc/html/dev