git clone [email protected]:MediaComem/comem-archioweb.git
cd comem-archioweb
npm install
You will also have to re-run npm install
when someones adds or updates a dependency.
All the following commands should be run from the project's directory.
npm start
This will serve the compiled slides (with live-reload) at http://localhost:3000.
npm run deploy
This will compile the slides and commit them to a separate repository that is published on GitHub Pages at https://mediacomem.github.io/comem-archioweb/.
Warning: this runs a script which requires a Unix shell (use Git Bash or equivalent on Windows).
- Create a new directory under
subjects
, e.g.subjects/space-time-continuum
- Copy the subject template at
templates/README.md
into the new directory and edit as needed - Create a
subjects/space-time-continuum/images
directory if you need images
npm run doctoc
This will update the tables of contents in all Markdown files using doctoc.
To edit the slides, you should be familiar with:
- Remark
- Remark's Markdown syntax
- md2remark (converter of regular Markdown to Remark Markdown)
The following environment variables can be used for customization:
$BROWSER
- The browser with which to open the slides when running the slides server (defaults to your system's browser)$BUILD_DIR
- The directory in which the generated HTML slides are saved (defaults tobuild
)$LIVERELOAD_PORT
- The port on which the live-reload server is run (defaults to 35729)$PORT
- The port on which the slides server is run (defaults to 3000)$SOURCE_VERSION
- The branch/commit to which source links to GitHub (in the top-right corner of slides) will point to (defaults to the current branch, or the latest commit when usingnpm run deploy
)$WEB_URL
- The URL to which the home link (in the top-right corner of slides) will point to (defaults tohttps://mediacomem.github.io/comem-archioweb/
)