From: Carl Peterson Date: Sun, 8 Dec 2013 16:44:08 +0000 (-0500) Subject: Add classes to tag of documentation files X-Git-Tag: release/2.19.0-1~47^2~4 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=d0307bc4bf5cb0f5740a3ed85939e10c4c62a843;p=lilypond.git Add classes to tag of documentation files To facilitate request from lilypond-user to facilitate differentiating among the various manuals, appending CSS classes to the tag of the documentation files so that the main CSS stylesheet can be modified to look for those classes to specifically style each manual and development status. The present solution for indicating development status is a hardcoded line in Documentation/lilypond-texi2html.init. --- diff --git a/Documentation/lilypond-texi2html.init b/Documentation/lilypond-texi2html.init index 0f0a94c177..fbd7f1425b 100644 --- a/Documentation/lilypond-texi2html.init +++ b/Documentation/lilypond-texi2html.init @@ -1094,6 +1094,13 @@ sub lilypond_css_lines ($$) $Texi2HTML::THISDOC{'CSS_LINES'} .= "\n"; } } + +my ($docu_dir, $docu_name) = split_texi_filename ($Texi2HTML::THISDOC{'input_file_name'}); + +$documentstatus = 'devStatus'; + +$Texi2HTML::Config::BODYTEXT = 'lang="' . $Texi2HTML::THISDOC{current_lang} . '" class="' . $docu_name . ' ' . $documentstatus . '"'; + }