- Based on
Jekyll
(requiresRuby
) - Based on
GitHub Pages
- Ruby installed
- Check if
ruby
is installed on your system viaruby -v
- Check if
- Nodejs installed
- Check if
nodejs
is installed on your system vianode -v
- Check if
- Syllabus Generator (sgen)
- Create directory:
mkdir MLX
- Change to the directory:
cd MLX
- Copy the
.gitignore
file found in this repository to the newly created directory - Initialize the directory as a
git
repositorygit init
- Initialize the directory as a
nodejs
project:npm init -y
- Add the following entries to the
scripts
section of thepackage.json
:
"scripts": {
"build:jekyll": "bundle exec jekyll _3.9.3_ build --incremental --config _offline.yml",
"serve:jekyll": "bundle exec jekyll _3.9.3_ serve --incremental --config _offline.yml"
},
- Copy the
Gemfile
found in this repository or create the file and add the following:touch Gemfile
source "https://rubygems.org"
# https://github.com/github/pages-gem
gem 'github-pages', group: :jekyll_plugins
gem "webrick", "~> 1.8"
- Create a
README.yaml
file that includes the propertiesinput
andoutput
which define a Markdown file used as a template and the output filename respectively.
input: README.draft.md
output: index.md
-
Create the
README.draft.md
-
Run the
sgen README.yaml
command that will produce theindex.md
given theREADME.draft.md
template. -
Include the files
_config.yml
and_offline.yml
into your repo._config.yml
is a configuration file used for building the website usingJekyll
on GitHub pages and_offline.yml
is used for local web development, when running theJekyll
server locally vianpm run serve:jekyll
. -
Enable GitHub Pages on the repository.
- Convert this repository to a GitHub Template