Skip to content

fix and silence some deprecation warnings, update deps and install dart sass on ci - #163

Merged
gtsteffaniak merged 6 commits into
mainfrom
fix/deprecation-warns
Nov 16, 2026
Merged

gtsteffaniak merged 6 commits into
mainfrom
fix/deprecation-warns

Conversation

@Kurami32

@Kurami32 Kurami32 commented Nov 15, 2026 •

Copy link
Copy Markdown
Collaborator

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
❯ 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

Summary by CodeRabbit

  • Documentation
    • Updated setup and contribution guidance to use Hugo with Sass/Dart Sass, including installation and troubleshooting instructions.
    • Clarified the supported Hugo and Sass/Dart Sass requirements for building and translating the documentation.
  • Chores
    • Updated the documentation build and validation workflows to use newer Node.js and Hugo tooling.
    • Updated the minimum supported Node.js version to 22.

@coderabbitai

coderabbitai Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Explain Change →

Walkthrough

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.
Node.js workflow versions
.github/workflows/pr-checks.yml, .github/workflows/validate-manual.yml
Node.js changes to version 22 in the doclink, changelog-link-format, and manual validation jobs.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Change: Bug fix

Suggested reviewers: gtsteffaniak

Merge Risk: Low · up to fc5c7

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: Passed 4

Check name Status Explanation
Title check Passed 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 Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description Check Passed 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.

Share

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
Kurami32 force-pushed the fix/deprecation-warns branch from cba2f0d to be5885f Compare November 15, 2026 21:45
@Kurami32 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 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
@Kurami32
Kurami32 marked this pull request as draft November 15, 2026 22:41
@Kurami32
Kurami32 marked this pull request as ready for review November 15, 2026 23:13
coderabbitai[bot]

This comment was marked as resolved.

@gtsteffaniak
gtsteffaniak merged commit 5da7425 into main Nov 16, 2026
12 checks passed
@gtsteffaniak
gtsteffaniak deleted the fix/deprecation-warns branch November 16, 2026 17:30
@coderabbitai coderabbitai Bot mentioned this pull request Nov 16, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants