]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Doxygen: Don't strip JavaScript anymore
authorLasse Collin <lasse.collin@tukaani.org>
Fri, 19 Apr 2024 12:14:02 +0000 (15:14 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 30 Apr 2024 14:09:08 +0000 (17:09 +0300)
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.

doxygen/update-doxygen

index 87dfffb29e751335812715a169a826380105f704..0482b1ac260dd46af645c8ec7e153faa1d12d233 100755 (executable)
@@ -57,30 +57,9 @@ case $1 in
                        cat Doxyfile
                        echo "PROJECT_NUMBER         = $PACKAGE_VERSION"
                ) | 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)
-               # The docs from internal aren't for distribution so
-               # the JavaScript files aren't an issue here.
                rm -rf ../doc/internal
                (
                        cat Doxyfile