summaryrefslogtreecommitdiff
path: root/doc/t2h.init
diff options
context:
space:
mode:
authordb0 <db0company@gmail.com>2014-07-13 22:48:23 +0200
committerClément Bœsch <u@pkh.me>2014-07-20 01:51:28 +0200
commit9ce64ba111221a37bdd78204b67330a6120f6c50 (patch)
tree37c63c0d47688409e3236b125780820899b16b96 /doc/t2h.init
parentb53bdae11f1eceea1a2e25a98aee81e1d1954e14 (diff)
doc: update the documentation generator to match the new website
Signed-off-by: db0 <db0company@gmail.com> Signed-off-by: Clément Bœsch <u@pkh.me>
Diffstat (limited to 'doc/t2h.init')
-rw-r--r--doc/t2h.init54
1 files changed, 31 insertions, 23 deletions
diff --git a/doc/t2h.init b/doc/t2h.init
index e7760f4527..9dd8f91edc 100644
--- a/doc/t2h.init
+++ b/doc/t2h.init
@@ -4,23 +4,27 @@ sub FFmpeg_end_section($$)
{
}
-$EXTRA_HEAD =
-'<link rel="icon" href="favicon.png" type="image/png" />
-';
-
-$CSS_LINES = $ENV{"FFMPEG_CSS"} || <<EOT;
-<link rel="stylesheet" type="text/css" href="default.css" />
+my $TEMPLATE_HEADER1 = $ENV{"FFMPEG_HEADER1"} || <<EOT;
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <title>FFmpeg documentation</title>
+ <link rel="stylesheet" href="style.min.css" />
EOT
-my $TEMPLATE_HEADER = $ENV{"FFMPEG_HEADER"} || <<EOT;
-<link rel="icon" href="favicon.png" type="image/png" />
-</head>
-<body>
-<div id="container">
-<div id="body">
+my $TEMPLATE_HEADER2 = $ENV{"FFMPEG_HEADER2"} || <<EOT;
+ </head>
+ <body>
+ <div style="width: 95%; margin: auto">
EOT
-$PRE_BODY_CLOSE = '</div></div>';
+my $TEMPLATE_FOOTER = $ENV{"FFMPEG_FOOTER"} || <<EOT;
+ </div>
+ </body>
+</html>
+EOT
$SMALL_RULE = '';
$BODYTEXT = '';
@@ -82,21 +86,25 @@ sub FFmpeg_print_page_head($$)
$longtitle = "FFmpeg documentation : " . $longtitle;
print $fh <<EOT;
-<!DOCTYPE html>
-<html>
+$TEMPLATE_HEADER1
+$description
+<meta name="keywords" content="$longtitle">
+<meta name="Generator" content="$Texi2HTML::THISDOC{program}">
$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="Generator" content="$Texi2HTML::THISDOC{program}">
$encoding
-$CSS_LINES
-$TEMPLATE_HEADER
+$TEMPLATE_HEADER2
+EOT
+}
+
+$print_page_foot = \&FFmpeg_print_page_foot;
+sub FFmpeg_print_page_foot($$)
+{
+ my $fh = shift;
+ print $fh <<EOT;
+$TEMPLATE_FOOTER
EOT
}