clamsproject / mmif

MultiMedia Interchange Format
Apache License 2.0
4 stars 1 forks source link

MMIF

Repository for MMIF specifications, MMIF schema and the CLAMS vocabulary.

To create a new version use the build.py script:

$ python build.py

This creates a new version in docs/VERSION where the version is taken from the VERSION file.

Local build and preview

HTML files generated from build.py will be deployed to a github.io page. The base webpage where all the versioned specifications reside is deployed via the jekyll engine. That is, to test and preview a local build, one needs to install jekyll for local serving, which in turn, requires ruby. Install ruby following this documentation. jekyll wants ruby>=2.5, but ruby is shipped with bundle/bundler (THE dependency management utility for ruby) only since 2.6, hence installing 2.6 or newer is preferred. For 2.5, one needs to manually install bundler after installing ruby.

Once ruby and bundler are ready,

  1. bundle env | grep Bin # this is where jekyll is installed
  2. cd docs
  3. rm Gemfile.lock
  4. bundle install
  5. jekyll serve # if the bundle Bin dir is not in your $PATH, use absolute path to jekyll binary

should give you a running instance of the MMIF specification website at localhost:4000.

Note that the starting jekyll will download website theme and L&F from the internet (Specifically from https://github.com/clamsproject/website-theme ). So you need an internet connection to get the full preview locally. To start jekyll without a connection (and lose styles) you need to comment remote_theme config line from docs/_config.yaml file before running the jekyll command.

Checklist for deployment

List of things to do when creating a new version: