metanorma-itu 2.8.12 → 2.8.14

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: 9f55df171f32b8aa5c0e6712c2eaf872a5798004f9fec44289f5620eb5944bfa
4
- data.tar.gz: e06cf021857a55ff7596cab2222a84571e8e9458487043dc9f8ad5edaf0654ad
3
+ metadata.gz: 6bde0efdd7763cdf181075e4c046f2efe868e764395b6fde491083c3548acff3
4
+ data.tar.gz: 43d07a4790c0bae983de907410ba191f1cfbcaad23e4ae2807eeb761ef2039d8
5
5
  SHA512:
6
- metadata.gz: 4fae0e7fc149b3bb469be04cea54ce61d89da0ffcf2314764505392340f934a386b55a23b681a11143589a10ad4252c9469414e74d7b3dffd79b463b76488b3b
7
- data.tar.gz: 6ebc95406a8a9b70cf268427065468641463fd6f45eecb1ff216fb85d1da046f89b4f9a7b13ffe7a64adc6969cae0c47ed861fd25a2bb4f04b769369c907ef51
6
+ metadata.gz: c82d7ed8cd3954a1f2cd628ab3bd9b197c2a4ce812d6bc4c30eb0f4d5ec021afe986187975abf68ff59106ab050724d5d35f951d4e8073dbf0e4ac8e41232247
7
+ data.tar.gz: 6ba8b94f4f0e6ec59b43fe930acb6b02c7f6bc71b04678887da8a349af004b59758489e0e5535306c5a7df06644e88c6974212c04744424224c56d50c89c70f0
data/.rubocop.yml CHANGED
@@ -2,6 +2,15 @@
2
2
  # See https://github.com/metanorma/cimas
3
3
  inherit_from:
4
4
  - https://raw.githubusercontent.com/riboseinc/oss-guides/main/ci/rubocop.yml
5
+ # .rubocop_todo.yml MUST be the last entry. inherit_from is last-wins:
6
+ # if listed before oss-guides, the shared config's stricter Metrics/
7
+ # (MethodLength, BlockLength, etc.) rules override the todo's per-file
8
+ # grandfathering, and the todo becomes inert on those cops. Empirically
9
+ # verified on suma 2026-07-06: with todo listed first, 34 Metrics/* offenses
10
+ # remained; moved last, cleared. Every gem in the metanorma-org fleet
11
+ # already ships a `.rubocop_todo.yml` on its live tree (audited 2026-07-06,
12
+ # 54/54 have it), so this reference is safe to emit unconditionally.
13
+ - .rubocop_todo.yml
5
14
 
6
15
  # Rubocop plugins enabled centrally so every metanorma-org gem picks them up
7
16
  # on cimas sync — best practice belongs at the shared-template layer, not
@@ -105,6 +105,14 @@ module IsoDoc
105
105
  n = dlist.at(ns("./colgroup")) and ret = "#{n.remove.to_xml}#{ret}"
106
106
  n = dlist.at(ns("./fmt-name")) and ret = "#{n.remove.to_xml}#{ret}"
107
107
  dlist.name = "table"
108
+ # GOTCHA (metanorma/iso-10303#712): ITU renders definition lists as
109
+ # tables, and this hard-sets class="dl", OVERWRITING any author custom
110
+ # @class ([class="..."]). So the block-@class support added in
111
+ # metanorma-standoc#1197 does NOT reach dl in ITU. Left as-is
112
+ # deliberately (class="dl" is the intentional dl-as-table marker); making
113
+ # it additive would re-enter the dl->table / MsoISOTable-border
114
+ # interaction. If an author class is ever wanted here, merge instead of
115
+ # overwrite: ["dl", dlist["class"]].compact.join(" ").
108
116
  dlist["class"] = "dl"
109
117
  dlist.children.first.previous = ret
110
118
  end
@@ -130,6 +130,10 @@ dl dd {
130
130
  grid-column-start: 2;
131
131
  }
132
132
 
133
+ dl:has(dt .stem) {
134
+ grid-template-columns: fit-content(8em) auto;
135
+ }
136
+
133
137
  b, strong {
134
138
  font-weight: bold;
135
139
  }
@@ -143,6 +147,11 @@ a.FootnoteRef, span.FootnoteRef {
143
147
  vertical-align: super;
144
148
  }
145
149
 
150
+ a.TableFootnoteRef, a.FootnoteRef, a.footnote-number,
151
+ sup a, a:has(> sup) {
152
+ vertical-align: baseline;
153
+ }
154
+
146
155
  .addition {
147
156
  color: blue;
148
157
  }
@@ -130,6 +130,10 @@ dl dd {
130
130
  grid-column-start: 2;
131
131
  }
132
132
 
133
+ dl:has(dt .stem) {
134
+ grid-template-columns: fit-content(8em) auto;
135
+ }
136
+
133
137
  b, strong {
134
138
  font-weight: bold;
135
139
  }
@@ -143,6 +147,11 @@ a.FootnoteRef, span.FootnoteRef {
143
147
  vertical-align: super;
144
148
  }
145
149
 
150
+ a.TableFootnoteRef, a.FootnoteRef, a.footnote-number,
151
+ sup a, a:has(> sup) {
152
+ vertical-align: baseline;
153
+ }
154
+
146
155
  .addition {
147
156
  color: blue;
148
157
  }