metanorma-release 0.2.23 → 0.2.24
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/metanorma/release/site.rb +10 -0
- data/lib/metanorma/release/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c7f9813b66ba4758c313c87068b288716fc416939082ab46b42129d3e37d56e0
|
|
4
|
+
data.tar.gz: 13b6eb3a4962044a5fe38f3534c20446be4cfe22217c2f5981c16eb9d3436be9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 355507435346c8ac64f0cce74c86882a130e0b690b4671880afc00202617702788703b3d3dc81424cb5ddca7ceb465b309b12f667eb857cfad0b52b67d07897d
|
|
7
|
+
data.tar.gz: b4b549e2d579daa2f8aa9e669ced0bbe4e4660848ba48273866e21be2f367c448f647645370ea0286c8347d94bd80c37417f775d80264051eaef7545ceac9adb
|
|
@@ -112,6 +112,16 @@ module Metanorma
|
|
|
112
112
|
hash["has_pdf"] = formats.include?("pdf")
|
|
113
113
|
hash["has_xml"] = formats.include?("xml")
|
|
114
114
|
hash["has_rxl"] = formats.include?("rxl")
|
|
115
|
+
|
|
116
|
+
files = hash["files"]
|
|
117
|
+
html_file = files.find { |f| f["format"] == "html" }
|
|
118
|
+
hash["html_path"] = html_file["path"] if html_file
|
|
119
|
+
pdf_file = files.find { |f| f["format"] == "pdf" }
|
|
120
|
+
hash["pdf_path"] = pdf_file["path"] if pdf_file
|
|
121
|
+
xml_file = files.find { |f| f["format"] == "xml" }
|
|
122
|
+
hash["xml_path"] = xml_file["path"] if xml_file
|
|
123
|
+
rxl_file = files.find { |f| f["format"] == "rxl" }
|
|
124
|
+
hash["rxl_path"] = rxl_file["path"] if rxl_file
|
|
115
125
|
end
|
|
116
126
|
|
|
117
127
|
def add_display_category(hash, doctype)
|