From 4a8a0ac656d36c4a889eaed0e58d450ee5a77d74 Mon Sep 17 00:00:00 2001 From: agnetemoos Date: Wed, 18 Sep 2024 10:33:37 +0200 Subject: [PATCH 1/2] Clarify template creation --- README.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 31b46fde..e0577271 100644 --- a/README.md +++ b/README.md @@ -30,9 +30,11 @@ To add a template: * `my-template-content-example.json` - An example content. * `my-template-schema.json` - Json Schema description of the content for the slide. -Also add one or more entries to `src/slides.js` with examples of the data required for the template. +Add one or more entries to `src/slides.js` with examples of the data required for the template. -To compile the template it is necessary to add it to the webpack setup. +Also import the template in `src/index.js` and add the template to `const renderSlide = {}` in `src/index.js`. + +To compile the template it is necessary to add it to the webpack setup. This is done in `webpack.config.js`. Add it to `const entry = {}`: From 3ab8c237bedfe7cead3e9733c6a4e6fb21f16863 Mon Sep 17 00:00:00 2001 From: Troels Ugilt Jensen <6103205+tuj@users.noreply.github.com> Date: Thu, 26 Sep 2024 11:05:27 +0200 Subject: [PATCH 2/2] Updated changelog and fixed github actions issue --- .github/workflows/pr.yml | 2 +- CHANGELOG.md | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 4d1a0014..95d118f9 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -73,7 +73,7 @@ jobs: - name: Archive screenshots if: ${{ failure() }} - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: cypress-screenhosts-${{ matrix.browser }} path: cypress/screenshots diff --git a/CHANGELOG.md b/CHANGELOG.md index 7c161d45..a9fdc11c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,8 @@ All notable changes to this project will be documented in this file. ## [Unreleased] +- [#156](https://github.com/os2display/display-templates/pull/156) + - Clarified template creation. - [#155](https://github.com/os2display/display-templates/pull/155) - Added single-booking layout to calendar template. - Removed defaultProps.