Skip to content

Commit

Permalink
fix reveal
Browse files Browse the repository at this point in the history
  • Loading branch information
ombre8 committed Dec 5, 2024
1 parent 0076416 commit 0a61175
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
10 changes: 2 additions & 8 deletions slides/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,15 @@ ENV NPM_CONFIG_CACHE=/tmp/.npm

WORKDIR /app

RUN git clone https://github.com/hakimel/reveal.js.git reveal \
&& git clone https://github.com/puzzle/pitc-revealjs-theme.git puzzle-theme \
&& mv puzzle-theme/css/theme/puzzle.css reveal/css/theme/ \
&& mv puzzle-theme/css/theme/source/puzzle.scss reveal/css/theme/source/ \
&& mv puzzle-theme/css/theme/source/puzzle-imgs reveal/css/theme/source/ \
&& rm -rf puzzle-theme \
&& rm -rf reveal/.git/
RUN git clone https://github.com/hakimel/reveal.js.git reveal

WORKDIR reveal

COPY slides/ansible-techlab ./ansible-techlab
COPY slides/index.html.patch .

RUN patch --forward --strip=1 index.html --input=index.html.patch \
&& npm install && npm run build -- css-themes
&& npm install

RUN chgrp -R 0 ${NPM_CONFIG_CACHE} \
&& chmod -R g=u ${NPM_CONFIG_CACHE}
Expand Down
4 changes: 2 additions & 2 deletions slides/index.html.patch
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
--- index_orig.html 2021-10-27 21:22:24.221941946 +0200
+++ index.html 2021-10-27 21:07:05.583077961 +0200
@@ -8,17 +8,20 @@

<link rel="stylesheet" href="dist/reset.css">
<link rel="stylesheet" href="dist/reveal.css">
- <link rel="stylesheet" href="dist/theme/black.css">
+ <link rel="stylesheet" href="dist/theme/puzzle.css" id="theme">
+ <link rel="stylesheet" href="https://puzzle.github.io/pitc-revealjs-theme/2.2.0/puzzle.css" id="theme">

<!-- Theme used for syntax highlighted code -->
- <link rel="stylesheet" href="plugin/highlight/monokai.css">
Expand Down

0 comments on commit 0a61175

Please sign in to comment.