1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-06 03:50:08 +02:00

meta: replace the title 'Modules' by 'Constants' in the generated documentation

This commit is contained in:
B. Petersen 2018-09-04 17:32:37 +02:00
parent 9967b2127a
commit c9691e80cb

View file

@ -4,6 +4,26 @@
UPLOADDIR="../../api"
doxygen
# HACK: we use the doxygen commands @defgroup and @addtogroup to sort #define's,
# however, doxygen files them under the menu entry "Modules".
# with the following lines, we correct the menu entry title.
# if anyone sees a more elegant solution for this, please change it :)
replace_in_html() {
for currfile in *.js; do
sed -i "s/$1/$2/g" $currfile
done
for currfile in *.html; do
sed -i "s/$1/$2/g" $currfile
done
}
cd html
replace_in_html "Modules" "Constants"
replace_in_html "all modules" "all constants"
cd ..
mkdir -p ${UPLOADDIR}/docs/
cp -r html/* ${UPLOADDIR}/docs/
read -p "if not errors are printed above, press ENTER to commit and push the changes"
@ -18,4 +38,3 @@ git push
popd > /dev/null