mirror of
https://github.com/deltachat/deltachat-core.git
synced 2025-10-06 12:00:11 +02:00
meta: replace the title 'Modules' by 'Constants' in the generated documentation
This commit is contained in:
parent
9967b2127a
commit
c9691e80cb
1 changed files with 20 additions and 1 deletions
|
@ -4,6 +4,26 @@
|
||||||
UPLOADDIR="../../api"
|
UPLOADDIR="../../api"
|
||||||
|
|
||||||
doxygen
|
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/
|
mkdir -p ${UPLOADDIR}/docs/
|
||||||
cp -r html/* ${UPLOADDIR}/docs/
|
cp -r html/* ${UPLOADDIR}/docs/
|
||||||
read -p "if not errors are printed above, press ENTER to commit and push the changes"
|
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
|
popd > /dev/null
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue