reveal-init
is a Shell script π that is used to create a new
Reveal.js presentation project. More specifically, it
copies necessary files from an existing clone of the Reveal.js repository on
your computer into a new directory.
More information can be found in the wiki.
Every time you want to start a Reveal.js presentation project, you probably
have to copy the whole Reveal.js repository, which contains unnecessary files
(e.g. the ones for development, unnecessary themes & plugins) that you'll have
to delete later. reveal-init
helps you get through that intimidating process.
Just use reveal-init
and start working on your slides right away!
reveal-init -t "The State of Being Ordinary" --header _TITLE -f black --plugin zoom-js - ordinary
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title>The State of Being Ordinary</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/black.css">
<div class="reveal">
<div class="slides">
<section>
<h1>The State of Being Ordinary</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize({
dependencies: [
{ src: 'plugin/zoom-js/zoom-js.js' },
]
});
</script>
reveal-init --header "My Point of View" -f sky --plugin notes notes-server - --short-tab my_view
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title></title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/sky.css">
<div class="reveal">
<div class="slides">
<section>
<h1>My Point of View</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize({
dependencies: [
{ src: 'plugin/notes/notes.js' },
{ src: 'plugin/notes-server/notes-server.js' },
]
});
</script>
reveal-init -t "On Serif | John Doe" --header "Serif on the Web" -theme serif -n 12 --short-tab serif
<title>On Serif | John Doe</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/serif.css">
<div class="slides">
<section>
<h1>Serif on the Web</h1>
</section>
<section>
</section>
<section>
</section>
<section>
</section>
<section>
</section>
<script>
Reveal.initialize();
</script>
reveal-init -t "Evolution of Computer Graphics" --header _TITLE -f league --plugin notes notes-server zoom-js - computer_graphics
<title>Evolution of Computer Graphics</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/league.css">
<div class="reveal">
<div class="slides">
<section>
<h1>Evolution of Computer Graphics</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize({
dependencies: [
{ src: 'plugin/notes/notes.js' },
{ src: 'plugin/notes-server/notes-server.js' },
{ src: 'plugin/zoom-js/zoom-js.js' },
]
});
</script>
reveal-init -t "Boring slides | Boring Inc." --header "There's nothing here.<br>Just boring slides." boring
<title>Boring slides | Boring Inc.</title>
<link rel="stylesheet" href="css/reveal.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<div class="reveal">
<div class="slides">
<section>
<h1>There's nothing here.<br>Just boring slides.</h1>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
Reveal.initialize();
</script>
- π Give your
index.html
a<title>
- β Make a big header for your presentation
- π¨ Import 0, 1, or many themes
- βοΈ Import plugins too
- Initiate the project as a Git repository
- 2-space tabs or 4-space tabs
- π Very high flexibility
- Get it.
- Get a clone of Reveal.js's repository
(e.g. with
git clone https://github.com/hakimel/reveal.js
). You can also get a clone of a fork of it. - Set
REVEAL_PATH
to the absolute path of the clone on your computer. - Put
reveal-init
into a PATH directory (e.g./usr/bin
,/usr/local/bin
,~/.local/bin
) . - Run
reveal-init ?
to learn how to use it. - Start sprinkling magic. π
For more information, please consult the reveal-init
wiki.
Licensed under The Unlicense. This means reveal-init
belongs to the Public Domain. A copy of the license can be found in the
repository (see UNLICENSE
).
In some countries, this may not be legally possible. If so:
I grant you the right to use this work for any purpose without any condition, unless there exist conditions required by law. This software does not come with any warranty or liability.
The above statement is the written permission from the author and may be referred to as the "prior written permission" or any phrase that conveys the same meaning.
The same terms (either The Unlicense's terms or the written permission) are also applied to other assets in this repository, excluding the copy of The Unlicense.