Merge pull request #443 from tdwg/examples

Separate examples with `;` and style
This commit is contained in:
Peter Desmet 2023-04-28 09:27:06 +02:00 committed by GitHub
commit 4e919e11fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 1083 additions and 1072 deletions

View File

@ -50,13 +50,14 @@ For more information on `UseWithIRI`, see [Section 2.5 of the RDF Guide](https:/
<span id="{{ term.label }}"></span>
{% endif %}
</p>
{% set examples = term.examples.split("; ") %}
<table class="table">
<tbody>
<tr class="table-secondary"><th colspan="2">{{ term.label }}</th></tr>
<tr><td>Identifier</td><td><a href="{{ term.iri }}">{{ term.iri }}</a></td></tr>
<tr><td>Definition</td><td>{{ term.definition }}</td></tr>
<tr><td>Comments</td><td>{{ term.comments }}</td></tr>
<tr><td>Examples</td><td>{{ term.examples }}</td></tr>
<tr><td>Examples</td><td>{% if examples | length == 1 %}{{ examples | first }}{% else %}<ul class="list-group list-group-flush">{% for example in examples %}<li class="list-group-item">{{ example }}</li>{% endfor %}</ul>{% endif %}</td></tr>
</tbody>
</table>
{% endfor %}

View File

@ -1,2 +1,3 @@
source "https://rubygems.org"
gem "github-pages", group: :jekyll_plugins
gem "webrick", "~> 1.7"

View File

@ -211,6 +211,8 @@ GEM
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.16.3)
nokogiri (1.13.8-arm64-darwin)
racc (~> 1.4)
nokogiri (1.13.8-x86_64-darwin)
racc (~> 1.4)
octokit (4.25.1)
@ -249,13 +251,16 @@ GEM
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (1.8.0)
webrick (1.8.1)
zeitwerk (2.6.1)
PLATFORMS
arm64-darwin-22
x86_64-darwin-18
DEPENDENCIES
github-pages
webrick (~> 1.7)
BUNDLED WITH
2.3.23

View File

@ -5,5 +5,9 @@
td:first-of-type {
width: 120px; // Label column, long words will still push this wider
}
.list-group-item {
padding: 0.5rem 0; // Examples
}
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff