File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ # https://docs.readthedocs.com/platform/stable/build-customization.html
2+
3+ version : 2
4+
5+ build :
6+ os : ubuntu-24.04
7+ tools :
8+ python : " 3"
9+ nodejs : " 22"
10+
11+ jobs :
12+ install :
13+ - ./ci/download-hugo.sh
14+ build :
15+ html :
16+ - ./ci/readthedocs-build.sh
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eu
3+
4+ HUGO_VERSION=0.124.1
5+ curl -sfL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION} /hugo_extended_${HUGO_VERSION} _linux-amd64.tar.gz | tar -zxvf - hugo
Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ set -eu
3+
4+ npm ci
5+
6+ BASE_URL=/$( echo $READTHEDOCS_CANONICAL_URL | cut -d/ -f4-)
7+
8+ # For maximum backward compatibility with Hugo modules
9+ export HUGO_ENVIRONMENT=production HUGO_ENV=production
10+
11+ ./hugo \
12+ --gc \
13+ --minify \
14+ --baseURL " $BASE_URL " \
15+ --destination=" ${READTHEDOCS_OUTPUT} /html"
You can’t perform that action at this time.
0 commit comments