From d0307bc4bf5cb0f5740a3ed85939e10c4c62a843 Mon Sep 17 00:00:00 2001 From: Carl Peterson Date: Sun, 8 Dec 2013 11:44:08 -0500 Subject: [PATCH] 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. --- Documentation/lilypond-texi2html.init | 7 +++++++ 1 file changed, 7 insertions(+) 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 . '"'; + } -- 2.39.5