Commit Graph

187 Commits

Author SHA1 Message Date
Steve Baskauf 4577422762 Clear Jupyter notebook output and restart kernel to clean up code 2020-08-13 13:05:09 -05:00
Steve Baskauf d26027826a Fix two problems with list of terms build script
Fixed:
- correctly removed trailing vertical bars from all index sections
- added missing <tr> opening tag
2020-08-13 13:03:39 -05:00
Steve Baskauf 5bd258ecee
Merge pull request #264 from tdwg/dcmi-term-changes
Implement changes to "normative document" discussed at DwC MG meeting
2020-08-13 10:04:38 -05:00
peterdesmet f9cdb7f071 Minor text corrections 2020-08-13 10:14:51 +02:00
peterdesmet 5ff90b28d3 Revert to using term_versions.csv for QRG build script 2020-08-13 10:08:11 +02:00
Steve Baskauf 00578209eb Add notes about the list of terms build script to README.md 2020-08-12 14:47:08 -05:00
Steve Baskauf b16d8931a1 move list of terms build script into dwc repo and run to generate page 2020-08-12 14:40:36 -05:00
tucotuco 876d9bf90b Minor grammaticla edit. 2020-08-11 20:39:32 -03:00
tucotuco 68fcf71d8b Incorprating comments by @baskaufs. 2020-08-09 16:39:15 -03:00
tucotuco e3594cb8d7 Made it explicit that the QRG is not part of the standard, but that it draws on the standard and adds comments and examples. 2020-08-09 16:21:30 -03:00
Steve Baskauf 1d52ee818d Make changes to script that generates the term versions file
Changed the path of output so that the current term_versions.csv file is replaced by the output. Changed the name of the script itself to generate_term_versions.py . Added the list of terms used to indicate the order of terms in the Quick Reference Guide.
2020-08-07 15:28:43 -05:00
peterdesmet 6b1186429f Reference #253 in build script 2020-08-07 21:46:51 +02:00
peterdesmet 5aa48c8a4f Update the build script to work from the generated_normative_document.csv 2020-08-07 21:40:32 +02:00
Steve Baskauf 665ca08d53 added Python script that generates term_versions.csv 2020-08-06 15:15:22 -05:00
Peter Desmet 82807f9e78 Add explanation about UseWithIRI
Close https://github.com/tdwg/dwc/issues/212
2019-10-21 16:37:12 +02:00
Peter Desmet 902570ac12 Don't show UseWithIRI (and Record-level) utility classes
Closes #160
2019-10-21 14:50:11 +02:00
Peter Desmet 6c467788fd Move terms.tmpl to build 2018-10-29 19:50:13 +01:00
Peter Desmet e14dd43047 Update README for build script 2018-10-15 13:36:55 +02:00
Peter Desmet 0feaeeb048 Add examples 2018-10-15 13:24:32 +02:00
Peter Desmet 7a0eded11b Trim blocks 2018-10-15 13:24:09 +02:00
Peter Desmet 7993b5cbe4 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
2018-10-15 13:23:56 +02:00
stijnvanhoey 7e329c8e69 Update README info 2018-10-14 12:14:19 +02:00
stijnvanhoey 6b934652b0 Clean documentation 2018-10-14 12:14:05 +02:00
stijnvanhoey a1c9a2966a Fix #197 2018-10-14 12:09:40 +02:00
Peter Desmet 6be8ca8440 Point build script to term_versions 2018-10-10 16:34:21 +02:00
Peter Desmet d7e05d2a18
Merge pull request #201 from tdwg/docs_website
Update Darwin Core website
2018-10-10 13:19:34 +02:00
tucotuco 58058a245c First step to reorganize terms management to combine normative definitions (old term_versions.csv) with non-normative commentaries on recommended terms (terms.csv) and prepare to manage translations. 2018-08-29 10:30:19 +12:00
Peter Desmet 906c36bc62 Build quick ref guide as markdown
Building the quick reference guide as a html file doesn't allow it to use the Jekyll templates (header, navbar, footer). We also can't reference those templates in the terms.tmpl as jinja2 and jekyll work slightly different.

But by building the quick reference to a markdown document (with just the content, no html header etc.) it can be picked up by Jekyll like any other markdown file. The markdown file does contain mostly html, so we can style it exactly like we want.
2018-08-27 11:50:38 +12:00
Peter Desmet e3ba72883e Move quick guide template to _layouts 2018-08-27 11:44:25 +12:00
Peter Desmet 7aa6e587ea Update template to use production tdwg-theme
- Add favicons
- Use theme-nav-sidebar
- Remove custom css
- Don't use sticky-top navbar (= not use in tdwg.org either)
- Update dev to www
2018-07-25 17:28:45 +02:00
Peter Desmet 221eed3209 Add institutionID back (carriage return missing)
Error was introduced in #183
2018-05-21 10:21:07 +02:00
Dag Endresen c387f1751d
Update terms.csv 2018-05-17 08:27:40 +02:00
tucotuco df05056110 Updated examples for sex, lifeStage, and nomenclaturalCode. 2018-05-07 14:06:55 -03:00
Peter Desmet d7aa88b3f1
Correct typo 2018-04-25 12:23:31 +02:00
Peter Desmet 4147a4eaa7 Update index.tmpl to fit update tdwg-theme + sidebar right
Now makes use of code at: 967ae804fd

Notes:

* Same HTML structure + classes as tdwg website
* Navbar is still sticky-top, so that the fixed sidebar doesn't seem to hang with weird margin above
* .col-md-9 for content is still mandatory
* Sidebar is on the right (.order-md-2)
* Sidebar has width: calc() trick so it keeps some margin to the right
* Sidebar = .tdwg-sidebar-primary, so it matches in colour (orange) with the dwc classes (as it was before)
* Term buttons are .btn-outline-secondary, so they match in colour (blue) with the dwc terms (as it was before)
2018-01-29 16:22:55 +01:00
Peter Desmet 5a35c10c4c
Escape quotes for "convenience property"
Should result in better rendering of the csv on GitHub
2018-01-18 09:31:45 +01:00
stijnvanhoey 1e882adc12 Fix missing variable addition term.iri 2017-12-08 10:04:16 +01:00
stijnvanhoey 21c1be734a Update requirements 2017-12-06 20:29:13 +01:00
stijnvanhoey e5a00fee83 Update to jinja2 templating syntax 2017-12-06 20:25:57 +01:00
stijnvanhoey f72460a0f8 Convert to jinja2 API 2017-12-06 20:20:31 +01:00
Peter Desmet 85b1c12c22 Fix identifier for terms (was linking to class) 2017-10-12 12:29:07 -04:00
Peter Desmet 0d70d84d58 Use class_group instead of group in template
We generally refer to these groups as classes. class is a reserved name though, so have to use class_group instead, which is also the variable name used in the build script
2017-10-12 12:28:17 -04:00
Peter Desmet 20b9d8a0d0 Use labels instead of local names in build script and template 2017-10-12 12:26:07 -04:00
tucotuco 70d7a9f95a Updated recommendation for language to RFC 5646. 2017-10-11 13:32:48 -07:00
Peter Desmet 84ee9985ad Add namespace to anchors for terms
It's not added for groups/classes because a colon in an anchor doesn't work with Scrollspy, which is used to indicate in which class/group you are in the menu on the left.
2017-10-07 17:15:34 -04:00
Peter Desmet 8de5d4edcb Set namespace of Record-level to None
There is no need for one
2017-10-06 19:08:42 -04:00
Peter Desmet b70e6c02b6 Rephrase print messages of build script 2017-10-06 19:08:21 -04:00
Peter Desmet 6d31585c11 Merge branch 'master' into coderendering 2017-10-03 14:24:23 -04:00
stijnvanhoey f008fb1255 Merge branch 'coderendering' of github.com:tdwg/dwc into coderendering 2017-10-03 18:53:36 +02:00
stijnvanhoey 06ed8fa8d3 Fix bug on handling < code 2017-10-03 18:53:20 +02:00
Peter Desmet dd1f39ef4c Update useWithIri to useWithIRI
Closes #154
2017-10-03 12:17:53 -04:00
Peter Desmet edbb5712a8 Update incorrectly quoted "convenience property" 2017-10-03 12:11:08 -04:00
Peter Desmet b998b9a77b Use Markdown ticks for examples (" -> `)
Also:
- Corrected some typos
- Standardized way of referencing terms: `value`(term)
- Write DOIs as https://doi.org/...
2017-10-03 12:00:54 -04:00
stijnvanhoey 0548e67571 Add convert functionality for backticks to html tags 2017-10-03 17:37:59 +02:00
stijnvanhoey 26e8295e80 Update docs 2017-10-03 01:22:27 +02:00
stijnvanhoey 4aa1c072d4 Fix bug on trailing paranthesis 2017-10-03 01:21:17 +02:00
stijnvanhoey 0a4d22fda0 Update docs 2017-10-02 22:36:24 +02:00
stijnvanhoey bbcc074d9a Add functionality that converts link to html tagged link 2017-10-02 22:31:33 +02:00
Peter Desmet 439462ea75 Merge branch 'master' into restructure-repo
Conflicts:
	build/build.py
2017-10-02 11:56:49 -04:00
Peter Desmet adb4413398 Move term_versions to standard/vocabularies/term_versions.csv 🦄
In response to #150
2017-10-02 11:49:03 -04:00
Peter Desmet 5fb296d56a Move quick reference guide to www/guides/ 2017-10-02 11:47:06 -04:00
stijnvanhoey c8f5a0cbb7 Update documentation 2017-10-01 17:32:49 +02:00
stijnvanhoey 91a1dd3140 Make term definition work on iri instead of dict 2017-10-01 17:27:49 +02:00
stijnvanhoey 30c7b53ba3 Provide the template data as class attribute 2017-10-01 17:26:07 +02:00
stijnvanhoey 97ccad60cb Add support for namespace abbreviations 2017-10-01 16:58:17 +02:00
stijnvanhoey c3cea5028b Represent term overviews as property 2017-10-01 16:58:00 +02:00
stijnvanhoey f0d93e5c6b Improve readbility of config terms 2017-10-01 16:57:04 +02:00
stijnvanhoey b29cb6a5f5 Provide support for namespace abbreviations in data-model 2017-10-01 16:49:12 +02:00
stijnvanhoey 5ce9004b20 Improve docs and syntax 2017-10-01 16:08:14 +02:00
stijnvanhoey 409de7078a Bugfixes on simple dwc flag 2017-10-01 15:23:58 +02:00
stijnvanhoey 31d7bdbb17 Update to newly proposed file naming 2017-10-01 15:10:29 +02:00
stijnvanhoey 69beecf70e Add simple dwc derivatives 2017-10-01 15:10:29 +02:00
tucotuco 0976291e6a Amendments to remove recommendations for controlled vocabularies from definitions into commentaries. Finished adding references to external documentation and translations. 2017-10-01 03:10:12 -04:00
tucotuco a2b5ba578f Added column in build/config/terms to signify terms for Simple Darwin Core. Move of recommendations from definitions to build/config/terms in progress. 2017-09-30 21:56:49 -04:00
tucotuco 7c83019ed8 Added missing UseWithIri class to term_versions. Partial update of vocabulary recommendations in build/config/terms. 2017-09-30 19:30:58 -04:00
Peter Desmet 9ba2b8eb19 Merge branch 'master' into quick-ref-guide 2017-09-30 19:12:45 -04:00
Peter Desmet 374b982321 Add Class / Property badges 2017-09-30 18:56:34 -04:00
Peter Desmet 944d2116e1 Add link to GitHub in the menu 2017-09-30 18:56:23 -04:00
tucotuco cb27ac07fc Added organizing class for dwciri terms and ordered dwciri terms alphabetically. 2017-09-30 18:37:29 -04:00
Peter Desmet 8093989091 Update introduction 2017-09-30 18:13:59 -04:00
Peter Desmet 0ee8ffcf47 Reduce height of sidebar 2017-09-30 17:51:34 -04:00
Peter Desmet 1cd603a007 Use buttons instead of pills for group terms 2017-09-30 17:51:25 -04:00
Peter Desmet b848e2e0b0 Use tables instead of definition lists for terms & classes 2017-09-30 17:51:12 -04:00
tucotuco 0ad0000d6f Added Darwin Core IRI terms to config/terms.csv. 2017-09-30 17:45:28 -04:00
Peter Desmet 886025b2bc Move Human/MachineObservation just before Location 2017-09-30 16:54:16 -04:00
Peter Desmet 7c30ee2916 Update template to Bootstrap4
- Use dev.tdwg.org stylesheet and JS
- Navbar only contains lik to TDWG
- Sidebar is shown as fixed on bigger screens
- Offset used for anchors
- Terms are a definition list
- List classes and terms (except Record-level)
- Footer removed
2017-09-30 16:34:56 -04:00
Peter Desmet 9d658db3c3 Remove label, rename dcterms_description to comments 2017-09-30 16:32:04 -04:00
Peter Desmet 9a42e1cd42 Rename terms_config to terms 2017-09-30 16:27:54 -04:00
stijnvanhoey bb631c05a1 Move build code inside build folder 2017-09-30 18:27:11 +02:00
stijnvanhoey 188c422fa8 Confirm to proposed repo structure 2017-09-30 16:53:34 +02:00
stijnvanhoey ba19c47ffa Update to py3 2017-09-30 16:49:38 +02:00
stijnvanhoey 998a2e5449 Add template generation functions 2017-09-30 16:49:25 +02:00
stijnvanhoey f4b712acee version and config class handlers 2017-09-30 16:48:27 +02:00
stijnvanhoey 675eca4d95 Update date of modification 2017-09-30 16:46:54 +02:00
stijnvanhoey 92d9c19c1f Adapt name to config name 2017-09-30 15:41:02 +02:00
stijnvanhoey ef5225a2cb Remove unrequired terms in template 2017-09-30 15:40:18 +02:00
stijnvanhoey f13d954507 Add classes for config and version handling 2017-09-30 06:44:59 +02:00
stijnvanhoey 75d7e8e28e Fix capital typos config 2017-09-30 06:44:25 +02:00
Peter Desmet ea2b293a08 Add configuration for the recommended terms, incl. order, labels, examples 🐲
Created at the Ottawa 2017 hackathon by @tucotuco @baskaufs @peterdesmet @pzermoglio @stijnvanhoey
2017-09-30 00:24:50 -04:00
Peter Desmet 59d14d5e9e Correct HTML validation errors 2017-09-29 22:29:13 -04:00