Skip to content

Commit d2259a0

Browse files
committed
test
1 parent b00a51d commit d2259a0

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

resources/asciidoctor/lib/chunker/extension.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
require_relative 'find_related'
1010
require_relative 'footnotes'
1111
require_relative 'nav'
12+
require_relative 'url_to_v3'
1213

1314
##
1415
# HTML5 converter that chunks like docbook.
@@ -49,6 +50,7 @@ def convert_document(doc)
4950
)
5051
doc.attributes['next_section'] = find_next_in doc, 0
5152
add_nav doc
53+
add_url_to_v3 doc
5254
yield
5355
end
5456

@@ -81,6 +83,11 @@ def add_nav(doc)
8183
doc.blocks.append nav.footer
8284
end
8385

86+
def add_url_to_v3(doc)
87+
url_to_v3 = UrlToV3.new doc
88+
doc.blocks.insert 0, url_to_v3.header
89+
end
90+
8491
def correct_xref(node)
8592
refid = node.attributes['refid']
8693
return unless (ref = node.document.catalog[:refs][refid])
@@ -108,6 +115,8 @@ def form_section_into_page(doc, section, html)
108115

109116
def add_subdoc_sections(doc, subdoc, html)
110117
nav = Nav.new subdoc
118+
url_to_v3 = UrlToV3.new subdoc
119+
subdoc << url_to_v3.header
111120
subdoc << nav.header
112121
subdoc << Asciidoctor::Block.new(subdoc, :pass, source: html)
113122
subdoc << footnotes(doc, subdoc) if doc.footnotes?

template/template.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,6 @@ module.exports = templateSource => {
104104
const raw = await Gatherer('raw', rawItr);
105105
await raw.dump("<head>");
106106
yield* raw.gather("</head>");
107-
yield* template.gather("<!-- DOCS CURRENT -->");
108-
yield `<div id="custom-content">Dest path: ${destPath}</div>`;
109107
yield* template.gather("<!-- DOCS LANG -->");
110108
yield `lang="${lang}"`;
111109
yield* template.gather("<!-- DOCS BODY -->");

0 commit comments

Comments
 (0)