Commit Graph

118 Commits

Author SHA1 Message Date
f6c8ad09db Move fsc data files into place 2021-12-21 19:07:16 +02:00
d8065f0634 site/layouts: add new FSC extension
We use a custom style block in the base that defaults to ISEAL, but
gets overridden in the FSC layout. Layout is determined in the term
frontmatter, either "home" or "fsc".
2021-12-21 19:07:16 +02:00
d4bd504ff2 site: add FSC style
We now have FSC and ISEAL color schemes with some common style in
main.scss. I don't have any branding guidelines for FSC so I'm just
using colors for now.
2021-12-21 19:07:16 +02:00
d37bfc453f util/generate-hugo-content.py: add support for fsc.csv
Currently the only difference is the name of the module column and
that there are no mandatory fields so we need to be careful there.
2021-12-21 19:07:16 +02:00
alanorth
f1807806d1 Automated commit with site updates 2021-12-21 16:55:30 +00:00
683a240ec8
site: fix order of navigation 2021-12-21 18:14:54 +02:00
alanorth
dbcdb98ab0 Automated commit with site updates 2021-12-20 10:05:34 +00:00
baf534efd5
Update references to shema-fields.csv 2021-12-20 12:04:11 +02:00
78c3d62b71
Move data/schema-fields.csv to data/iseal-core.csv
schema-fields.csv reflects the original name of the Excel file that
Peter started with.
2021-12-20 12:02:10 +02:00
alanorth
d4151fa803 Automated commit with site updates 2021-12-20 07:42:30 +00:00
1ef9efde41 data/controlled-vocabularies: add dcterms.format 2021-12-20 09:41:11 +02:00
106c002412 data/schema-fields.csv: changes from Peter
Adjust some element clusters and modules. Add dcterms.format.
2021-12-20 09:41:11 +02:00
alanorth
103d9a787c Automated commit with site updates 2021-12-19 12:17:24 +00:00
c106cf2cc3
util/create-rdf.py: add execute bit
So we can run it directly without calling Python.
2021-12-18 22:40:08 +02:00
8440637eaa
Rename util/rdf_creation.py to util/create-rdf.py
Use imperative mood and a dash instead of underscore.
2021-12-18 22:38:57 +02:00
c93f0c422a
README.md: add more TODO 2021-12-18 22:37:58 +02:00
1655728503
README.md: update TODO 2021-12-16 21:36:55 +02:00
14ba97e8de
Add requirements.txt
Generated with poetry:

    $ poetry export -f requirements.txt > requirements.txt

This is useful for people who don't have poetry.
2021-12-16 21:24:58 +02:00
5b075d32f3
poetry.lock: run poetry update 2021-12-16 21:24:14 +02:00
a61aaf4007
pyproject.toml: add csvkit
Useful for CSV wrangling.
2021-12-16 21:23:48 +02:00
Marie-Angélique Laporte
ac308fb1db adding fsc rdf 2021-12-16 12:58:15 +01:00
marieALaporte
074d6a46bd Automated commit with site updates 2021-12-16 08:59:56 +00:00
Marie-Angélique Laporte
355fa3a56f Update rdf_creation.py 2021-12-16 09:58:51 +01:00
marieALaporte
1b6b75f886 Automated commit with site updates 2021-12-14 14:07:12 +00:00
Marie-Angélique Laporte
dcf6921bd0
upper case sustainability outcome 2021-12-14 15:06:20 +01:00
alanorth
a2491b9e15 Automated commit with site updates 2021-12-14 13:19:21 +00:00
5ee058fede
data/schema-fields.csv: minor update
Try to change "sustainability issue" to "Susatainability issue"
2021-12-14 15:17:59 +02:00
3961c3e483
.github/workflows/pages.yml: try to git pull
We should git pull before we update the site.
2021-12-14 15:14:37 +02:00
2eeaa63cce
.github/workflows/pages.yml: add more comments 2021-12-14 14:58:01 +02:00
99be04a784
.github/workflows/pages.yml: update dependencies
Only attempt to update the site content if parsing the schema and
updating the site was successful.
2021-12-14 14:54:54 +02:00
871dca1a49
.github/workflows/pages.yml: add comments 2021-12-14 14:54:07 +02:00
alanorth
4db80ac8c1 Automated commit with site updates 2021-12-14 12:49:06 +00:00
76294adab6
.github/workflows/pages.yml: retab 2021-12-14 14:48:06 +02:00
d6d9767e2d
.github/workflows/pages.yml: attempt to update site
If there are changes to the site after running the schema parsing
script we should commit the changes.
2021-12-14 14:46:16 +02:00
ef580dfd86
.github/workflows/pages.yml: use poetry run 2021-12-14 14:24:38 +02:00
409b7782ac
.github/workflows/pages.yml: parse the schema
Try to install Python dependencies with Poetry and then parse the
schema using ./util/generate-hugo-content.py. I'm not sure if we
need to use `poetry run ...` instead.
2021-12-14 14:22:21 +02:00
b6c2be7960
.github/workflows/pages.yml: try default Poetry
It's better if we don't have to specify an exact version for now.
2021-12-14 14:21:43 +02:00
6fa4791eaf
.github/workflows/pages.yml: Fix syntax
It's due to the indentation (missing the with:).
2021-12-14 14:14:35 +02:00
0ccf573ace
.github/workflows/pages.yml: syntax error
Not sure why this line has a syntax error...?
2021-12-14 14:13:36 +02:00
4e92f0b8cd
.github/workflows/pages.yml: adjust branches
Run Python job steps on all branches, but only push to GitHub pages
from main.

See: https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
See: https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
2021-12-14 14:09:58 +02:00
22b78ea149
.github/workflows/pages.yml: add Python for parsing
Attempt to add Python and Poetry so we can run the schema parsing
scripts to generate the site content and the RDF.
2021-12-14 14:02:16 +02:00
3c85358f77 README.md: remove TODO about DSpace fields
We have converted this to a GitHub issue.

See: https://github.com/alanorth/iseal-schema/issues/1
2021-12-13 16:16:18 +02:00
Marie-Angélique Laporte
6f62b97b53 rdf regenerate 2021-12-13 14:20:13 +01:00
Marie-Angélique Laporte
0feba6829a removing unused files 2021-12-13 14:10:59 +01:00
cf5f17ff0f
site/docs: regenerate site with hugo 2021-12-13 15:10:04 +02:00
c815e0cffd
package.json: add npm script for hugo server
Use `npm run server` to start local Hugo server.
2021-12-13 15:07:47 +02:00
eb18a5ab3b
site: regenerate vocabularies 2021-12-13 15:05:49 +02:00
c5eca3cc12
util/generate-hugo-content.py: re-work vocabularies
Read vocabularies from the data/controlled-vocabularies directory
instead of exporting them from the schema itself. Also, I use the
name vocabulary.txt for all of them on the site since they are in
each field's directory already.
2021-12-13 15:03:20 +02:00
96bc2b5f79
Extract controlled vocabularies
We want to keep these outside of the schema file itself to make it
easier and less error-prone to edit them.
2021-12-13 13:32:29 +02:00
747837d14b
util/generate-hugo-content.py: update comment 2021-12-13 13:31:29 +02:00