blob: cb701078238d6bd05ff016d2de3037ba7f500192 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
#!/bin/sh
cd ${MESON_BUILD_ROOT}/docs/reference/libtracker-sparql/
docs_name=$1
docs_path="${docs_name}-doc/devhelp/books/${docs_name}"
devhelp_file="${docs_path}/*.devhelp2"
# Step 1. Build devhelp documentation (we let meson do this)
# hotdoc run --conf-file '${docs_name}-doc.json' --devhelp-activate
# Step 2. Fix .devhelp2 file so it contains keywords from out ontologies
cat $devhelp_file | sed "s/<\/functions>//" - | sed "s/<\/book>//" - >fixed.devhelp2
for i in *-ontology.keywords
do
cat $i >>fixed.devhelp2
done
echo -e " </functions>\n</book>" >>fixed.devhelp2
mv fixed.devhelp2 $devhelp_file
# Step 3. Trim unnecessary data
rm ${docs_path}/assets/fonts/*.woff*
rm ${docs_path}/assets/fonts/*.svg
rm -rf ${docs_path}/assets/js/search
find ${docs_path} -name "dumped.trie" -delete
|