Mercurial > hg > kdocs
changeset 40:17389c66eb02
More work on master index skeleton and infrastructure.
author | Rob Landley <rob@landley.net> |
---|---|
date | Tue, 11 Sep 2007 17:12:19 -0500 |
parents | 33e0b133a517 |
children | 4480365c7aef |
files | make/indexsections.py make/make.sh master.idx |
diffstat | 3 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/make/indexsections.py Tue Sep 11 16:12:59 2007 -0500 +++ b/make/indexsections.py Tue Sep 11 17:12:19 2007 -0500 @@ -36,11 +36,13 @@ spans.append("_".join(tag.split())) if sys.argv[1] == "-i": adjust_depth(len(spans)) - sys.stdout.write('<li><a href="#%s">%s</a></li>\n' % (spans[-1],tag)) + sys.stdout.write('%s<li><a href="#%s">%s</a></li>\n' % (" "*len(spans),spans[-1],tag)) else: sys.stdout.write('<h2><a name="%s">%s</a></h2>\n' % (spans[-1],tag)) sys.stdout.write('<%s>%s' % (i[0], i[1])) - if tag[0] == "/span": spans.pop() + elif tag[0] == "/span": spans.pop() + else: + if sys.argv[1] != '-i': sys.stdout.write('<%s>%s' % (i[0], i[1])); line += i[1].count("\n") if sys.argv[1] == "-i": adjust_depth(0)
--- a/make/make.sh Tue Sep 11 16:12:59 2007 -0500 +++ b/make/make.sh Tue Sep 11 17:12:19 2007 -0500 @@ -10,7 +10,7 @@ ( $WEBDIR/make/indexsections.py -i $WEBDIR/master.idx && echo "<hr>" && $WEBDIR/make/indexsections.py $WEBDIR/master.idx -) >> $WEBDIR/master.html || exit 1 +) > $WEBDIR/master.html || exit 1 echo "Update Linux kernel from kernel.org"
--- a/master.idx Tue Sep 11 16:12:59 2007 -0500 +++ b/master.idx Tue Sep 11 17:12:19 2007 -0500 @@ -47,6 +47,7 @@ <a href=http://vger.kernel.org/vger-lists.html#linux-doc>linux-doc</a> mailing list on vger.kernel.org. The cannonical location of the page is <a href=http://kernel.org/doc>here</a>.</p> +</span id="About this index"> </span id="Sources of documentation"> @@ -295,8 +296,3 @@ <span id="Glossary"> </span> - -<p>This page is maintained by Rob Landley <rob@landley.net>, based -on <a href=http://landley.net/hg/kdocs>this mercurial repostiory</a> and -discussed on the linux-doc mailing list on vger.kernel.org. The -cannonical location of the page is <a href=http://kernel.org/doc>here</a>.</p>