Website for proton irradiation station at IFJ PAN:
- development version of the site: https://grzanka.github.io/nz62www/
- production version of the site: https://www.ifj.edu.pl/dept/no6/nz62/www/
This repository uses git submodules, therefore simple git clone operation may not be enough to get all contents. Git submodules are used for Hugo static HTML generator theme. Clone the repo:
git clone git@github.com:grzanka/nz62www.git --recursive
or
git clone git@github.com:grzanka/nz62www.git
git submodule update --init
Install Hugo:
sudo snap install hugo
or:
sudo apt install hugo
Generate the website:
cd nz62www
hugo
The page is generated using [Hugo]https://gohugo.io). The repository contains:
content/
- directory with the content of the page in the Markdown formatconfig.toml
- configuration file for the Hugo generatorlayouts
- custom layouts adjustments for the themethemes
- directory with the customised Hugo docdock theme.env
- file with enviroment variables for connection details to deploy site to IFJ server (server, username, path)deploy.sh
- deploy script which builds the page and uploads it to IFJ server
Page layout is based on the DocDock theme.
Github Actions (customised in .github/workflows/
) are used to run automatic tests after every commit.
These checks ensure that the page is generated correctly and that all links are valid.
LFTP deploy is handled by deploy.sh
script. It assumes that necessary credentials are stored in the .env
file of in the environment variables.
You can use it to deploy site to the IFJ web server.
If you want to contribute to the page, please follow these steps:
- Create new branch from the main
master
branch - Make changes in the new branch
- Create pull request to the
master
branch - Wait for the review and merge. Once the pull requests is merged, Github Actions will automatically deploy the page to https://grzanka.github.io/nz62www/