From 94ca0708a2c3151fe7e92f97bb4ebeb65cb029c9 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 21 Feb 2013 19:19:48 -0600 Subject: doc: Support texi2any and texi2html This was tested with texi2html-1.82-5.1.el6.noarch and a locally built texinfo 5.0. These are completely different implementations and require different invocations. The Makefile dependencies appear to work but are likely not perfect at this point. The key point is that the autoconf probe detects which to use and responds accordingly with preference given to texi2any. --- doc/texi2any_init.in | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 doc/texi2any_init.in (limited to 'doc/texi2any_init.in') diff --git a/doc/texi2any_init.in b/doc/texi2any_init.in new file mode 100644 index 0000000000..d70517ea8b --- /dev/null +++ b/doc/texi2any_init.in @@ -0,0 +1,20 @@ +set_from_init_file ('AFTER_BODY_OPEN', +' +RTEMS
+Logo +

RTEMS @VERSION@ On-Line Library

+'); + +texinfo_register_handler('setup', \&add_button); + +my $button_text = 'Directory'; +sub add_button($) +{ + my $self = shift; + foreach my $button_type ('SECTION_BUTTONS', 'CHAPTER_BUTTONS', + 'MISC_BUTTONS', 'TOP_BUTTONS') { + my $buttons = $self->get_conf($button_type); + push @$buttons, \$button_text; + } + return 1; +} -- cgit v1.2.3