Skip to content

Commit

Permalink
Add pre Jekyll build step generating the static schema pages
Browse files Browse the repository at this point in the history
The generate_schemas script fetches the XSD and XSLT files from the tag of
the ome-model specified in the top-level configuration file, generates the
landing pages and publication layout and move them under Schemas.
  • Loading branch information
sbesson committed Apr 3, 2019
1 parent 5339839 commit c2e9b14
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ sudo: required
services:
- docker

before_script:
- ./generate_schemas.sh

script:
- docker run -it --rm -v $PWD:/srv/jekyll -eJEKYLL_UID=$UID jekyll/builder:pages jekyll build --config _config.yml,_prod.yml
- docker run -it --rm -v $(pwd)/_site:/site -it jekyll/builder:pages /usr/gem/bin/htmlproofer /site --disable-external
Expand Down
9 changes: 9 additions & 0 deletions generate_schemas.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#! /bin/sh
# Generate static schema pages from the ome-model specifications


version=$(awk '/omemodel/{getline; print $0}' _config.yml | sed "s/ version: //")
git clone git://github.com/ome/ome-model -b v$version
(cd ome-model/specification && sh publish)
mv ome-model/specification/target/published Schemas
rm -rf ome-model

0 comments on commit c2e9b14

Please sign in to comment.