diff --git a/README.md b/README.md index 7ae281b6..1c84c206 100644 --- a/README.md +++ b/README.md @@ -17,20 +17,20 @@ Current [`revealjs`](https://github.com/hakimel/reveal.js) version: `4.6.1` ## Examples -- `npm install` -> Install all dependencies. -- `npm run present` -> Presentation in Browser. -- `npm run package` -> PDF & HTML and standalone `zip` file to distribute. +- `just install` -> Install all dependencies. +- `just present` -> Presentation in Browser. +- `just package` -> PDF & HTML and standalone `zip` file to distribute. ## Modifications - Edit design in [`company.scss`](css/theme/source/company.scss). - Company Logo: Edit the file [`company-logo.svg`](css/theme/source/files/company-logo.svg). -- Replace embedded image in [`company.scss`](css/theme/source/company.scss) with - ```shell - repl=$(cat css/theme/source/files/company-logo.svg | base64 -w 0| sed "s/\+/\\\+/g") && - sed -i -E "s@background-image(.*);base64,.*\"@background-image\1;base64,$repl\"@" css/theme/source/company.scss - ``` + - Replace embedded image in [`company.scss`](css/theme/source/company.scss) with + + ```shell + just bake-logo + ``` # RevealJS diff --git a/justfile b/justfile new file mode 100644 index 00000000..f4f44876 --- /dev/null +++ b/justfile @@ -0,0 +1,17 @@ +set positional-arguments +set shell := ["bash", "-cue"] +root_dir := justfile_directory() + +install: + npm run install + +present: + npm run present + +package: + npm run package + +bake-logo: + cd "{{root_dir}}" && \ + repl=$(cat css/theme/source/files/company-logo.svg | base64 -w 0| sed "s/\+/\\\+/g") && \ + sed -i -E "s@background-image(.*);base64,.*\"@background-image\1;base64,$repl\"@" css/theme/source/company.scss