Skip to content

Commit

Permalink
Merge pull request #35 from EURODEO/formatting-fix
Browse files Browse the repository at this point in the history
formatting fixes
  • Loading branch information
havardf authored Feb 4, 2025
2 parents 0288f07 + 7f63a12 commit 72020e2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 2 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test-specification.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: test build specification

on:
pull_request:
paths:
- 'standard/**'

env:
SPEC_FILE_BASENAME: rodeo-edr-profile-DRAFT

jobs:
build-rodeo-edr-profile:
name: Generate documentation
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo apt-get update -y \
&& sudo apt-get install -y pandoc \
&& sudo gem install asciidoctor asciidoctor-pdf
- name: checkout repository
uses: actions/checkout@master
- name: build specification
run: |
mkdir -p /tmp/rodeo-edr-profile/standard/images \
&& cd standard \
&& asciidoctor --trace -o /tmp/rodeo-edr-profile/standard/${SPEC_FILE_BASENAME}.html index.adoc \
&& asciidoctor --trace --backend docbook --out-file - index.adoc | pandoc --from docbook --to docx --output /tmp/rodeo-edr-profile/standard/${SPEC_FILE_BASENAME}.docx \
&& asciidoctor --trace -r asciidoctor-pdf --trace -b pdf -o /tmp/rodeo-edr-profile/standard/${SPEC_FILE_BASENAME}.pdf index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
^|B |A `parameter` object SHALL specify the following fields: `label`, `description`, `unit`
^|C |`label` SHALL NOT have more than 50 characters.
^|D |`label` SHALL be written in English.
^|E |`unit` SHALL use QUDT as vocabulary, and `unit.symbol.type` SHALL be on the form `https://qudt.org/vocab/unit/<unit>` and `unit.symbol.value` SHALL be set to the value of `qudt:symbol` for that unit.
^|F |`observedProperty` SHALL use the CF-convention if a suitable value is available and set `observedProperty.id` to value `https://vocab.nerc.ac.uk/standard_name/<standard_name>` If not, use `observedProperty.description` to describe it.
^|E |`unit` SHALL use QUDT as vocabulary, and `unit.symbol.type` SHALL be on the form `+https://qudt.org/vocab/unit/<unit>+` and `unit.symbol.value` SHALL be set to the value of `qudt:symbol` for that unit.
^|F |`observedProperty` SHALL use the CF-convention if a suitable value is available and set `observedProperty.id` to value `+https://vocab.nerc.ac.uk/standard_name/<standard_name>+` If not, use `observedProperty.description` to describe it.
|===

0 comments on commit 72020e2

Please sign in to comment.