Skip to content

Commit

Permalink
Fix GitHub pages wf
Browse files Browse the repository at this point in the history
  • Loading branch information
big-andy-coates committed Nov 13, 2023
1 parent af00701 commit f1a6ab0
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ jobs:
with:
name: functional-summary
- name: Inject Functional JSON into site
run: sed -i $'/FUNCTIONAL_SUMMARY_JSON/ { r build/reports/creek/functional-summary.json\nd }' docs/_docs/*
run: |
sed -i $'/FUNCTIONAL_SUMMARY_JSON/ { r build/reports/creek/functional-summary.json\nd }' docs/_docs/*
cat build/reports/creek/per-draft.md >> "docs/_docs/2. functional.md"
- name: Build with Jekyll
# Outputs to the './docs/_site' directory by default
run: (cd docs && bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}")
Expand Down
13 changes: 8 additions & 5 deletions docs/_docs/2. functional.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,6 @@ Each populated cell also contains a **score**, indicating the functional complet
The **score** weights test results of _required_ features at triple _optional_ features, meaning 75% of the score is reserved for _required_ features,
whereas _optional_ features only account for a maximum 25% of the score.

### Detailed results

Maybe just link to the latest build?

[//]: # (Chart scripts: https://www.chartjs.org/docs/latest/)
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>

Expand Down Expand Up @@ -133,4 +129,11 @@ Maybe just link to the latest build?
});
</script>

[JSON-Schema-Test-Suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite
[JSON-Schema-Test-Suite]: https://github.com/json-schema-org/JSON-Schema-Test-Suite

### Detailed results

Below is a more details set of results for each specification draft an implementation supports.
Each table details the number of test cases that pass and fail for each test file in the JSON schema test suite.

[//]: # (Do not add content below this line, or delete the line following this comment, as the build appends data to this file)
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,13 @@ public PerDraftSummary(final Map<Implementation, JsonSchemaTestSuite.Result> res

public String toMarkdown() {
return results.entrySet().stream()
.map(e -> "## " + e.getKey() + lineSeparator() + e.getValue().toMarkdown())
.map(
e ->
"#### "
+ e.getKey()
+ lineSeparator()
+ lineSeparator()
+ e.getValue().toMarkdown())
.collect(Collectors.joining(lineSeparator()));
}

Expand Down

0 comments on commit f1a6ab0

Please sign in to comment.