mirror of https://git.videolan.org/git/ffmpeg.git
doc: prettyfy the texi2html documentation
make it use the website css and start structuring it so it is consistent
This commit is contained in:
parent
8283f90a52
commit
84fb63ed23
64
doc/t2h.init
64
doc/t2h.init
|
@ -1,15 +1,69 @@
|
||||||
# no horiz rules between sections
|
# no horiz rules between sections
|
||||||
$end_section = \&FFMPEG_end_section;
|
$end_section = \&Libav_end_section;
|
||||||
sub FFMPEG_end_section($$)
|
sub Libav_end_section($$)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
$print_page_foot = \&FFMPEG_print_page_foot;
|
$EXTRA_HEAD =
|
||||||
sub FFMPEG_print_page_foot($$)
|
'<link rel="icon" href="favicon.png" type="image/png" />\n' .
|
||||||
|
'<link rel="stylesheet" type="text/css" href="default.css" />\n';
|
||||||
|
|
||||||
|
$AFTER_BODY_OPEN = '<div id="container">'.
|
||||||
|
'<div id="body">';
|
||||||
|
|
||||||
|
$PRE_BODY_CLOSE = '</div></div>';
|
||||||
|
|
||||||
|
$SMALL_RULE = '';
|
||||||
|
$BODYTEXT = '';
|
||||||
|
|
||||||
|
$print_page_foot = \&Libav_print_page_foot;
|
||||||
|
sub Libav_print_page_foot($$)
|
||||||
{
|
{
|
||||||
my $fh = shift;
|
my $fh = shift;
|
||||||
print $fh "$SMALL_RULE\n";
|
print $fh '<div id="footer">\n';
|
||||||
T2H_DEFAULT_print_page_foot($fh);
|
T2H_DEFAULT_print_page_foot($fh);
|
||||||
|
print $fh '</div>\n';
|
||||||
|
}
|
||||||
|
|
||||||
|
$print_page_head = \&Libav_print_page_head;
|
||||||
|
sub Libav_print_page_head($$)
|
||||||
|
{
|
||||||
|
my $fh = shift;
|
||||||
|
my $longtitle = "$Texi2HTML::THISDOC{'title_no_texi'}";
|
||||||
|
$longtitle .= ": $Texi2HTML::NO_TEXI{'This'}" if exists $Texi2HTML::NO_TEXI{'This'};
|
||||||
|
my $description = $DOCUMENT_DESCRIPTION;
|
||||||
|
$description = $longtitle if (!defined($description));
|
||||||
|
$description = "<meta name=\"description\" content=\"$description\">" if
|
||||||
|
($description ne '');
|
||||||
|
$description = $Texi2HTML::THISDOC{'documentdescription'} if (defined($Texi2HTML::THISDOC{'documentdescription'}));
|
||||||
|
my $encoding = '';
|
||||||
|
$encoding = "<meta http-equiv=\"Content-Type\" content=\"text/html; charset=$ENCODING\">" if (defined($ENCODING) and ($ENCODING ne ''));
|
||||||
|
$longtitle =~ s/Documentation.*//g;
|
||||||
|
$longtitle = "Libav documentation : " . $longtitle;
|
||||||
|
|
||||||
|
print $fh <<EOT;
|
||||||
|
$DOCTYPE
|
||||||
|
<html>
|
||||||
|
$Texi2HTML::THISDOC{'copying'}<!-- Created on $Texi2HTML::THISDOC{today} by $Texi2HTML::THISDOC{program} -->
|
||||||
|
<!--
|
||||||
|
$Texi2HTML::THISDOC{program_authors}
|
||||||
|
-->
|
||||||
|
<head>
|
||||||
|
<title>$longtitle</title>
|
||||||
|
|
||||||
|
$description
|
||||||
|
<meta name="keywords" content="$longtitle">
|
||||||
|
<meta name="resource-type" content="document">
|
||||||
|
<meta name="distribution" content="global">
|
||||||
|
<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
|
||||||
|
$encoding
|
||||||
|
$CSS_LINES
|
||||||
|
$EXTRA_HEAD
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body $BODYTEXT>
|
||||||
|
$AFTER_BODY_OPEN
|
||||||
|
EOT
|
||||||
}
|
}
|
||||||
|
|
||||||
# no navigation elements
|
# no navigation elements
|
||||||
|
|
Loading…
Reference in New Issue