projects
/
nobug
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7c8aac
)
pipadoc: asciidoc, add INDEX only entry
author
Christian Thaeter
<ct@pipapo.org>
Thu, 3 Sep 2009 19:02:13 +0000
(21:02 +0200)
committer
Christian Thaeter
<ct@pipapo.org>
Fri, 4 Sep 2009 04:32:04 +0000
(06:32 +0200)
doc/asciidoc.pawk
patch
|
blob
|
history
diff --git
a/doc/asciidoc.pawk
b/doc/asciidoc.pawk
index
0029d64
..
094d9ba
100644
(file)
--- a/
doc/asciidoc.pawk
+++ b/
doc/asciidoc.pawk
@@
-56,3
+56,12
@@
match($0, com"(.*) HEAD([^ ]+) (.*); *(.*); *(.*)", p) {
next
}
+
+# Create an asciidoc index and anchor
+# Sec Title Index Explanation
+match($0, com"(.*) INDEX (.*); (.*); (.*)", p) {
+ append("index", tolower(p[3]), "xref:"p[3]"["p[2]"]:: "p[4])
+ append(p[1],"","[["p[3]"]]")
+ next
+}
+