asciidoctor-multipage 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92ae4009df03264cc6ecf2dc5826234151da1125abe9e7cbb01cba9a6f53d08e
4
- data.tar.gz: 855ad21500928a3d166aa360fec6fe2d332c3b4e3efdbddb5f0402c32c8ee4e2
3
+ metadata.gz: 586429962868adbdfa2f14a85ea6438b62b8d33708258e76c33e2ce22b408c05
4
+ data.tar.gz: '09a2a625effa351a139dca939db85e822d1b8ddb5f5b52c79260202c7a6e3137'
5
5
  SHA512:
6
- metadata.gz: 307a0f3299bf032d2e043d0593b7b9ecba1de9958646495986a6c6462e8c47e49a1a5eadff5e3f2160a2bd8d7cd029b4d711cbc183c42dccedd55e238bcc1495
7
- data.tar.gz: 22d1d18fa6e488813cf3836a1d76d085cf216a7f3bc2c5d55aeef8ad9f2d3f8c007f2c4d0896351bbf3d7ba8a8122e40fc7922c15734d1a0dc32a3642b708ea1
6
+ metadata.gz: 6df280fb5bf8a4b23084e25ae5ca4217b06d05b225a05e5f267ccca243f0e762612712e50bbadc3690f98d65159c614c6ffb4bb260f2f91ec203ffe486c758c2
7
+ data.tar.gz: e2f1e882b5a9c2ef2cb8c68805dc64815522003e96acbae4a2d40552fc6f1ab9a3725947420a529af2fa5ac7ebd0bd7177f3ef6263a7b3e13e8636fe07f7619a
@@ -1,3 +1,3 @@
1
1
  module AsciidoctorMultipage
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -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.15
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: 2021-12-07 00:00:00.000000000 Z
11
+ date: 2022-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal