A presentation starter kit to get up and running with an OPi branded presentation quicky and easily. Also see workshop-starter-kit.
- Clone this repo
- Run
yarn
ornpm install
to install dependencies yarn start
ornpm start
to start a local http server on port 3000
Markdown is the preferred authoring language for authoring slides. To add additional slides, simply create a .md
file in src/slides and it'll be picked up automatically by the slide deck. For instance, let's walk through adding a new section of slides.
To keep things nice and tidy, I recommend using folders of slides, e.g. src/slides/00-intro
as an example. To create a new section, simply create a new folder, e.g. mkdir -p src/slides/01-getting-started
. Inside, we can add a markdown file, e.g. touch src/slides/01-getting-started/00-index.md
. The slides within are sorted in alphanumeric order so that sort order remains in the slide deck what it is on the local file system.
We're using Reveal.js, which contains support for "groups" of slides to logically group within an individual unit. To support this, we use Markdown breaks, e.g. ---
or ___
to separate individual slides. Let's look at an example.
## First slide
This is the first slide
---
## This is a second slide
This will be the second slide!
Using the break ---
we have created two, separate slides, which works pretty well! Additionally, all the niceties of Markdown remain, e.g. syntax highlighting with backticks in particular. If you'd like to add additional languages to the syntax highlighter, please do so in src/components/slide-deck/slide-deck.js
As static content, you can use whatever you please to host the resulting presentation. I would recommend using Netlify, which is a great, free static content host. To deploy to Netlify, simply:
- Create a new repo under either objectpartners group or your own account--consider making it public!
- Go to netlify and add the repo
- No settings need to be tweaked. netlify.toml is already in the root of this repo, and so the default settings can be used.
- Watch the site deploy to your randomized domain
This will get you a free, statically hosted presentation with a friendly URL in front of it that can be easily shared to training attendees. 🎉 You can easily put a CNAME in front of your hosting provider to redirect to your own URL, if desired.