Skip to content

Commit

Permalink
Use GitHub Pages domain for resolvable vocabulary links #21
Browse files Browse the repository at this point in the history
  • Loading branch information
sroertgen committed Mar 14, 2024
1 parent 2a25332 commit ac5a47b
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,19 @@ If you want to reuse this repo and have your vocabulary automatically pushed und
After that your vocabulary will be automatically published every time a push to this repo is made (sometimes it takes a little to see the changes, remember to do some hard refreshing).
Any issues? Please open up a issue [here](https://github.com/skohub-io/skohub-docker-vocabs/issues)

## Custom Domain

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`](./config.yaml).

Example:

Your GitHub Pages domain is: `https://skohub-io.github.io/skohub-docker-vocabs/`
Then provide `https://skohub-io.github.io/skohub-docker-vocabs/` as `custom_domain` in your `config.yaml`.

The base of your concept scheme could then be something like: `https://skohub-io.github.io/skohub-docker-vocabs/colours/`

Notice that this will apply to all your hosted vocabularies.

## Troubleshooting

### There is no `gh-pages` branch to select for GitHub Pages
Expand Down
39 changes: 39 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
---
# see https://github.com/nextapps-de/flexsearch#tokenizer-prefix-search for options
tokenizer: "full" # strict, forward, reverse, full
custom_domain: ""
fail_on_validation: true
searchableAttributes:
- "prefLabel" # you should not delete this one
- "notation"
- "altLabel"
- "hiddenLabel"
- "example"
- "definition"
ui:
title: "SkoHub Vocabs" # Title is mandatory
logo: "skohub-signet-color.svg" # Path
colors:
skoHubWhite: "rgb(255, 255, 255)"
skoHubDarkColor: "rgb(15, 85, 75)"
skoHubMiddleColor: "rgb(20, 150, 140)"
skoHubLightColor: "rgb(40, 200, 175)"
skoHubThinColor: "rgb(55, 250, 210)"
skoHubBlackColor: "rgb(5, 30, 30)"
skoHubAction: "rgb(230, 0, 125)"
skoHubNotice: "rgb(250, 180, 50)"
skoHubDarkGrey: "rgb(155, 155, 155)"
skoHubMiddleGrey: "rgb(200, 200, 200)"
skoHubLightGrey: "rgb(235, 235, 235)"
fonts:
regular:
font_family: "Ubuntu"
font_style: "normal"
font_weight: 400
name: "ubuntu-v20-latin-regular"
bold:
font_family: "Ubuntu"
font_style: "normal"
font_weight: 700
name: "ubuntu-v20-latin-700"

0 comments on commit ac5a47b

Please sign in to comment.