metanorma-plugin-lutaml 0.7.70 → 0.7.71

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e0d3eeed259899046e507228c9896e3956c85441ba7737bc23ba7fec74b5a361
4
- data.tar.gz: 835d53f863ffd1b13e1e1acbb33d0275e9700f0537d87367b90a55644de90b23
3
+ metadata.gz: 6603da3f34c5507740381e3b0a8bddba42aca769f703135ee2c399463a856dac
4
+ data.tar.gz: 541459302ba0085e21cb4b24fa5d513f1005d1ce74a288d06f83f3cbe2cc421c
5
5
  SHA512:
6
- metadata.gz: 9c180340bb5cffc26abfac8d900aa38e170a3d72ae14f0d0cdc33c311f305662d3ef02ab6f7ca31890a86991392834be54598761598e213b2b44945eb3985a9f
7
- data.tar.gz: '0549ff2f14b27184bee416da749d8949442d63eb3644ec9cded55934d9fc16aaa947fd6a0a8ca6c070f06fa18d25718ee4f23c77b45615defdcad46e37406725'
6
+ metadata.gz: e3eb2153ce12811e8df70e9ace1a60019c17e4f576d4a6a5e12aebe3418411b4f7ba9eabb663d93f4da69e87cd85af8ee0310b2a42d2c03f5791153ce8a4a3a2
7
+ data.tar.gz: b607a363a06fc9f8ba980bc56ef4490431ea65d09966faeb77d7cddb1ad6c750959b55349d54c0b958a9852c56b366e5c0d1978b56e13a34e9206690aa27a15b
@@ -164,33 +164,19 @@ module Metanorma
164
164
  @model.schemas.each do |schema|
165
165
  ExpressRemarkAdapter.for(schema).decorate_remarks(options)
166
166
  end
167
- apply_document_imagesdir(options["document"])
168
167
  end
169
168
 
170
169
  private
171
170
 
172
- # A per-schema document (one schema rendered per document —
173
- # suma's SchemaTemplate::Document) takes a document-level
174
- # imagesdir: every schema in the repository resolves its images
175
- # against the same directory, so templates that print the raw
176
- # formatted_hyperlinked_adoc keep working without path
177
- # rewriting. An imagesdir the author (or an earlier block) set
178
- # is respected; a multi-directory repository cannot take one
179
- # document-level value — its schemas carry the attribute entries
180
- # in their listing output instead.
181
- def apply_document_imagesdir(document)
182
- return unless document
183
-
184
- dirs = @model.schemas.filter_map do |schema|
185
- next unless schema.respond_to?(:listing_imagesdir)
186
-
187
- schema.listing_imagesdir
188
- end.uniq
189
- return unless dirs.one?
190
- return if document.attributes["imagesdir"]
191
-
192
- document.attributes["imagesdir"] = dirs.first
193
- end
171
+ # NO document-level imagesdir here: metanorma's figure
172
+ # absolutization joins document.attributes["imagesdir"] with
173
+ # svgmap-synthesized targets that are ALREADY docfile-relative
174
+ # (the express-g assembly writes `../../schemas/...`), doubling
175
+ # the directory segments and failing the image-existence check
176
+ # (suma's dummy-collection repro). The remark content is served
177
+ # by the listing-scoped attribute entries emitted around each
178
+ # source block, which only affect asciidoctor resolution inside
179
+ # the listing.
194
180
  end
195
181
 
196
182
  class CachedRepoAdapter < Base
@@ -1,7 +1,7 @@
1
1
  module Metanorma
2
2
  module Plugin
3
3
  module Lutaml
4
- VERSION = "0.7.70".freeze
4
+ VERSION = "0.7.71".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-plugin-lutaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.70
4
+ version: 0.7.71
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.