]> git.donarmstrong.com Git - lilypond.git/commitdiff
Add classes to <body> tag of documentation files
authorCarl Peterson <carlopeterson@gmail.com>
Sun, 8 Dec 2013 16:44:08 +0000 (11:44 -0500)
committerDavid Kastrup <dak@gnu.org>
Sat, 21 Dec 2013 06:16:03 +0000 (07:16 +0100)
To facilitate request from lilypond-user to facilitate differentiating among the various manuals, appending CSS classes to the <body> 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

index 0f0a94c177d049824188e68f069ef8af172625c4..fbd7f1425b78f4dfcd8ded34037506795d39c5ef 100644 (file)
@@ -1094,6 +1094,13 @@ sub lilypond_css_lines ($$)
       $Texi2HTML::THISDOC{'CSS_LINES'} .= "<script language=\"JavaScript\" src=\"${reldir}lily_search.js\"></script>\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 . '"';
+
 }