Skip to content

Generator to render complete ConceptSchemes from ConceptSchemeRestriction

License

Notifications You must be signed in to change notification settings

openactive/concept-scheme-restriction-generator

Repository files navigation

concept-scheme-restriction-generator

Generator to render a complete ConceptScheme from a ConceptSchemeRestriction.

This GitHub Action generates an index.md file and activity-list.jsonld file from a file containing a ConceptSchemeRestriction within a ConceptScheme.

For more information about ConceptSchemeRestriction, see the associated proposal in GitHub.

Usage

Create a new GitHub Action using the following template, in a repository that includes a restriction.jsonld file in the root.

name: Deploy to GitHub Pages

on:
  push:
    branches:
      - master
  workflow_dispatch:

jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Render Documentation
        uses: openactive/concept-scheme-restriction-generator@master
        with:
          schemeFile: restriction.jsonld
      - name: Deploy
        uses: peaceiris/actions-gh-pages@v3
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }}
          publish_dir: ./output
          force_orphan: true
          enable_jekyll: true

You may customise the parameter:

  • schemeFile - JSON-LD file containing a ConceptSchemeRestriction within a ConceptScheme.

About

Generator to render complete ConceptSchemes from ConceptSchemeRestriction

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published