metanorma-plugin-lutaml 0.7.78 → 0.7.79
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: '028325b5abc812f039d2f573d4538c521a2b6742ffedf04af46914231fa8629e'
|
|
4
|
+
data.tar.gz: 43245d0f625aa5aa618d1afce0bf960275a7e30d0a68433029404249ea53d84d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b2af4244a3254697ec586878cfb0aac77216c3318e145879e85379a26f7db64a38d2c4f2c09c84b000302a24ab210d3ecbd7d1a3661233435251b0b0ed219420
|
|
7
|
+
data.tar.gz: 98a7e4542de80069ea995186fe64ca8810d784eeb932ede2514e999740e70e765269f0e76fe858e0a6d57bb1c005273b50280f40af45d4fc7242e836660a9b04
|
|
@@ -148,20 +148,16 @@ module Metanorma
|
|
|
148
148
|
# directory as the document resolves it,
|
|
149
149
|
# ExpressRemarkAdapter.schema_imagesdir).
|
|
150
150
|
class TargetResolver
|
|
151
|
-
# Asciidoctor's default imagesdir for a document that sets
|
|
152
|
-
# none: bare image targets resolve against "images" under the
|
|
153
|
-
# docfile directory.
|
|
154
|
-
DEFAULT_IMAGESDIR = "images".freeze
|
|
155
|
-
|
|
156
151
|
def initialize(docfile, imagesdir, schema_directory)
|
|
157
152
|
docdir = File.dirname(File.expand_path(docfile.to_s))
|
|
158
153
|
@docdir = docdir
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
154
|
+
# Asciidoctor's default imagesdir is empty: a document that
|
|
155
|
+
# sets none resolves every bare image target against the
|
|
156
|
+
# docfile directory itself, and an explicit `:!imagesdir:`
|
|
157
|
+
# unset behaves identically. `File.expand_path` with an empty
|
|
158
|
+
# base returns the docdir, so both cases stage at the exact
|
|
159
|
+
# spot the bare target resolves to.
|
|
160
|
+
@imagesdir_directory = File.expand_path(imagesdir.to_s, docdir)
|
|
165
161
|
@schema_directory = schema_directory
|
|
166
162
|
@errors = []
|
|
167
163
|
end
|