Skip to contentSkip to conversation

Documentation: Create qemu-doc.html with makeinfo instead of html2texi

RFC New Stefan Weil 3 participants 5 messages Feb 12, 2010 – Mar 7, 2010 Kbuild

lore
Share & tools
lore
#0 lore raw

Hello,

today, html documentation is created using texi2html.

makeinfo can also create html output which looks different. I think it looks better, but try it yourself:

texi2html (old):
http://wiki.qemu.org/download/qemu-doc.html

makeinfo (new):
http://www.weilnetz.de/qemu-doc.html (single file)
http://www.weilnetz.de/qemu-doc/ (split in many files)

The new qemu-doc.html is smaller than the old one, so it loads a little faster.

If the new format is accepted, I can provide a patch.

Regards,
Stefan Weil

#1 lore raw
Quoted 10 lines · Stefan Weil

Hello,

today, html documentation is created using texi2html.

makeinfo can also create html output which looks different. I think it looks better, but try it yourself:

texi2html (old):
http://wiki.qemu.org/download/qemu-doc.html

Quoted 9 lines

makeinfo (new):
http://www.weilnetz.de/qemu-doc.html (single file)
http://www.weilnetz.de/qemu-doc/ (split in many files)

The new qemu-doc.html is smaller than the old one, so it loads a little faster.

If the new format is accepted, I can provide a patch.

I agree the makeinfo single file version looks better, but it would be nice to have the opinion of other developers.

Signature · 2 lines
Aurelien Jarno                          GPG: 1024D/F1BCDB73
[email protected]                 http://www.aurel32.net
#2 lore raw

PATCH 1/1 Documentation: Modify rule for html output (better looking output format)

To create html output from texi input, texi2html was used. Output from makeinfo looks cleaner, so replace the old rule and use makeinfo now.

For those who want to use their own variant of html output, the macros MAKEINFO and MAKEINFOFLAGS allow customisation. Option "-I ." is not needed (the current directory is searched by default), so remove it.

Please note that the build requirements changed, too:
makeinfo is required for doc builds. texi2html is no longer used.

---
 Makefile  |    7 +++++--
 configure |    2 +-
 2 files changed, 6 insertions(+), 3 deletions(-)
Makefile +5 -2
index 1f6c3ea..bf2cef2 100644
@@ -230,15 +230,18 @@ cscope:
 	cscope -b
 
 # documentation
+MAKEINFO=makeinfo
+MAKEINFOFLAGS=--no-headers --no-split --number-sections
 TEXIFLAG=$(if $(V),,--quiet)
 %.dvi: %.texi
 	$(call quiet-command,texi2dvi $(TEXIFLAG) -I . $<,"  GEN   $@")
 
 %.html: %.texi
-	$(call quiet-command,texi2html -I=. -monolithic -number $<,"  GEN   $@")
+	$(call quiet-command,$(MAKEINFO) $(MAKEINFOFLAGS) --html $< -o $@, \
+	"  GEN   $@")
 
 %.info: %.texi
-	$(call quiet-command,makeinfo -I . $< -o $@,"  GEN   $@")
+	$(call quiet-command,$(MAKEINFO) $< -o $@,"  GEN   $@")
 
 %.pdf: %.texi
 	$(call quiet-command,texi2pdf $(TEXIFLAG) -I . $<,"  GEN   $@")
configure +1 -1
index b4db650..19eb620 100755
@@ -1759,7 +1759,7 @@ fi
 
 # Check if tools are available to build documentation.
 if test "$docs" != "no" ; then
-  if has texi2html && has pod2man; then
+  if has makeinfo && has pod2man; then
     docs=yes
   else
     if test "$docs" = "yes" ; then
Signature · 1 line
1.7.0
#3 lore raw
In reply to Aurelien Jarno
Quoted 15 lines · Aurelien Jarno
Quoted 14 lines · Stefan Weil

Hello,

today, html documentation is created using texi2html.

makeinfo can also create html output which looks different. I think it looks better, but try it yourself:

texi2html (old):
http://wiki.qemu.org/download/qemu-doc.html

makeinfo (new):
http://www.weilnetz.de/qemu-doc.html (single file)
http://www.weilnetz.de/qemu-doc/ (split in many files)

Quoted 9 lines
Quoted 5 lines

The new qemu-doc.html is smaller than the old one, so it loads a little faster.

If the new format is accepted, I can provide a patch.

I agree the makeinfo single file version looks better, but it would be nice to have the opinion of other developers.

Antony Liguori agrees, too.
So the minimum of 3 positive votes was reached, and I sent the patch :-)

Regards,
Stefan

#4 lore raw

Hello,

Am 04.03.2010 um 22:25 schrieb Stefan Weil:

Quoted 14 lines
Quoted 13 lines · Aurelien Jarno
Quoted 12 lines · Stefan Weil

today, html documentation is created using texi2html.

makeinfo can also create html output which looks different. I think it looks better, but try it yourself:

texi2html (old):
http://wiki.qemu.org/download/qemu-doc.html

makeinfo (new):
http://www.weilnetz.de/qemu-doc.html (single file)
http://www.weilnetz.de/qemu-doc/ (split in many files)

Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

The new qemu-doc.html is smaller than the old one, so it loads a little faster.

If the new format is accepted, I can provide a patch.

I agree the makeinfo single file version looks better, but it would be nice to have the opinion of other developers.

I've recently been seeing texi2html problems on OSX:

GEN qemu-doc.html
Unknown open() mode ':encoding(utf-8-strict)' at /usr/bin/texi2html line 11111.
make: *** [qemu-doc.html] Error 2

Short of time, I didn't find a quick solution (no mention of utf-8-strict anywhere?) and just disabled it. If makeinfo improves that, I'd certainly welcome it.

Andreas

Quoted 5 lines

Antony Liguori agrees, too.
So the minimum of 3 positive votes was reached, and I sent the patch :-)

Regards,
Stefan