A GitHub pages site which captures language syntax, tools, and ideas to help develop code quicker and better.
This site uses Hugo to parse the files in this GitHub repo and produce a static website which can be run locally or hosted on GitHub pages.
This repo contain a github workflow in .github/worflows/hugo.yaml
.
When a commit is pushed to the branch listed in .github/worflows/hugo.yaml
github will start the worflow.
The results of the workflow can be seen on the GitHub Actions page.
Note that the github-pages environment contains a list of the branches which are allowed to deploy to the github-pages environment.
Required tools:
- git
- Go
- Hugo
Once all of these tools are installed you can serve the site using:
hugo serve -D --disableFastRender
A Hugo Docker image is available
WARNING: Changes to the pages will not be detected when running Hugo in Docker on a Windows host.
Do to a limitation with Docker on Windows which prevents Windows file systems changes from propagating into the linux file system within the container, Hugo will be unable to detect file systems changes and rebuild the site.
To serve the site using docker run:
docker run --rm -it --name hugo `
-v "$($pwd):/src" `
-p 1313:1313 `
[$DOCKER_REG/]klakegg/hugo:<VERSION>-ext server -D
For example:
docker run --rm -it --name hugo `
-v "$($pwd):/src" `
-p 1313:1313 `
klakegg/hugo:hugo:0.111.3-ext server -D