Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

class attribute for requirements: https://github.com/metanorma/metano… #807

Merged
merged 4 commits into from
Aug 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions author/topics/blocks/requirements-modspec.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,45 @@ requirement class that is being tested.
// * `model` (optional when using Metanorma OGC). Type of model. The value of `ogc`
// means using OGC ModSpec models.

`class`::
Declares a custom category of provisions labelled and numbered separately to
"requirements", "recommendations" and
"permissions" [added in https://github.com/metanorma/mn-requirements/releases/tag/v0.4.1].
+
.Rendering of a custom category called "Provision"
[example]
====
[source,adoc]
----
[requirement]
--
[%metadata]
class:: Provision
--

[requirement]
--
--

[requirement]
--
[%metadata]
class:: Provision
--
----

Rendered as:

____
*Provision 1*

*Requirement 1*

*Provision 2*
____
====


`id`::
+
--
Expand Down
38 changes: 38 additions & 0 deletions author/topics/blocks/requirements-mrr.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,44 @@ inherit:[<<ref1>>]
----
====

`class`::
Declares a custom category of provisions labelled and numbered separately to
"requirements", "recommendations" and
"permissions" [added in https://github.com/metanorma/mn-requirements/releases/tag/v0.4.1].
+
.Rendering of a custom category called "Provision"
[example]
====
[source,adoc]
----
[requirement]
--
[%metadata]
class:: Provision
--

[requirement]
--
--

[requirement]
--
[%metadata]
class:: Provision
--
----

Rendered as:

____
*Provision 1*

*Requirement 1*

*Provision 2*
____
====

Any attributes that are not included in the list of requirement attributes above
are treated as
"classification tags". [added in https://github.com/metanorma/metanorma-standoc/releases/tag/v2.2.0]
Expand Down
8 changes: 7 additions & 1 deletion develop/topics/simple-adoption.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ xml_root_tag: 'generic-standard'
logo_path: lib/isodoc/generic/html/logo.jpg
logo_paths: []
validate_rng_file: lib/metanorma/generic/generic.rng
formats:
- html
- doc
- pdf
htmlcoverpage: lib/isodoc/generic/html/html_generic_titlepage.html
htmlintropage: lib/isodoc/generic/html/html_generic_intro.html
htmlstylesheet: lib/isodoc/generic/html/htmlstyle.css
Expand Down Expand Up @@ -230,7 +234,9 @@ doctypes:
----
====

`default_doctype`:: default doctype [added in https://github.com/metanorma/metanorma-generic/releases/tag/v1.4.8]. If not supplied, the first element of doctypes is used; if that is not supplied either, "standard" is used.
`default_doctype`:: default doctype [added in https://github.com/metanorma/metanorma-generic/releases/tag/v1.4.8]. If not supplied, the first element of ``doctype``s is used; if that is not supplied either, `standard` is used.

`formats`:: output formats supported [added in https://github.com/metanorma/metanorma-generic/releases/tag/v2.7.1], specified as an array. If not supplied, the default is `["html", "doc"]`. Every format specified needs to be supported with stylesheets and font settings appropriate for the format, as specified below.

`html_bodyfont`:: The default font to use in HTML output for body text [added in https://github.com/metanorma/metanorma-generic/releases/tag/v1.4.4].

Expand Down
Loading