metanorma-cc 2.0.8 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/docs/quickstart.adoc DELETED
@@ -1,368 +0,0 @@
1
- = Quickstart Guide for Metanorma-CSD
2
-
3
- Start using Metanorma-CSD to author CalConnect docs in these steps:
4
-
5
- . Get Metanorma running on your machine
6
- . Fetch and compile an example Metanorma-CSD document
7
- . Modify the document to fit your goals while keeping it valid AsciiCSD
8
-
9
- This guide assumes proficiency with the terminal,
10
- and uses the Docker option of running Metanorma
11
- (there’re other
12
- https://www.metanorma.com/overview/getting-started/[options of installing Metanorma],
13
- too).
14
-
15
-
16
- == Get Metanorma running on your machine
17
-
18
- Assuming you have Docker installed, it’s as easy as:
19
-
20
- [source,console]
21
- --
22
- docker pull metanorma/metanorma
23
- --
24
-
25
-
26
- == Fetch and compile an example Metanorma-CSD document
27
-
28
- We’re going to use the vCard Format Specification sample document here.
29
- Clone the Metanorma-CSD repository and change into the directory with the example:
30
-
31
- [source,console]
32
- --
33
- git clone https://github.com/metanorma/metanorma-csd.git
34
- cd /spec/examples/
35
- --
36
-
37
- To compile the document, run the Docker container as follows:
38
-
39
- [source,console]
40
- --
41
- docker run -v "$(pwd)":/metanorma/ -w /metanorma metanorma/metanorma metanorma -t csd -x xml,html,pdf,doc rfc6350.adoc
42
- --
43
-
44
- NOTE: If you use Metanorma-CLI instead of Docker,
45
- http://metanorma.com:4001/software/metanorma-cli/docs/usage/[see how to use the metanorma executable to compile documnts].
46
-
47
-
48
- == Write valid AsciiCSD
49
-
50
- A Metanorma-CSD is a file in AsciiDoc format with certain extensions
51
- specific to Metanorma as a whole and Metanorma-CSD in particular.
52
- (We call the format AsciiCSD for short.)
53
-
54
-
55
- === AsciiDoc basics
56
-
57
- NOTE: Skip this section if you’re already familiar with AsciiDoc syntax.
58
-
59
- ==== Inline formatting
60
-
61
- [source,asciidoc]
62
- --
63
- *bold emphasis*, _italic emphasis_, `monospace / code snippet`
64
- "`Typographic double quotes`", '`typographic single quotes`'
65
- Subscript: H~2~O; superscript: E=mc^2^
66
- --
67
-
68
- ==== Sections, anchors and references
69
-
70
- [source,asciidoc]
71
- --
72
- == Section 1
73
-
74
- Content (see <<anchor>>)
75
-
76
- == Section 2
77
-
78
- === Section 2.1
79
-
80
- [[anchor]]
81
- ==== Section 2.2
82
-
83
- Content 2.2. http://www.calconnect.org/[CalConnect]
84
- --
85
-
86
- ==== Lists and blocks
87
-
88
- [source,asciidoc]
89
- --
90
- * Unordered list item 1
91
- * Unordered list item 2
92
-
93
- . Ordered list item 1
94
- . Ordered list item 2
95
-
96
- Definition list:
97
-
98
- stem:[w]:: is the mass fraction of grains with defects in the test sample;
99
- stem:[m_D]:: is the mass, in grams, of grains with that defect;
100
- mag:: is the mass, in grams, of the aggregated test sample.
101
- --
102
-
103
- ==== Tables, figures, footnotes
104
-
105
- A rather complex table:
106
-
107
- [source,adoc]
108
- ----
109
- [[tableD-1]]
110
- [cols="<,^,^,^,^",headerrows=2]
111
- .Repeatability and reproducibility of husked rice yield
112
- |===
113
- .2+| Description 4+| Rice sample
114
- | Arborio | Drago footnote:[Parboiled rice.] | Balilla | Thaibonnet
115
-
116
- | Number of laboratories retained after eliminating outliers | 13 | 11 | 13 | 13
117
- | Mean value, g/100 g | 81,2 | 82,0 | 81,8 | 77,7
118
- |===
119
- ----
120
-
121
- Images (figures) and footnotes:
122
-
123
- [source,adoc]
124
- ----
125
- [[figureC-1]]
126
- .Typical gelatinization curve
127
- image::images/rice_image2.png[]
128
- footnote:[The time stem:[t_90] was estimated to be 18,2 min for this example.]
129
- ----
130
-
131
-
132
- ==== Admonition blocks, quotes & code listings
133
-
134
- Admonitions (notes, warnings, cautions, etc.) and examples:
135
-
136
- [source,adoc]
137
- ----
138
- NOTE: It is unnecessary to compare rice yield across years.
139
-
140
- [example]
141
- 5 + 3 = 8
142
- ----
143
-
144
- Block quotes:
145
-
146
- [source,adoc]
147
- ----
148
- [quote,ISO,"ISO7301,clause 1"]
149
- _____
150
- This Standard gives the minimum specifications for rice (_Oryza sativa_ L.)
151
- _____
152
- ----
153
-
154
- Source code:
155
-
156
- [source,adoc]
157
- ----
158
- [source,some-lang]
159
- ------
160
- function () -> {}
161
- ------
162
- ----
163
-
164
-
165
- === Extensions to AsciiDoc
166
-
167
- ==== Document header & custom AsciiDoc attributes
168
-
169
- `:docnumber:`: CalConnect document number, as allocated by TCC.
170
-
171
- `:status:`: The status of the document can be one of:
172
-
173
- * proposal
174
- * working-draft
175
- * committee-draft
176
- * draft-standard
177
- * final-draft
178
- * published
179
- * withdrawn
180
-
181
- `:doctype:`: The type of the document can be one of:
182
-
183
- * standard
184
- * directive
185
- * guide
186
- * specification
187
- * report
188
- * amendment
189
- * technical-corrigendum
190
-
191
- `:technical-committee:`, `:technical-committee_N:` (where N is a positive integer):
192
- Technical committee; there can be more than one.
193
-
194
- `:draft:`: Enables comments in Word and XML.
195
-
196
- `:local-cache-only:`: Used with Metanorma under Docker to ensure bibliographic entries
197
- do not get unnecessarily fetched all the time.
198
-
199
-
200
- ==== Foreword & Introduction
201
-
202
- Foreword must be put before the first real section/clause (the `==` one).
203
-
204
- ----
205
- [[foreword]]
206
- .Foreword
207
- The Calendaring and Scheduling Consortium ("`CalConnect`") is global non-profit
208
- organization with the aim to facilitate interoperability of technologies across
209
- user-centric systems and applications...
210
- ----
211
-
212
- Introduction comes after Foreword and is unnumbered (actually "`0`"):
213
-
214
- ----
215
- [[introduction]]
216
- :sectnums!: <== disables display of section number
217
- == Introduction
218
-
219
- <<ISO8601>> has been the international standard for date and time representations
220
- and is applied widely, including in the <<RFC5545>> and <<RFC6350>> standards
221
- ...
222
-
223
- :sectnums: <== re-enables display of section number
224
- ----
225
-
226
- NOTE: Some ISO standards display Introduction section numbers (the "`0`") if there are
227
- too many sub-sections.
228
-
229
-
230
- ==== Normative references & bibliography
231
-
232
- What is a normative vs informative reference?
233
-
234
- * A change to a normative reference requires updating of the document;
235
- * A change to an informative reference should not trigger a change in the document.
236
-
237
-
238
- Clause 2 must be this:
239
-
240
- ----
241
- [bibliography]
242
- == Normative references
243
-
244
- * [[[ISO3696,ISO 3696]]], _Water for analytical laboratory use -- Test methods_
245
- ----
246
-
247
- Last section must be this:
248
-
249
- ----
250
- [bibliography]
251
- == Bibliography
252
-
253
- * [[[ISO5609,ISO 5609]]], _Soil for laboratory analysis -- Test methods_
254
- ----
255
-
256
- NOTE: the Bibliography is identical in usage with the IETF RFC section "`Informative references`".
257
-
258
-
259
- ==== Citations
260
-
261
- In a CSD you often want to cite external or internal references.
262
-
263
- Internal:
264
- [source,adoc]
265
- ----
266
- [[dog-food]]
267
- == Dog food
268
-
269
- Dogs love food, not only bones. Mine especially loves eating Oreo's.
270
-
271
- == Living with your dog
272
-
273
- My dog, Cookie, loves to eat cookies (see <<dog-food>>).
274
-
275
- ----
276
-
277
-
278
- External (remember to add the reference!):
279
-
280
- [source,adoc]
281
- ----
282
- The quality requirements on wheat are described in <<ISO7301>>.
283
-
284
- In particular, those for bread wheat (T. aestivum) are given in
285
- <<ISO7301,clause=5.6>>.
286
- ----
287
-
288
-
289
- ==== Terms and definitions
290
-
291
- This must be clause 3.
292
-
293
- [source,adoc]
294
- ----
295
- [[tda]] <= anchor if you want it
296
- [source=ISO8601-1] <= allows inheriting terms and definitions from
297
- another document
298
- == Terms, definitions, symbols and abbreviations <= can combine T&D and S&A
299
-
300
- === Terms and definitions <= the real T&D clause
301
-
302
- [[term-explicit]] <= anchor if you want it
303
- ==== explicit form <= term item
304
-
305
- date and time representation that uses designator symbols to delimit
306
- time scale components
307
- ----
308
-
309
-
310
- ==== Term entry in T&D
311
-
312
- The structure is strict; the following illustrates the complete structure of a term entry.
313
-
314
- In the term source (`[.source]`), all content after the reference and the "`comma`" is about "`modifications`" to the original definition.
315
-
316
- [source,adoc]
317
- ----
318
- [[paddy]] <= anchor
319
- === paddy <= term
320
- alt:[paddy rice] <= alternative term
321
- alt:[rough rice] <= second alternative
322
- deprecated:[cargo rice] <= deprecated term
323
- domain:[rice] <= domain
324
-
325
- rice retaining its husk after threshing <= definition
326
-
327
- [example] <= example
328
- Foreign seeds, husks, bran, sand, dust.
329
-
330
- NOTE: The starch of waxy rice consists almost entirely of amylopectin. <= note
331
-
332
- [.source]
333
- <<ISO7301,section 3.2>>, The term "cargo rice" is shown as deprecated, <= source
334
- and Note 1 to entry is not included here.
335
- ----
336
-
337
-
338
- ==== Term entry sourced from IEC Electropedia (IEV)
339
-
340
- In the `[.source]`, a termbase such as the IEC Electropedia ("`IEV`") can be used, such as:
341
-
342
- [source,adoc]
343
- ----
344
- [.source]
345
- <<IEV,clause "113-01-01">>, the term "space-time" is further explained
346
- in a new Note 2 to entry.
347
- ----
348
-
349
- References to the specific IEC 60500 documents (where IEV terms came
350
- from) are automatically added to the Bibliography.
351
-
352
-
353
- ==== Annex
354
-
355
- Annexes have to be placed before the "`Bibliography`".
356
-
357
- [source,adoc]
358
- ----
359
- [[AnnexA]]
360
- [appendix,subtype=informative]
361
- == Example date and time expressions, and representations
362
- ...
363
- ----
364
-
365
-
366
- == Where next?
367
-
368
- * https://www.metanorma.com/overview/[Learn more about Metanorma]