git clone git@github.com:MediaComem/comem-archidep.git
cd comem-archidep
npm installYou 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 startThis will serve the compiled slides (with live-reload) at http://localhost:3000.
npm run deployThis will compile the slides and commit them to a separate repository that is published on GitHub Pages at https://mediacomem.github.io/comem-archidep/.
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.mdinto the new directory and edit as needed - Create a
subjects/space-time-continuum/imagesdirectory if you need images
npm run doctocThis 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)$PDF_BUILD_DIR- The directory in which the generated PDF slides are saved (defaults topdf)$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-archidep/)