From 2b5171b2c43c2770bdcc6b98847d3b4facf8e0e6 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Tue, 29 Nov 2011 16:23:27 +0000 Subject: docs: improve index.html generation Include hypercall documentation, fixing link generation for top level links to use the INDEX. Allow subsection links to be renamedi in the INDEX too. Strip .txt suffixes as well as .html ones by moving the regex to the right place instead of placing the literal text "(?:html|txt)" into the backlink to the top level page. (oops) Signed-off-by: Ian Campbell Committed-by: Ian Jackson --- docs/gen-html-index | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'docs/gen-html-index') diff --git a/docs/gen-html-index b/docs/gen-html-index index 06d7f62edb..0ce06601bd 100644 --- a/docs/gen-html-index +++ b/docs/gen-html-index @@ -45,7 +45,7 @@ sub make_page ($$$) { } else { - $h1 = "Xen Documentation - $title"; + $h1 = "Xen Documentation - $title"; $title = "Xen Documentation - $title"; } $o .= <${od}/index.html\n"; + $top .= make_link("$od/index.html", 0); } else { my $links = make_links($od,0,@d); + my $secttitle = make_linktext($od); $top .= <$od +
  • $secttitle
    • $links
    @@ -124,12 +125,12 @@ END $links = make_links($od,1,@d); my $idx = ''; $idx .= <$od +
  • $secttitle
    • $links
    END - make_page("$outdir/$od/index.html", $od, $idx); + make_page("$outdir/$od/index.html", $secttitle, $idx); } } -- cgit v1.2.3