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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6603da3f34c5507740381e3b0a8bddba42aca769f703135ee2c399463a856dac
|
|
4
|
+
data.tar.gz: 541459302ba0085e21cb4b24fa5d513f1005d1ce74a288d06f83f3cbe2cc421c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
#
|
|
173
|
-
#
|
|
174
|
-
#
|
|
175
|
-
#
|
|
176
|
-
#
|
|
177
|
-
#
|
|
178
|
-
#
|
|
179
|
-
#
|
|
180
|
-
#
|
|
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
|