This repository contains both the content and the static-site generator code for the AIRLab website.
A rendered website will be automatically pushed to airlab-unsri.github.io repository by Travis CI.
-
Clone this repository
git clone git@github.com:airlab-unsri/website.git
-
Initialize git submodule
cd website make init
To run a local server that displays the generated site, run:
make serve
You should now be able to view the generated site at http://localhost:1313/.
To generate the static site, run:
make build
The resulting static site will be stored in the public
directory.
This site is automatically deployed using Netlify and Travis CI.
Netlify creates deploy preview for every pull request. To view this for a PR where all checks have passed:
- In the CI section of the PR, click on "Show all checks".
- On the "deploy/netlify" entry, click on "Details" to view the preview site for the PR. You may have to wait a while for the "deploy/netlify" check to appear after creating or updating the PR, even if the other checks have already passed.
Travis CI builds and deploys the changes on the master branch to the main site at https://airlab-unsri.github.io.
- Create new folder for new user in
content/authors/
. E.g:content/authors/newuser/
. - Go to new created folder, then add new
_index.md
and new avatar picture (.jpg or .png format). - Fill the information on
_index.md
.