Doxygen: Don't strip JavaScript anymore

The stripping method worked well with Doxygen 1.8 and 1.9 but
it doesn't work with Doxygen 1.10 anymore. Since we won't ship
pre-generated liblzma API docs anymore, the extra bloat and
extra license info of the JavaScript files won't affect the
upstream source package anymore.
This commit is contained in:
Lasse Collin 2024-04-19 15:14:02 +03:00
parent d3a77ebc04
commit bdba39a575
1 changed files with 0 additions and 21 deletions

View File

@ -57,30 +57,9 @@ case $1 in
cat Doxyfile cat Doxyfile
echo "PROJECT_NUMBER = $PACKAGE_VERSION" echo "PROJECT_NUMBER = $PACKAGE_VERSION"
) | doxygen - ) | doxygen -
# As of Doxygen 1.8.0 - 1.9.6 and the Doxyfile options we use,
# the output is good without any JavaScript. Unfortunately
# Doxygen doesn't have an option to disable JavaScript usage
# completely so we strip it away with the hack below.
#
# Omitting the JavaScript code avoids some license hassle
# as jquery.js is fairly big, it contains more than jQuery
# itself, and doesn't include the actual license text (it
# only refers to the MIT license by name).
echo "Stripping JavaScript from Doxygen output..."
for F in ../doc/api/*.html
do
sed 's/<script [^>]*><\/script>//g
s/onclick="[^"]*"//g' \
"$F" > ../doc/api/tmp
mv -f ../doc/api/tmp "$F"
done
rm -f ../doc/api/*.js
;; ;;
internal) internal)
# The docs from internal aren't for distribution so
# the JavaScript files aren't an issue here.
rm -rf ../doc/internal rm -rf ../doc/internal
( (
cat Doxyfile cat Doxyfile