Coder Social home page Coder Social logo

slides's Introduction

Slides

Slides for various talks I give and have given. They are written with the awesome Asciidoctor and visualized with reveal.js. Thanks to GitHub Pages you can see them on slides.nipafx.dev.

Setup

Repository Structure

An amalgam of submodules and worktrees...

Branch master

  • _asciidoctor-reveal.js (submodule ~> CodeFX-org/asciidoctor-reveal.js; nipa-talks)
  • _shared (contains snippets that are shared among presentations)
  • _shared-images (contains images that are shared among presentations)
  • a subdirectory for each presentation, with all required files except shared ones
  • meta-information (LICENSE, README, ...)

After checkout, the submodule needs to be initialized and the gh-pages branch should be added as a worktree to master:

git submodule update
git worktree add _slides gh-pages

Then run bundle install to install all the right Ruby Gems as described in the Asciidoctor-Reveal.js setup guide.

Branch gh-pages

  • _highlight.js (downloaded from highlightjs.org)
  • images (folder for landing page)
  • _reveal.js (submodule ~> CodeFX-org/reveal.js; nipa-talks)
  • _template (a template for presentations)
  • landing page (favicon, index.html, CNAME for GH Pages)

After checkout, the submodule needs to be initialized:

git submodule update

Asciidoctor

After installing bundler, run bundle install to install all required Ruby gems.

Editing...

Slides

To generate a slide deck (for example java-next), you need to run this in the repository's root:

bundle exec asciidoctor-revealjs java-next/_presentation.adoc -o _slides/java-next/index.html

If you want to automate that, you can run bundle exec guard in the same folder. It detects file system changes and calls the same command for the edited slide deck. (It does not use the asciidoctor gem directly because that does not resolve include-directives - at least not on my machine.)

Themes

Finally, to edit the theme do a full setup for reveal.js in _slides/_reveal.js. Here, grunt serve will automatically pick up changes in _slides/_reveal.js/css/theme/source and create the CSS files in the correct location.

slides's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.