mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
doc: modify style for texi2html 1.78+
The generated HTML files are similar to the ones generated with texi2html 1.56k used on the website. Tested with texi2html 1.78 and 5.0. 1.78 is the minimal recommended version. The removed @sp from the titlepage section were ignored until texi2html 5.0. If not removed the pages generated by 5.0 will have ugly empty space around the title.
This commit is contained in:
parent
3af1fe829e
commit
a8f0814a74
4
Makefile
4
Makefile
@ -123,8 +123,8 @@ doc/ffprobe.pod doc/ffprobe.html: doc/demuxers.texi doc/indevs.texi doc/protocol
|
|||||||
doc/libavfilter.html: doc/filters.texi
|
doc/libavfilter.html: doc/filters.texi
|
||||||
|
|
||||||
doc/%.html: TAG = HTML
|
doc/%.html: TAG = HTML
|
||||||
doc/%.html: doc/%.texi
|
doc/%.html: doc/%.texi $(SRC_PATH_BARE)/doc/t2h.init
|
||||||
$(M)cd doc && texi2html -monolithic -number $(<:doc/%=%)
|
$(M)cd doc && texi2html -monolithic --init-file $(SRC_PATH_BARE)/doc/t2h.init $(<:doc/%=%)
|
||||||
|
|
||||||
doc/%.pod: TAG = POD
|
doc/%.pod: TAG = POD
|
||||||
doc/%.pod: doc/%.texi
|
doc/%.pod: doc/%.texi
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
@settitle Developer Documentation
|
@settitle Developer Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{Developer Documentation}
|
@center @titlefont{Developer Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Developers Guide
|
@chapter Developers Guide
|
||||||
|
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
@settitle FFmpeg FAQ
|
@settitle FFmpeg FAQ
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{FFmpeg FAQ}
|
@center @titlefont{FFmpeg FAQ}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter General Questions
|
@chapter General Questions
|
||||||
|
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
@settitle FFmpeg Documentation
|
@settitle FFmpeg Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{FFmpeg Documentation}
|
@center @titlefont{FFmpeg Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Synopsis
|
@chapter Synopsis
|
||||||
|
|
||||||
The generic syntax is:
|
The generic syntax is:
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
@settitle FFplay Documentation
|
@settitle FFplay Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{FFplay Documentation}
|
@center @titlefont{FFplay Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Synopsis
|
@chapter Synopsis
|
||||||
|
|
||||||
@example
|
@example
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
@settitle FFprobe Documentation
|
@settitle FFprobe Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{FFprobe Documentation}
|
@center @titlefont{FFprobe Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Synopsis
|
@chapter Synopsis
|
||||||
|
|
||||||
The generic syntax is:
|
The generic syntax is:
|
||||||
|
@ -2,11 +2,13 @@
|
|||||||
|
|
||||||
@settitle FFserver Documentation
|
@settitle FFserver Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{FFserver Documentation}
|
@center @titlefont{FFserver Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Synopsys
|
@chapter Synopsys
|
||||||
|
|
||||||
The generic syntax is:
|
The generic syntax is:
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
@settitle General Documentation
|
@settitle General Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{General Documentation}
|
@center @titlefont{General Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter external libraries
|
@chapter external libraries
|
||||||
|
|
||||||
|
@ -2,11 +2,12 @@
|
|||||||
|
|
||||||
@settitle Libavfilter Documentation
|
@settitle Libavfilter Documentation
|
||||||
@titlepage
|
@titlepage
|
||||||
@sp 7
|
|
||||||
@center @titlefont{Libavfilter Documentation}
|
@center @titlefont{Libavfilter Documentation}
|
||||||
@sp 3
|
|
||||||
@end titlepage
|
@end titlepage
|
||||||
|
|
||||||
|
@top
|
||||||
|
|
||||||
|
@contents
|
||||||
|
|
||||||
@chapter Introduction
|
@chapter Introduction
|
||||||
|
|
||||||
|
24
doc/t2h.init
Normal file
24
doc/t2h.init
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
# no horiz rules between sections
|
||||||
|
$end_section = \&FFMPEG_end_section;
|
||||||
|
sub FFMPEG_end_section($$)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
$print_page_foot = \&FFMPEG_print_page_foot;
|
||||||
|
sub FFMPEG_print_page_foot($$)
|
||||||
|
{
|
||||||
|
my $fh = shift;
|
||||||
|
print $fh "$SMALL_RULE\n";
|
||||||
|
T2H_DEFAULT_print_page_foot($fh);
|
||||||
|
}
|
||||||
|
|
||||||
|
# no navigation elements
|
||||||
|
$SECTION_NAVIGATION = 0;
|
||||||
|
# the same for texi2html 5.0
|
||||||
|
$HEADERS = 0;
|
||||||
|
|
||||||
|
# TOC and Chapter headings link
|
||||||
|
$TOC_LINKS = 1;
|
||||||
|
|
||||||
|
# print the TOC where @contents is used
|
||||||
|
$INLINE_CONTENTS = 1;
|
Loading…
Reference in New Issue
Block a user