asciidoctor-multipage 0.0.15 → 0.0.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/asciidoctor-multipage/version.rb +1 -1
- data/lib/asciidoctor-multipage.rb +11 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 586429962868adbdfa2f14a85ea6438b62b8d33708258e76c33e2ce22b408c05
|
|
4
|
+
data.tar.gz: '09a2a625effa351a139dca939db85e822d1b8ddb5f5b52c79260202c7a6e3137'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6df280fb5bf8a4b23084e25ae5ca4217b06d05b225a05e5f267ccca243f0e762612712e50bbadc3690f98d65159c614c6ffb4bb260f2f91ec203ffe486c758c2
|
|
7
|
+
data.tar.gz: e2f1e882b5a9c2ef2cb8c68805dc64815522003e96acbae4a2d40552fc6f1ab9a3725947420a529af2fa5ac7ebd0bd7177f3ef6263a7b3e13e8636fe07f7619a
|
|
@@ -158,6 +158,11 @@ class MultipageHtml5Converter < Asciidoctor::Converter::Html5Converter
|
|
|
158
158
|
# This node is the original full document which has not yet been
|
|
159
159
|
# processed; this is the entry point for the extension.
|
|
160
160
|
|
|
161
|
+
# Save a reference to the root document in the converter
|
|
162
|
+
# instance. This will be used to set the @requires_stylesheet
|
|
163
|
+
# variable on the root document in the write method.
|
|
164
|
+
@root_doc = node
|
|
165
|
+
|
|
161
166
|
# Turn off extensions to avoid running them twice.
|
|
162
167
|
# FIXME: DocinfoProcessor, InlineMacroProcessor, and Postprocessor
|
|
163
168
|
# extensions should be retained. Is this possible with the API?
|
|
@@ -594,6 +599,12 @@ class MultipageHtml5Converter < Asciidoctor::Converter::Html5Converter
|
|
|
594
599
|
::File.open(outfile, 'w') do |f|
|
|
595
600
|
f.write(doc.convert)
|
|
596
601
|
end
|
|
602
|
+
if (doc.syntax_highlighter and
|
|
603
|
+
doc.syntax_highlighter.write_stylesheet? doc)
|
|
604
|
+
root_doc = doc.mp_root.instance_variable_get(:@root_doc)
|
|
605
|
+
root_doc.syntax_highlighter.instance_variable_set(
|
|
606
|
+
:@requires_stylesheet, true)
|
|
607
|
+
end
|
|
597
608
|
end
|
|
598
609
|
end
|
|
599
610
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asciidoctor-multipage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Owen T. Heisler
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-06-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: appraisal
|