Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

DO500 Instructor Slides

Full setup

Some reveal.js features, like external Markdown and speaker notes, require that presentations run from a local web server. The following instructions will set up such a server as well as all of the development tasks needed to make edits to the reveal.js source code.

  1. Install Node.js (4.0.0 or later)

  2. Clone the reveal.js repository

    [user@host path]$ git clone https://github.com/rht-labs/enablement-docs
  3. Navigate to the slides folder

    [user@host path]$ cd slides
  4. Install npm dependencies:

    [user@host path]$ npm install
  5. Serve the presentation and monitor source files for changes:

    [user@host path]$ npm start
  6. Open http://localhost:8000 to view your presentation. You can change the port by using:

    [user@host path]$ npm start -- --port=8001

Folder Structure

  • css/ Core styles without which the project does not function

  • js/ Like above but for JavaScript

  • plugin/ Components that have been developed as extensions to reveal.js

  • lib/ All other third party assets (JavaScript, CSS, fonts)

Printing to PDF

  1. Run the slides locally as described above.

  2. Open the slides in Chrome or Chromium.

  3. Add ?print-pdf to the URL. For example: http://localhost:8000/chapter17.html?print-pdf#/

  4. use Headless Chrome to download the pdf by using

    for i in `seq 1 9`;
    do
        $GOOGLE_CRHOME_PATH --headless --disable-gpu --print-to-pdf=./chapter0$i.pdf http://localhost:8000/chapter0$i.html\?print-pdf\#/
    done
    for i in `seq 10 17`;
    do
        $GOOGLE_CHROME_PATH --headless --disable-gpu --print-to-pdf=./chapter$i.pdf http://localhost:8000/chapter$i.html\?print-pdf\#/
    done

if you are using macOS the Google Chrome path is in /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome