Giter Site home page Giter Site logo

jermarchand / sensei Goto Github PK

View Code? Open in Web Editor NEW

This project forked from zenika/sensei

0.0 0.0 0.0 1.99 MB

A replacement for https://github.com/Zenika/zenika-formation-framework/

License: Other

Dockerfile 0.81% HTML 2.65% JavaScript 59.15% CSS 36.25% Shell 0.88% Makefile 0.26%

sensei's Introduction

@zenika/sensei

Sensei is meant to be a replacement of zenika-formation-framework, using a simpler and newer stack. It's not up-to-par in terms of features, but it's ready for test drives.

Installation

Using the published Docker image ๐Ÿณ

  • Pull the image with docker image pull zenika/sensei

  • Create an alias sensei

    alias sensei='docker container run \
      --pull always \
      --interactive \
      --tty \
      --rm \
      --volume $(pwd):/$(basename $(pwd)) \
      --workdir /$(basename $(pwd)) \
      --publish ${SENSEI_PORT:-8080}:${SENSEI_PORT:-8080} \
      --env SENSEI_PORT \
      --cap-add=SYS_ADMIN \
      zenika/sensei'

โš  When running sensei inside a Docker container, the --material is limited to descendants of the working directory.

โš  If you expect to use this alias within Git Bash for Windows, you might need to set MSYS_NO_PATHCONV to 1 to disable path conversion on the volume paths. This avoids the C:/Program Files/Git/...: no such file or directory type of errors.

Using a Docker image built from sources ๐Ÿณ

  • Clone this repo and cd into the created folder
  • Build the image with sh build.sh
  • Create the same alias as for the published Docker image but without the --pull always

โš  When running sensei inside a Docker container, the --material is limited to descendants of the working directory.

Using Node.js

  • Install with npm install --global https://github.com/Zenika/sensei

Usage

Help

Run sensei --help for available commands and options.

Generating PDFs

  • cd into a training material folder (must have Slides/slides.json and Workbook/parts.json)
  • Run sensei pdf
  • PDFs are generated inside pdf folder

โš ๏ธ Note about slide sizing and PDF rendering: to avoid any layout inconsistencies, the width and height values present in src/slides/slides.js file must match the values of the --size parameter in the slides npm script

Serving the slides and labs

  • cd into a training material folder (must have Slides/slides.json and Workbook/parts.json)
  • Run sensei serve
  • Navigate to http://localhost:8080/

Reveal plugins

The following plugins are enabled:

  • Markdown
  • Highlight
  • Zoom
  • Notes
  • Math

Refer to Reveal's documentation for usage.

sensei's People

Contributors

hgwood avatar zigarn avatar dependabot[bot] avatar ebriand avatar mchoraine avatar moreau-nicolas avatar jlandure avatar

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.