Commit 625334f9 authored by Fred Drake's avatar Fred Drake

Still more magical <link> elements.

parent 4fbf9c8f
...@@ -617,10 +617,17 @@ sub make_head_and_body($$) { ...@@ -617,10 +617,17 @@ sub make_head_and_body($$) {
"<html>\n<head>\n", "<html>\n<head>\n",
($BASE ? "<base href=\"$BASE\">\n" : ''), ($BASE ? "<base href=\"$BASE\">\n" : ''),
"<link rel=\"STYLESHEET\" href=\"$STYLESHEET\" type='text/css'>\n", "<link rel=\"STYLESHEET\" href=\"$STYLESHEET\" type='text/css'>\n",
"<link rel=\"first\" href=\"$FILE.html\">\n",
($FAVORITES_ICON ($FAVORITES_ICON
? ('<link rel="SHORTCUT ICON" href="' . "$FAVORITES_ICON\">\n") ? ('<link rel="SHORTCUT ICON" href="' . "$FAVORITES_ICON\">\n")
: ''), : ''),
($EXTERNAL_UP_LINK
? ('<link rel="start" href="' . "$EXTERNAL_UP_LINK\""
. ($EXTERNAL_UP_TITLE ? " title='$EXTERNAL_UP_TITLE'" : '')
. ">\n")
: ''),
"<link rel=\"first\" href=\"$FILE.html\"",
($t_title ? " title='$t_title'" : ''),
">\n",
($HAVE_TABLE_OF_CONTENTS ($HAVE_TABLE_OF_CONTENTS
? ('<link rel="contents" href="contents.html" title="Contents">' ? ('<link rel="contents" href="contents.html" title="Contents">'
. ($HAVE_GENERAL_INDEX ? "\n" : '')) . ($HAVE_GENERAL_INDEX ? "\n" : ''))
...@@ -633,6 +640,16 @@ sub make_head_and_body($$) { ...@@ -633,6 +640,16 @@ sub make_head_and_body($$) {
# ? '<link rel="index" href="modindex.html" title="Module Index">' # ? '<link rel="index" href="modindex.html" title="Module Index">'
# . "\n" # . "\n"
# : ''), # : ''),
($INFO
# XXX We can do this with the Python tools since the About...
# page always gets copied to about.html, even when we use the
# generated node###.html page names. Won't work with the
# rest of the Python doc tools.
? ("<link rel='last' href='about.html'"
. " title='About this document...'>\n"
. "<link rel='help' href='about.html'"
. " title='About this document...'>\n")
: ''),
$more_links_mark, $more_links_mark,
"\n", "\n",
($CHARSET && $HTML_VERSION ge "2.1" ($CHARSET && $HTML_VERSION ge "2.1"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment