Migrate generated schemas pages under static website #286
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
During the migration of the OME website 2 years ago, the OME schemas kept on the legacy server and proxied to the new website.
One of the main issue of the architecture above is any downtime of
www
orwww-legacy
will cause schemas to be offline. The impact of such unavailability is the potential inability to validate any OME-TIFF file.A second issue is the complexity of process for updating these pages either when releading new schemas, adding new representations of the OME specification (see ome/ome-model#89) or simply updating the static HTML pages.
Proposal
This PR adds a preliminary step to add the OME XSD schemas, XSLT transforms and landing pages to the source of this repository. The website generated by Jekyll would already include all the Data Model schemas. Changes can be reviewed via GitHub pages part, schema pages would be part of the release assets and no proxying would be necessary in production.
Similar to #269, the main issue is to prevent specifications out-of-sync with the upstream specification defined in the ome-model repository. An inital attempt (827c8b80) checked out the schema pages under version control with a validation script. Following initial feedback, the sources for the schemas, transforms and schema landing pages are now generated in a pre-build step using the
generate_schemas.sh
script.Testing
With this PR included, http://snoopycrimecop.github.io/www.openmicroscopy.org/Schemas/ should now include the landing pages and schemas.
Next steps
If the strategy proposed above is suitable and no alternate proposal comes up,:
publish
script to this repositorySchemas
vsXMLSchemas
Outside the scope of this effort