Skip to content

Commit 341ba7b

Browse files
authored
Initial commit
0 parents  commit 341ba7b

16 files changed

+10365
-0
lines changed

.gitignore

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
/.bootstrap/
2+
/.idea/
3+
*.iml
4+
*.iws
5+
*.eml
6+
out/
7+
.DS_Store
8+
.svn
9+
log/*.log
10+
tmp/**
11+
node_modules/
12+
.sass-cache
13+
~*.pptx

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "reveal.js"]
2+
path = reveal.js
3+
url = https://github.com/hakimel/reveal.js.git

.vscode/extensions.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
"sandcastle.vscode-open",
4+
"mushan.vscode-paste-image",
5+
"felipecaputo.git-project-manager",
6+
"mhutchie.git-graph",
7+
"waderyan.gitblame",
8+
"streetsidesoftware.code-spell-checker",
9+
"streetsidesoftware.code-spell-checker-german",
10+
"davidanson.vscode-markdownlint"
11+
]
12+
}

.vscode/settings.json

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"cSpell.language": "en,de",
3+
"files.autoSave": "afterDelay",
4+
"markdownlint.config": {
5+
"MD041": false
6+
},
7+
}

.vscode/tasks.json

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"label": "Install dependencies",
6+
"type": "shell",
7+
"command": "npm install",
8+
"options": {
9+
"env": {
10+
"PUPPETEER_SKIP_DOWNLOAD": "1"
11+
}
12+
},
13+
"problemMatcher": []
14+
},
15+
{
16+
"label": "Run local web server",
17+
"type": "shell",
18+
"command": "npm start",
19+
"problemMatcher": []
20+
},
21+
{
22+
"label": "View slides (presentation mode)",
23+
"type": "shell",
24+
"command": "start http://localhost:8000/",
25+
"problemMatcher": []
26+
},
27+
{
28+
"label": "View presentation (PDF mode)",
29+
"type": "shell",
30+
"command": "start http://localhost:8000/?print-pdf",
31+
"problemMatcher": []
32+
}
33+
]
34+
}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2024 - Karsten A. M. Guenther
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Slides Template
2+
3+
This template provides a basic structure for creating beautiful presentations using [reveal.js](https://revealjs.com/).
4+
5+
See the [reveal.js documentation](https://revealjs.com/) for more information.
6+
7+
## Editing and viewing locally
8+
9+
* Create a new repository using this template.
10+
* Clone the respective repository including submodules:
11+
12+
```powershell
13+
git clone --recurse-submodules <repoUrl>
14+
```
15+
16+
* For editing the slides I recommend using [Visual Studio Code](https://code.visualstudio.com/).
17+
* I prefer to use markdown to create my slides, you need to install and run a local webserver to view them:
18+
* In case you do not have nodejs on your machine and you are using Windows, just execute `install.bat`.
19+
* To install the webserver, run `npm install` in the root folder of the repository or use the VS Code task `Install dependencies`.
20+
* To run the webserver, run `npm start` in the root folder of the repository or use the VS Code task `Run local webserver`.

css/custom.css

+63
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
.red {
2+
color: rgb(198, 6, 6);
3+
}
4+
5+
.yellow {
6+
color: rgb(198, 198, 0);
7+
}
8+
9+
.green {
10+
color: rgb(10, 98, 10);
11+
}
12+
13+
.blue {
14+
color: rgb(0, 0, 198);
15+
}
16+
17+
.strike {
18+
text-decoration: line-through;
19+
}
20+
21+
.underline {
22+
text-decoration: underline;
23+
}
24+
25+
.transparent {
26+
opacity: 0.01;
27+
}
28+
29+
.mono {
30+
font-family: monospace;
31+
background-color: gray;
32+
}
33+
34+
.reveal .adjust-section-structure {
35+
font-size: 0.5em;
36+
}
37+
38+
.reveal .flex-container {
39+
display: flex;
40+
}
41+
42+
.reveal .flex-container .half {
43+
flex: 1;
44+
width: 50%;
45+
}
46+
47+
.reveal h1,
48+
.reveal h2,
49+
.reveal h3 {
50+
text-transform: none;
51+
}
52+
53+
.reveal code * {
54+
font-family: monospace;
55+
}
56+
57+
.fragment.blur {
58+
filter: blur(5px);
59+
}
60+
61+
.fragment.blur.visible {
62+
filter: none;
63+
}

index.html

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<!doctype html>
2+
<html lang="en">
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
7+
8+
<title>My Presentation Template</title>
9+
10+
<link rel="stylesheet" href="reveal.js/dist/reset.css">
11+
<link rel="stylesheet" href="reveal.js/dist/reveal.css">
12+
<link rel="stylesheet" href="reveal.js/dist/theme/black.css">
13+
<link rel="stylesheet" href="css/custom.css">
14+
15+
<!-- Theme used for syntax highlighted code -->
16+
<link rel="stylesheet" href="reveal.js/plugin/highlight/monokai.css">
17+
</head>
18+
19+
<body>
20+
<div class="reveal">
21+
<div class="slides">
22+
<section>
23+
<h2>My Presentation Template</h2>
24+
(using <a href="https://revealjs.com/">reveal.js</a>)
25+
</section>
26+
<section data-markdown="slides/01.md" data-separator="^\r?\n---\r?\n$"
27+
data-separator-vertical="^\r?\n--\r?\n$">
28+
</section>
29+
</div>
30+
</div>
31+
32+
<script src="reveal.js/dist/reveal.js"></script>
33+
<script src="reveal.js/plugin/notes/notes.js"></script>
34+
<script src="reveal.js/plugin/markdown/markdown.js"></script>
35+
<script src="reveal.js/plugin/highlight/highlight.js"></script>
36+
<script>
37+
// More info about initialization & config:
38+
// - https://revealjs.com/initialization/
39+
// - https://revealjs.com/config/
40+
Reveal.initialize({
41+
hash: true,
42+
slideNumber: true,
43+
pdfSeparateFragments: false,
44+
pdfMaxPagesPerSlide: 1,
45+
// Learn about plugins: https://revealjs.com/plugins/
46+
plugins: [RevealMarkdown, RevealHighlight, RevealNotes],
47+
//width: "80%",
48+
//height: "100%",
49+
});
50+
</script>
51+
</body>
52+
53+
</html>

install.bat

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pushd %~dp0
2+
powershell -ExecutionPolicy Bypass -File .\install.ps1 %* || exit /b 1
3+
popd

install.ps1

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
function Invoke-Bootstrap {
2+
Invoke-RestMethod https://raw.githubusercontent.com/avengineers/bootstrap-installer/v1.6.2/install.ps1 | Invoke-Expression
3+
. .\.bootstrap\bootstrap.ps1
4+
}
5+
6+
## start of script
7+
# Always set the $InformationPreference variable to "Continue" globally,
8+
# this way it gets printed on execution and continues execution afterwards.
9+
$InformationPreference = "Continue"
10+
11+
# Stop on first error
12+
$ErrorActionPreference = "Stop"
13+
14+
Push-Location $PSScriptRoot
15+
16+
try {
17+
Invoke-Bootstrap
18+
npm install
19+
}
20+
finally {
21+
Pop-Location
22+
Read-Host -Prompt "Press Enter to continue ..."
23+
}
24+
## end of script

0 commit comments

Comments
 (0)