From 7993b5cbe40f79252bd2faa9c5cc686e8bbad7a0 Mon Sep 17 00:00:00 2001 From: Peter Desmet Date: Mon, 15 Oct 2018 13:23:56 +0200 Subject: [PATCH] Update term layout - Drop mb-3: is default on .table - Use table-bordered (will border all cells rather than outline) - Combine anchors in an invisible paragraph (is rendered as paragraph from markdown anyway) - Only add regular anchor for none dwciri --- build/build.py | 2 +- docs/_layouts/terms.tmpl | 19 +++++++++++-------- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/build/build.py b/build/build.py index 662d9bb..7a7c060 100644 --- a/build/build.py +++ b/build/build.py @@ -38,7 +38,7 @@ class DwcNamespaceError(Exception): class DwcBuildReader(): def __init__(self, dwc_build_file): - """Custom Reader switching between to raw Github or local file""" + """Custom Reader switching between raw Github or local file""" self.dwc_build_file = dwc_build_file def __enter__(self): diff --git a/docs/_layouts/terms.tmpl b/docs/_layouts/terms.tmpl index 869e5de..2dee6a3 100644 --- a/docs/_layouts/terms.tmpl +++ b/docs/_layouts/terms.tmpl @@ -10,28 +10,31 @@ This page provides a list of all currently recommended terms of the Darwin Core {% for class_group in class_groups %} ## {{ class_group.label }} - +
{% for term in class_group.terms %} - {{ term.label }} + {{ term.label }} {% endfor %}
{% if class_group.iri is not none %} -{# The above will exclude the Record-level class_group #} - +{# Class (the above will exclude the Record-level class_group) #} +
- - + +
{{ class_group.label }}Class
Identifier{{ class_group.iri }}
Definition{{class_group.definition}}
Comments{{class_group.comments}}
Definition{{ class_group.definition }}
Comments{{ class_group.comments }}
{%endif %} {% for term in class_group.terms %} - - +{# Term #} + +
{{ term.label }}Property
Identifier{{ term.iri }}