Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,23 @@
# set shell settings (see https://sipb.mit.edu/doc/safe-shell/)
set -eu -o pipefail

HUGO_ARGS=""

# Change baseURL for branches other than master. Required to get relative
# links (like OpenGraph images) working on branches.
BRANCH_NAME="${GITHUB_REF:-}"
BRANCH_NAME="${BRANCH_NAME#refs/heads/}"
BRANCH_SLUG=$(echo $BRANCH_NAME | sed -e 's/[^A-Za-z0-9_-]/_/g')
if [[ -n "$BRANCH_SLUG" && "$BRANCH_SLUG" != "master" ]]; then
BASE_URL="https://librepcb.org/_branches/$BRANCH_SLUG/"
HUGO_ARGS+=" -b $BASE_URL"
echo "Overriding baseURL for branch: $BASE_URL"
fi

# Run Hugo with Docker
docker run -t --rm -u `id -u`:`id -g` -v `pwd`:/work -w /work \
librepcb/librepcb-dev:webtools-1 \
hugo -F
hugo -F $HUGO_ARGS

# Make 404.html working on *any* path
sed -i 's/"\.\//"\//g' public/404.html
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
344 changes: 344 additions & 0 deletions content/blog/2026-05-19_release_2.1.0/index.adoc

Large diffs are not rendered by default.

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading