You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .github/workflows/create-data-model-pr.yaml
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -43,11 +43,9 @@ jobs:
43
43
44
44
- name: git stash if material changes have not been made
45
45
# When considering whether it's worth making a PR, ignore the following:
46
-
# - The dataset-site-template version number updating within the template in DatasetSiteMustacheTemplate.cs (affects four lines)
47
-
# - The dataset-site-template version number updating within the template in README.md (affects three lines)
48
-
# - Any updates to the package.json or package-lock.json files in OpenActive.DatasetSite.NET.Generator (not worth creating a PR JUST for these if the new version did not have any implications)
46
+
# - Any updates to the package.json or package-lock.json files in OpenActive.DatasetSite.NET.Generator (not worth creating a PR JUST for these if the template itself has not been updated)
49
47
# git stashing if no material changes allows the next step to close the PR if one is already open
50
-
run: if [ "$(git diff --numstat | grep -vc '^4\s.*DatasetSiteMustacheTemplate\.cs\|3\s.*README\.md\|.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
48
+
run: if [ "$(git diff --numstat | grep -vc '^.*package\.json\|.*package-lock\.json$')" -eq "0" ]; then git stash; else echo "Material changes found"; fi
// Align version number major version to version of template
38
+
updateFile(VERSION_FILE_PATH,x=>{
39
+
constjson=JSON.parse(x);
40
+
constnewVersion=`${getStaticAssetsVersion()}.0`;
41
+
if(json.version==newVersion){
42
+
console.log("NO MAJOR VERSION CHANGE DETECTED: Hence no update is required. Updates to the template within dataset-site-template must come with a major version bump");
<p><large><strong>Error: Static Assets Not Found</strong><large></p>
1421
1421
<p>This HTML page must reference self-hosted static assets located at the relative or absolute path configured by ""staticAssetsPathUrl"" in the mustache template source data.</p>
1422
-
<p>""staticAssetsPathUrl"" is currently set to ""{{staticAssetsPathUrl}}"", and this page has failed to access this file: <pre>{{staticAssetsPathUrl}}/datasetsite.styles.v1.0.19.css</pre></p>
1422
+
<p>""staticAssetsPathUrl"" is currently set to ""{{staticAssetsPathUrl}}"", and this page has failed to access this file: <pre>{{staticAssetsPathUrl}}/datasetsite.styles.v3.css</pre></p>
1423
1423
<p>Please ensure that the assets at this location exactly match those in
1424
-
<a href=""https://unpkg.com/@openactive/dataset-site-template@1.0.19/dist/datasetsite-csp.static.zip"">datasetsite-csp.static.zip version 1.0.19</a>.</p>
1424
+
<a href=""https://unpkg.com/@openactive/dataset-site-template@3.0.0/dist/datasetsite-csp.static.zip"">datasetsite-csp.static.zip version 3</a>.</p>
1425
1425
<p></p>
1426
1426
<p>See the <a href=""https://github.com/openactive/dataset-site-template"">""CSP compatible template"" documentation</a> for more information</p>
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,7 +34,7 @@ Simply call one of the Render methods detailed below to output self-contained HT
34
34
35
35
Returns a string corresponding to the compiled HTML, based on an embedded version of `datasetsite.mustache`, the provided `settings`, and `supportedOpportunityTypes`.
36
36
37
-
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v1.0.19](https://unpkg.com/@openactive/dataset-site-template@1.0.19/dist/datasetsite-csp.static.zip) at this location.
37
+
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v3](https://unpkg.com/@openactive/dataset-site-template@3.0.0/dist/datasetsite-csp.static.zip) at this location.
38
38
39
39
`supportedOpportunityTypes` must be a `List<OpportunityType>`, which auto-generates the metadata associated which each feed using best-practice values.
40
40
@@ -133,7 +133,7 @@ var dataFeedDescriptions = new List<string> {
133
133
};
134
134
```
135
135
136
-
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v1.0.19](https://unpkg.com/@openactive/dataset-site-template@1.0.19/dist/datasetsite-csp.static.zip) at this location.
136
+
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v3](https://unpkg.com/@openactive/dataset-site-template@3.0.0/dist/datasetsite-csp.static.zip) at this location.
137
137
138
138
139
139
#### Example
@@ -227,7 +227,7 @@ Returns a string corresponding to the compiled HTML, based on an embedded versio
227
227
228
228
The `dataset` argument must be an object of type `OpenActive.NET.Dataset`, and must contain the properties required to render the dataset site.
229
229
230
-
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v1.0.19](https://unpkg.com/@openactive/dataset-site-template@1.0.19/dist/datasetsite-csp.static.zip) at this location.
230
+
If `staticAssetsPathUrl` is provided, the [CSP-compatible template](https://developer.openactive.io/publishing-data/dataset-sites#template-hosting-options) is rendered. In this case you must ensure that you are serving the contents of [CSP compatible static assets archive v3](https://unpkg.com/@openactive/dataset-site-template@3.0.0/dist/datasetsite-csp.static.zip) at this location.
0 commit comments