From 664f9eb24f567a8578afb97e013598f28df6c51e Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Tue, 9 Jun 2026 16:29:58 +0200 Subject: [PATCH 1/7] scss travis savings test --- .travis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.travis.yml b/.travis.yml index 66aaa9309ec..fa2ac63c96e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,6 +42,7 @@ cache: # See https://docs.travis-ci.com/user/caching/ directories: - node_modules + - resources/_gen before_install: ############### From a654de9c01692fb747ccdac7a093bbea663f865f Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Tue, 9 Jun 2026 16:55:49 +0200 Subject: [PATCH 2/7] generated resources test for caching --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fa2ac63c96e..ea505f17bc0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -42,7 +42,7 @@ cache: # See https://docs.travis-ci.com/user/caching/ directories: - node_modules - - resources/_gen + - resources/_gen # cache the generated resources to speed up builds - this is safe as they are always regenerated by Hugo, so if they are stale it won't cause any issues. before_install: ############### From 39b78c5b7c3161b7a2bd8f0f8d62609faf83d2fd Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Tue, 9 Jun 2026 17:24:16 +0200 Subject: [PATCH 3/7] reducing git depth for travis build --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index ea505f17bc0..796e7e90faa 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ os: linux # optional, this is default dist: jammy # or bionic | xenial | trusty | precise with xenial as default - Recommended here: https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments git: - depth: 20000 # We're cloning this many commits as it is roughly covering the last 4 years of commits, thus letting us show the last changed date on the documentation pages. + depth: 2000 # We're cloning this many commits as it is roughly covering the last 4 years of commits, thus letting us show the last changed date on the documentation pages. quiet: true # prevent commit numbers appearing in the log and being flagged as potential security leaks. submodules: false # turn off submodules From f8c42b9efd484f743f408e5f7915836a9f4ce686 Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Wed, 10 Jun 2026 09:44:17 +0200 Subject: [PATCH 4/7] test dev --- config/development/hugo.toml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/development/hugo.toml b/config/development/hugo.toml index 4afbb38125f..a95bfce219c 100644 --- a/config/development/hugo.toml +++ b/config/development/hugo.toml @@ -9,3 +9,9 @@ title = "Mendix DEVELOPMENT Documentation" buildDrafts=true buildExpired=true buildFuture=true + +# Disable print output format in development. Production still generates print versions +[outputs] + _merge = 'deep' + section = ["HTML"] + page = ["HTML"] From ec55cbcd8760f2ff4e1af54f189491365b2875ab Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Wed, 10 Jun 2026 10:01:18 +0200 Subject: [PATCH 5/7] removing the enablegitingo --- config/_default/hugo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/_default/hugo.toml b/config/_default/hugo.toml index 6a20bfd3891..af54dcd4e32 100644 --- a/config/_default/hugo.toml +++ b/config/_default/hugo.toml @@ -12,7 +12,7 @@ themesDir = "node_modules" refLinksErrorLevel = "WARNING" # Will give values to .Lastmod etc. -enableGitInfo = true +enableGitInfo = false # Language settings contentDir = "content/en" From dc49c35038bafda85e02be2650edc2dffcc7fcec Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Thu, 11 Jun 2026 14:50:55 +0200 Subject: [PATCH 6/7] updating hugo for build speed test --- .travis.yml | 2 +- package-lock.json | 12 ++++++------ package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 796e7e90faa..b39709e8d91 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,7 +7,7 @@ os: linux # optional, this is default dist: jammy # or bionic | xenial | trusty | precise with xenial as default - Recommended here: https://docs.travis-ci.com/user/reference/overview/#deprecated-virtualization-environments git: - depth: 2000 # We're cloning this many commits as it is roughly covering the last 4 years of commits, thus letting us show the last changed date on the documentation pages. + depth: 10000 # We're cloning this many commits as it is roughly covering the last 4 years of commits, thus letting us show the last changed date on the documentation pages. quiet: true # prevent commit numbers appearing in the log and being flagged as potential security leaks. submodules: false # turn off submodules diff --git a/package-lock.json b/package-lock.json index c9e6b1a93f8..c302adb6cc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15,7 +15,7 @@ "devDependencies": { "autoprefixer": "^10.4.19", "docsy": "github:google/docsy#semver:0.15.0", - "hugo-extended": "^0.156.0", + "hugo-extended": "^0.163.0", "postcss": "^8.5.10", "postcss-cli": "^8.3.1" } @@ -527,15 +527,15 @@ "dev": true }, "node_modules/hugo-extended": { - "version": "0.156.0", - "resolved": "https://registry.npmjs.org/hugo-extended/-/hugo-extended-0.156.0.tgz", - "integrity": "sha512-65/OU9W2PVzn1pWaxF8tu/3rTnglHn6hr4dBjABDo4DIOLjb9qpp+9wwh9PGkDTvhwyxk4pkHieWORn0MgDXqA==", + "version": "0.163.0", + "resolved": "https://registry.npmjs.org/hugo-extended/-/hugo-extended-0.163.0.tgz", + "integrity": "sha512-ztMzbS4O3/KWHW8JZ2EGpHZ3dpP9d/ZETUkjDcnyp2Z+YqYuDBpEWNpjuVivXmrh6FGxNCgFE4sehQ1+/bd3DA==", "dev": true, "hasInstallScript": true, "license": "MIT", "dependencies": { - "adm-zip": "^0.5.16", - "tar": "^7.5.9" + "adm-zip": "^0.5.17", + "tar": "^7.5.15" }, "bin": { "hugo": "dist/cli.mjs", diff --git a/package.json b/package.json index 3e386957570..a27c418e9ad 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "devDependencies": { "autoprefixer": "^10.4.19", "docsy": "github:google/docsy#semver:0.15.0", - "hugo-extended": "^0.156.0", + "hugo-extended": "^0.163.0", "postcss": "^8.5.10", "postcss-cli": "^8.3.1" }, From 1104075cb3d0205546ffb127c4acb1a358af8b47 Mon Sep 17 00:00:00 2001 From: Olufunke Moronfolu Date: Thu, 11 Jun 2026 16:00:52 +0200 Subject: [PATCH 7/7] optimizing configs test --- .travis.yml | 17 ++++++++++++----- config/_default/hugo.toml | 11 +++++++++++ config/development/hugo.toml | 8 ++++++++ config/production/hugo.toml | 4 ++++ 4 files changed, 35 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index b39709e8d91..75fc9f614da 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,6 +13,10 @@ git: env: global: + - HUGO_RESOURCE_DIR="/tmp/hugo_cache" + - HUGO_NUMWORKERMULTIPLIER=1 + - HUGO_ENABLEMISSINGTRANSLATIONPLACEHOLDERS=true + - HUGO_PARALLELISM="75%" # Global variables can go here, for example HUGO_VERSION if we were using Netlify to publish. # add group: previous to see if this fixes the stalled npm build - 2025-04-14 @@ -42,11 +46,13 @@ cache: # See https://docs.travis-ci.com/user/caching/ directories: - node_modules - - resources/_gen # cache the generated resources to speed up builds - this is safe as they are always regenerated by Hugo, so if they are stale it won't cause any issues. - + - /tmp/hugo_cache # Cache Hugo resources to speed up builds - see https://gohugo.io/getting-started/installing/#hugo-resource-cache before_install: ############### # Hugo, Docsy and dependencies are installed via npm + - mkdir -p /tmp/hugo_cache + - chmod -R 777 /tmp/hugo_cache + - echo "Cache directory permissions:" && ls -ld /tmp/hugo_cache # Ensure cache dir exists - travis_retry npm install # use npm rather than yarn - HUGO doesn't have that many dependencies # # Currently will use custom version of htmltest stored in /htmltest/htmltest @@ -57,12 +63,13 @@ before_install: install: ######## # ------------------------ - - mkdir public # This because the process of syncing to public is probably deadlocked behind waiting for the public folder to be made, and is never signalled that the folder is created, which ends up stalling the build on Travis CI. + - mkdir public + - ./node_modules/.bin/hugo config --environment $TRAVIS_BRANCH # ------------------------ - - ./node_modules/.bin/hugo config --environment $TRAVIS_BRANCH # report the config we are using # Output header in bold white on green - printf '\033[37;42;1m' > $TRAVIS_BUILD_DIR/hugo.log - echo "HUGO was run for environment $TRAVIS_BRANCH" >> $TRAVIS_BUILD_DIR/hugo.log + - echo "Cache contents before build:" && ls -la /tmp/hugo_cache # Fixed indentation - printf '\033[0;22m' >> $TRAVIS_BUILD_DIR/hugo.log # Set pipefail so that if Hugo fails the whole job fails - set -o pipefail @@ -70,7 +77,7 @@ install: # Append output to hugo.log file to print at the end of the travis job # (see https://stackoverflow.com/questions/418896/how-to-redirect-output-to-a-file-and-stdout) - - ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log + - ./node_modules/.bin/hugo --environment $TRAVIS_BRANCH --gc --cleanDestinationDir --ignoreCache 2>&1 | tee -a $TRAVIS_BUILD_DIR/hugo.log # normal htmltest takes too much memory - using a modified version which strips