This project builds a static page using Gulp, and Pug that allows content creation for a simple course website that has Labs and Lectures.
Lectures are built using reveal.js. There are specialized pug filters/mixins available.
Labs generated via the main index page. Building the labs utilize multiple blocks to quickly make labs of a designated format.
See the currently in use site: SE2205B - Data Structures and Algorithms - Winter 2017.
- Install nodejs, preferably the current release.
- Install yarn and gulp:
npm install -g yarn gulp-cli#4.0
- Clone the repository
- Pull submodules:
git submodule update --init --recursive
- Install dependencies:
yarn install
- Create a .env file:
# Sample .env file
PDF_HREF_BASE=https://my-page.github.io/
- Build:
gulp build
, for production:NODE_ENV=production gulp build
- Dev server:
gulp watch serve
(note, must runbuild
at least one before) - Open up the browser to the URL printed, e.g.
http://localhost:8000/
.
- If some images/assets do not load, it may be caused by the development server.