metanorma-csand 1.0.8 → 1.0.9

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aaa18ba2049c946b9db17988b63c4137cf3db235aedaad050dad6dad2f31e47e
4
- data.tar.gz: f2af1a2be2115d40f09a959e6a2822ce7f2ba2c3c68a447971e5577dfeec65a5
3
+ metadata.gz: 1e8a1ab596373e8581fcbbf252f6f18e64934ee2b0cafd6b2929b624796aec21
4
+ data.tar.gz: 0ab13958aa62765e983f3c839e75e0fdb3e461f4bc205f73b1ecb5518ee56bdf
5
5
  SHA512:
6
- metadata.gz: 52f3835f9c4adaff9a3490c79b00b74493191fde0445df02e22ea2dc1ce40e072486a49b9d617b26cd707bf23fff1d500cd3c5fc1cadea7d24a6b52475178181
7
- data.tar.gz: 7ee7a3824c0ead9b0cde7e7337d3623ed6759a37de33f3721fb804988f37bded40fe7661b7e5c2f21dbc5dd790e1ba4a514bef7ac6910a7fcd8a1c050dc38547
6
+ metadata.gz: '083563d7bdab6ae0fe1a6d756d1a92225db33180d8658616dd956d358c2690c9a0a4f861e64d69b2e93b5f137ab7974a883e1c16c39e96d3fc48979595da5804'
7
+ data.tar.gz: ff9fc752a8f7461d8c69617549c5e7459b1997bb4408f06635936a019c4897f58d2e39c341801edd8ce1880fb1ad303387e433d6358b5d4c9096677a3c773f61
@@ -99,19 +99,17 @@ DocBook document authoring tool). Asciidoctor has built-in capability to output
99
99
  Text, DocBook and HTML; so it can be used to preview the file as it is being
100
100
  authored.
101
101
 
102
- Note that in order to generate HTML preview output close to what is intended
103
- in the CSAND standard, the Asciidoc
104
- document includes a fair amount of formatting instructions (e.g. disabling
105
- section numbering where appropriate, the titling of Appendixes as Annexes), as
106
- well as CSAND boilerplate text, and predefined section headers (sections are
107
- recognised by fixed titles such as `Normative References`). Authoring CSAND
108
- standards in this fashion assumes that users will be populating an Asciidoc
109
- template, and not removing needed formatting instructions.
102
+ Generating documents via a document model substantially automated formatting
103
+ associated with the document, including automating numbering of headings, figures,
104
+ tables etc, and automatically generating references and citations.
110
105
 
111
106
  == Document Attributes
112
107
 
108
+ === Common attributes
109
+
113
110
  The gem relies on Asciidoctor document attributes to provide necessary
114
- metadata about the document. These include:
111
+ metadata about the document. The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
112
+ gem documents the Asciidoctor document attributes common to all metanorma gems. These include:
115
113
 
116
114
  `:edition:`:: The document edition
117
115
 
@@ -144,7 +142,11 @@ guidance, proposal, standard, report, whitepaper, charter, policy, glossary, cas
144
142
  The attribute `:draft:`, if present, includes review notes in the XML output;
145
143
  these are otherwise suppressed.
146
144
 
147
- == AsciiCSAND features not also present in AsciiISO
145
+ == Asciidoctor features specific to CSAND
146
+
147
+ The https://github.com/riboseinc/metanorma-standoc[metanorma-standoc]
148
+ gem documents the customisations of Asciidoctor markup common to all metanorma gems.
149
+ The following markup is specific to this gem:
148
150
 
149
151
  * `+[keyword]#...#+`: encodes keywords, such as "MUST", "MUST NOT". (Encoded as
150
152
  `<span class="keyword">...</span>`.
@@ -744,6 +744,9 @@
744
744
  </define>
745
745
  <define name="preface">
746
746
  <element name="preface">
747
+ <optional>
748
+ <ref name="preface_abstract"/>
749
+ </optional>
747
750
  <ref name="foreword"/>
748
751
  <optional>
749
752
  <ref name="introduction"/>
@@ -811,6 +814,11 @@
811
814
  </optional>
812
815
  </element>
813
816
  </define>
817
+ <define name="preface_abstract">
818
+ <element name="abstract">
819
+ <ref name="Basic-Section"/>
820
+ </element>
821
+ </define>
814
822
  <define name="foreword">
815
823
  <element name="foreword">
816
824
  <ref name="Basic-Section"/>
@@ -40,10 +40,10 @@
40
40
  </div>
41
41
 
42
42
  <div class="coverpage-stage-block" >
43
- <span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{{ status }}</span>
43
+ <span class="coverpage-maturity" id="{{ status | replace: ' ', '-' | downcase }}">{% if unpublished %}{{ status }}{% endif %}</span>
44
44
  </div>
45
45
 
46
- {% if status != "Published" and status != "Withdrawn" %}
46
+ {% if unpublished %}
47
47
  <div class="coverpage-warning">
48
48
  <span class="title">Warning for Drafts</span>
49
49
 
@@ -40,6 +40,10 @@ module IsoDoc
40
40
  ""
41
41
  end
42
42
  end
43
+
44
+ def unpublished(status)
45
+ %w(published withdrawn).include? status.downcase
46
+ end
43
47
  end
44
48
  end
45
49
  end
@@ -1,5 +1,5 @@
1
1
  module Metanorma
2
2
  module Csand
3
- VERSION = "1.0.8"
3
+ VERSION = "1.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: metanorma-csand
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.8
4
+ version: 1.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: asciidoctor