Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate examples #578

Merged
merged 3 commits into from
Feb 5, 2018
Merged

Validate examples #578

merged 3 commits into from
Feb 5, 2018

Conversation

gkellogg
Copy link
Member

This adds a Ruby script that extracts examples from the 3 specs (soon 2) and validates them for basic syntactic correctness, and to be sure that example titles are not reused.

The rake task also can be used to extract the examples as individual files into the /examples folder.

Next steps will be to validate that the examples actually produce the results described in neighboring examples, or in some other embedded code. Also, these can be used to automatically create YAML versions of the JSON examples.

As a result, some syntactic problems were identified and corrected.

Tests are run automatically on Travis-CI and can be used as the basis of validating PRs. See https://travis-ci.org/json-ld/json-ld.org/branches for example CI run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants