Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Latest commit

 

History

History
34 lines (19 loc) · 1.46 KB

README.md

File metadata and controls

34 lines (19 loc) · 1.46 KB

PAWA System Testing Slides

The slides are created with Reveal.js, and automatically deployed to Omnia Radix on new commits to the main branch.

Updating content

The contents of the slides are contained in a set of markdown files in the content folder. The markdown files are referenced from the index.html file.

Development environment

Live Server

  • To host the files, use the "Live Server" plugin to VSCode. (It's included in recommend extensions the workspace)
  • Press to "Go Live" icon toolbar bottom right, and the port 5500 is forwarded to your client.

(In order to be able to use the automatic reload up-on changes the 'unsafe-inline' needs to be added to the CSP in index.html. Remember to remove before before making commits.)

Docker

  • docker build -t pawa-slides .
  • docker run -d --name pawa-slides -p 8080:8080 pawa-slides

SRI - Integrity check for own provided source files

To provide a hash for the .js and .css file provided in the source do:

  • cat ./content/js/app.js | openssl dgst -sha512 -binary | openssl base64 -A
  • cat ./content/css/equinor.css | openssl dgst -sha512 -binary | openssl base64 -A

Exporting Slides to PDF

I use https://github.com/astefanutti/decktape to export slides to PDF.

The command looks something like this: decktape -s 1920x1080 http://localhost:5500 ./pdf/slides.pdf