File tree Expand file tree Collapse file tree 2 files changed +23
-14
lines changed
src/main/xar-resources/modules Expand file tree Collapse file tree 2 files changed +23
-14
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,13 @@ declare %public function docbook:toc-db5($node as node()) as element(ul) {
85
85
return
86
86
element li {element a {attribute href {'#' || data ($n/@xml:id)}, $n/db5:title/string ()}}})
87
87
else ()
88
- }
88
+ },
89
+ element button { attribute class {'btn btn-outline-primary btn-sm btn-block' },
90
+ element a {
91
+ attribute href {'https://github.com/eXist-db/documentation/issues/new?title=error on ' || $node//db5:info/db5:title},
92
+ 'Improve this article'
93
+ }
94
+ }
89
95
}
90
96
};
91
97
Original file line number Diff line number Diff line change @@ -85,19 +85,22 @@ declare
85
85
%test:name('ToC rendering' )
86
86
%test:assertTrue
87
87
function tests:toc-inline () {
88
- let $output := <ul class = "toc" >
89
- <li>
90
- <a href = "#main-id" >Title of first main section</a>
91
- <ul>
92
- <li>
93
- <a href = "#sub-id" >Title of first sub-section</a>
94
- </li>
95
- </ul>
96
- </li>
97
- <li>
98
- <a href = "#next-id" >Title of second main section</a>
99
- </li>
100
- </ul>
88
+ let $output := <ul class = "toc" >
89
+ <li>
90
+ <a href = "#main-id" >Title of first main section</a>
91
+ <ul>
92
+ <li>
93
+ <a href = "#sub-id" >Title of first sub-section</a>
94
+ </li>
95
+ </ul>
96
+ </li>
97
+ <li>
98
+ <a href = "#next-id" >Title of second main section</a>
99
+ </li>
100
+ <button class = "btn btn-outline-primary btn-sm btn-block" >
101
+ <a href = "https://github.com/eXist-db/documentation/issues/new?title=error on Document title" >Improve this article</a>
102
+ </button>
103
+ </ul>
101
104
return
102
105
docbook:toc-db5 ($tests:article) eq $output
103
106
};
You can’t perform that action at this time.
0 commit comments