This repository houses the documentation for the course PRC2 at Fontys Venlo.
The documentation will be automatically converted to be shown as Github pages at https://fontysvenlo.github.io/prc2/
Prerequisites are:
- Hugo extended edition (for
SASS
build) - npm for installing
Javascript
packages - Asciidoctor for converting
AsciiDoc
- asciidoctor-html5s for converting to semantic html5 (make sure to use the ruby version, not the nodejs version)
- sebi-theme: Theme used for the website. Install by initializing the submodule under
themes/sebi-theme
To build:
- First install needed
Javascript
packages with the following command:npm ci
- Install needed
Javascript
packages of the themecd themes/sebi-theme && npm ci
- Build the website using
Hugo
- Build production:
hugo --minify
- Build development:
hugo server
- Build development with drafts:
hugo server -D
- Build production:
Every page (in content) has what is called a front matter. Here we can specify certain variables.
The most important variables in the front matter are
- title: string, The title of the page
- draft: boolean, whether the page should show up in production build
- slug: string, what the URL to this page should look like, if not specified will be the file name
- menu: specifies that it should be part of a menu
- menu-name: string, the menu name
- weight: int, the weight of the menu item, lower weight if lower in the menu
- menu-name: string, the menu name
The content directory houses the pages that should be generated from the documentation.
There are thee different kinds of pages.
The homepage can be found in _index.adoc
.
These pages contain the documentation for every week of the course.
These pages show up in the sidebar menu.
To create a new docs page use the following command: hugo new docs/<week##>
ℹ️ The convention is to call the files week##
These pages contain miscellaneous content.
These pages show up in the header menu.
To create a new page use the following command: hugo new pages/<name>
This directory contains all the static files, namely
- icons
- images
- webfonts
This is a submodule that contains the theme that is used for the layout of the pages. The theme used is the sebi-theme.
This directory contains all the includes that are referenced by docs
and pages
.
This file contains the configuration for Hugo
, asciidoctor
and sebi-theme
.
This file contains the needed packages to be able to build the website.