No description
Find a file
2025-09-17 11:31:02 +02:00
content adb: screen capture 2025-02-28 14:15:05 +01:00
data/menu update menu icons after theme update 2021-04-01 21:54:56 +03:00
static/_includes Add more knowledge 2022-06-10 14:27:36 +02:00
themes Theme: update to v1.6.1 2025-09-17 11:25:42 +02:00
.envrc Added devenv 2025-09-17 11:31:02 +02:00
.gitignore Added devenv 2025-09-17 11:31:02 +02:00
config.toml fix 'Edit page' 2025-03-13 13:01:14 +01:00
devenv.lock Added devenv 2025-09-17 11:31:02 +02:00
devenv.nix Added devenv 2025-09-17 11:31:02 +02:00
README.md Updated readme 2025-09-17 11:09:45 +02:00

Docs - documentation based on geekdocs.de theme

The theme used by this site is hugo-geekdoc.

Following the geekdocs.de documentation we need to get the theme as archive. Otherwise we need to produce some resources ourselves, using npm gulp.

The theme is extracted under themes/hugo-geekdoc.

Replace the theme whenever a new version is available. Check here for new releases: https://github.com/thegeeklab/hugo-geekdoc/releases

rm -rf themes/hugo-geekdoc
mkdir -p themes/hugo-geekdoc
curl -L https://github.com/thegeeklab/hugo-geekdoc/releases/latest/download/hugo-geekdoc.tar.gz | tar -xz -C themes/hugo-geekdoc/ --strip-components=1
cat themes/hugo-geekdoc/VERSION

On the server there is a post-receive hook which processes the repo via hugo and populates the website. The post-receive hook is below:

#!/bin/bash -e
GIT_FOLDER=$(pwd)
WEB_FOLDER=/var/www/docs
WEBSITE=https://docs.fdb216.nl

WORKING_FOLDER=$(mktemp -d)
cd $WORKING_FOLDER

git clone $GIT_FOLDER .
hugo -b $WEBSITE --cacheDir $(pwd)/cache
rm -rf $WEB_FOLDER/*
mv public/* $WEB_FOLDER

cd - > /dev/null
rm -rf $WORKING_FOLDER

Enjoy!