Mercurial > hg > nginx-site
comparison xsls/link.xsls @ 3037:c1d078b13527
Fixed dirindex and varindex for top level modules.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Thu, 01 Feb 2024 15:25:51 +0400 |
parents | 8e8a6a7cff2b |
children |
comparison
equal
deleted
inserted
replaced
3036:2ff222c4ff8a | 3037:c1d078b13527 |
---|---|
48 X:template = "links" { | 48 X:template = "links" { |
49 X:for-each "link", X:sort "@id" { | 49 X:for-each "link", X:sort "@id" { |
50 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> | 50 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!{@id}</a> |
51 X:if "count(../link[@id = current()/@id]) > 1" { | 51 X:if "count(../link[@id = current()/@id]) > 1" { |
52 X:text{ (} | 52 X:text{ (} |
53 !{substring-before(substring-after(@doc, '/'), '.xml')} | 53 X:if "contains(@doc, '/')" { |
54 !{substring-before(substring-after(@doc, '/'), '.xml')} | |
55 } else { | |
56 !{substring-before(@doc, '.xml')} | |
57 } | |
54 X:text{)} | 58 X:text{)} |
55 } | 59 } |
56 <br/> | 60 <br/> |
57 } | 61 } |
58 } | 62 } |
60 X:template = "varlinks" { | 64 X:template = "varlinks" { |
61 X:for-each "link", X:sort "@id" { | 65 X:for-each "link", X:sort "@id" { |
62 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!!;</a> | 66 <a href="{substring-before(@doc, '.xml')}.html#{@id}">!!;</a> |
63 X:if "count(../link[@id = current()/@id and @doc != current()/@doc]) > 0" { | 67 X:if "count(../link[@id = current()/@id and @doc != current()/@doc]) > 0" { |
64 X:text{ (} | 68 X:text{ (} |
65 !{substring-before(substring-after(@doc, '/'), '.xml')} | 69 X:if "contains(@doc, '/')" { |
70 !{substring-before(substring-after(@doc, '/'), '.xml')} | |
71 } else { | |
72 !{substring-before(@doc, '.xml')} | |
73 } | |
66 X:text{)} | 74 X:text{)} |
67 } | 75 } |
68 <br/> | 76 <br/> |
69 } | 77 } |
70 } | 78 } |