You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix and silence some deprecation warnings, update deps and install dart sass on ci - #163
Basically this was the whole output we had before the 2 PRs:
Details
❯ make dev
hugo server -D --bind 0.0.0.0 --baseURL "http://localhost:1313/" --port 1313
WARN deprecated: project config key languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use locale instead.
WARN deprecated: project config key languages.zh-cn.languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.zh-cn.locale instead.
WARN deprecated: project config key languages.zh-cn.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.zh-cn.label instead.
WARN deprecated: project config key languages.en.languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.en.locale instead.
WARN deprecated: project config key languages.en.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.en.label instead.
WARN deprecated: project config key languages.de.languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.de.locale instead.
WARN deprecated: project config key languages.de.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.de.label instead.
WARN deprecated: project config key languages.es.languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.es.locale instead.
WARN deprecated: project config key languages.es.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.es.label instead.
WARN deprecated: project config key languages.fr.languageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fr.locale instead.
WARN deprecated: project config key languages.fr.languageName was deprecated in Hugo v0.158.0 and will be removed in a future release. Use languages.fr.label instead.
hugo: downloading modules …
hugo: collected modules in 15398 ms
Watching for changes in /home/kurami/GitHub/filebrowserDocs/archetypes, /home/kurami/GitHub/filebrowserDocs/assets/images, /home/kurami/GitHub/filebrowserDocs/content/en/docs, /home/kurami/GitHub/filebrowserDocs/data, /home/kurami/GitHub/filebrowserDocs/i18n, /home/kurami/GitHub/filebrowserDocs/layouts/partials, /home/kurami/GitHub/filebrowserDocs/package.json, /home/kurami/GitHub/filebrowserDocs/static/images, /home/kurami/GitHub/filebrowserDocs/tools/config-migration
Watching for config changes in /home/kurami/GitHub/filebrowserDocs/hugo.toml, /home/kurami/GitHub/filebrowserDocs/go.mod
Start building sites …
hugo v0.170.0+withdeploy linux/amd64 BuildDate=unknown
WARN deprecated: .Site.LanguageCode was deprecated in Hugo v0.158.0 and will be removed in a future release. Use .Site.Language.Locale instead.
WARN deprecated: .Site.Data was deprecated in Hugo v0.156.0 and will be removed in a future release. Use hugo.Data instead.
Built in 41 ms
ERROR error building site: render: [en v1.0.0 guest] failed to render pages: render of "/404" failed: "/home/kurami/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/quantumx-apps/filebrowser!docs!theme@v1.4.0/layouts/_default/baseof.html:31:8": execute of template failed: template: 404.html:31:8: executing "404.html" at <partial "head.html" .>: error calling partial: "/home/kurami/GitHub/filebrowserDocs/layouts/partials/head.html:30:42": execute of template failed: template: _partials/head.html:30:42: executing "_partials/head.html" at <$style.RelPermalink>: error calling RelPermalink: TOCSS-DART: failed to transform "scss/style.scss" (text/x-scss). You need to install Dart Sass, see https://gohugo.io//functions/css/sass/#dart-sass: this feature is not available in your current Hugo version, see https://goo.gl/YMrWcn for more information
make: *** [makefile:3: dev] Error 1
With dart sass installed then:
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/docs/scss/style.scss:17:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/scss/style.scss:17:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/scss/style.scss:18:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/docs/scss/style.scss:20:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/scss/style.scss:19:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/docs/scss/style.scss:21:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/scss/style.scss:20:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/docs/scss/style.scss:22:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/scss/style.scss:21:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [import]: /home/kurami/GitHub/filebrowserDocsTheme/assets/docs/scss/style.scss:23:8: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
WARN Dart Sass: DEPRECATED [if-function]: file:///home/kurami/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/twbs/bootstrap@v5.3.8 incompatible/scss/_functions.scss:57:54: The Sass if() syntax is deprecated in favor of the modern CSS syntax.
Suggestion: if(sass($arg == "$value"): $value; else: $arg)
More info: https://sass-lang.com/d/if-function
The changes update Hugo setup to use Dart Sass, revise Hugo configuration and Sass compilation options, and update contributor instructions. They also change Node.js versions and JavaScript dependency ranges, and switch translation client construction to deepl.DeepLClient.
Changes: Hugo and Sass setup
Layer / File(s)
Summary
Hugo configuration and Sass compilation hugo.toml, go.mod, layouts/partials/...
Hugo language settings now use locale and label. Sass options silence four deprecation categories. Production settings retain disabled source maps and compressed output. The Hugo Bootstrap SCSS module is added, and Bootstrap is updated.
Hugo and Sass setup makefile, .github/workflows/*
The Makefile installs Hugo without the extended build tag and checks for Sass. Workflows use Hugo action v3 and install Dart Sass.
Hugo and Sass contributor instructions README.md, content/en/docs/Contributing/Documentation/*
The instructions replace the Hugo Extended requirement with Hugo and Sass/Dart Sass requirements. They describe Sass installation and Hugo build troubleshooting.
Node and translation tooling
Layer / File(s)
Summary
JavaScript dependencies and translation client package.json, scripts/translations.js
Dependency ranges and the minimum Node.js version change. Translation client construction now uses deepl.DeepLClient; check-only mode still assigns null.
The change moves the docs build to Dart Sass and current Hugo configuration, and CI should work as set up. The contributor docs are incomplete, though. They do not clearly tell contributors to install Dart Sass themselves, and the language-configuration example uses outdated keys. These gaps can cause local setup confusion but do not affect production, so the change is low risk to merge.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main changes in the PR: fixing and silencing Hugo/Sass deprecation warnings, updating dependencies, and installing Dart Sass on CI. The changeset matches these points: head.html an…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title names the main changes in the PR: fixing and silencing Hugo/Sass deprecation warnings, updating dependencies, and installing Dart Sass on CI. The changeset matches these points: head.html and head partials add silenceDeprecations, package.json and go.mod update dependencies, and the workflows install dart-sass. The title is a single, concise sentence and does not cover every detail, such as the Node 22 and Hugo config changes, which is acceptable.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
A rabbit checks the Sass in flight, Then hops through Hugo, crisp and bright. Node takes twenty-two steps ahead, A DeepL client joins the thread. The docs now show the paths to tread.
Kurami32
changed the title
fix and silence some deprecation warnings and update dependencies
fix and silence some deprecation warnings, update deps and install dart sass
Nov 15, 2026
Kurami32
changed the title
fix and silence some deprecation warnings, update deps and install dart sass
fix and silence some deprecation warnings, update deps and install dart sass on ci
Nov 15, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Same as gtsteffaniak/filebrowserDocsTheme#11, here we also had deprecation warnings and the docs site wasn't starting for me anymore.
Basically this was the whole output we had before the 2 PRs:
Details
With dart sass installed then:
Summary by CodeRabbit