This is an example repository (formerly named skohub-docker-vocabs
) to show how you can publish your SKOS vocabulary using GitHub infrastructure (Actions and Pages).
Every time a change is made to a vocabulary a GitHub-workflow-action is triggered to publish the most recent vocabulary to the gh-pages
-branch, which is used by GitHub pages.
It spins up a Docker container made from SkoHub Vocabs.
If you want to reuse this repo and have your vocabulary automatically pushed und published via GitHub-Pages, follow these steps:
gh-pages
as the branch your site is being built from. Any issues? Please open up a issue here
If you want to host your vocabularies under your GitHub pages domain (so no W3 perma-id or purl.org redirect), you have to provide that domain in the config.yaml
.
Example:
Your GitHub Pages domain is: https://skohub-io.github.io/skohub-pages/
Then provide https://skohub-io.github.io/skohub-pages/
as custom_domain
in your config.yaml
.
The base of your concept scheme could then be something like: https://skohub-io.github.io/skohub-pages/colours/
Notice that this will apply to all your hosted vocabularies.
gh-pages
branch to select for GitHub PagesYou probably only forked the main branch. You have two options:
gh-pages
branch.Maybe your GitHub Action is not activated yet. Go to the "Actions" tab and activate GitHub Actions for your repository.
The requested URL returned error: 403
You maybe need to update permissions like described here: https://github.com/peaceiris/actions-gh-pages/issues/744
Go to Settings
> Actions
> General
> Workflow permissions
and toggle the Read and write permissions.
09.02.2021:
PATH_PREFIX
set to point to the repository the vocabulary is hosted at. To align with rest of code, this was changed to BASEURL
.