Skip to content

SCSS: replace deprecated Sass functions with sass: module forms - #2731

Merged
chalin merged 14 commits into
docsy:mainfrom
chalin:chalin-m24-sass-own-warnings-2026-0819
Aug 21, 2026
Merged

chalin merged 14 commits into
docsy:mainfrom
chalin:chalin-m24-sass-own-warnings-2026-0819

Conversation

@chalin

@chalin chalin commented Aug 21, 2026 •

Copy link
Copy Markdown
Collaborator
  • Zeroes Docsy's own function-class Sass deprecation warnings: every remaining non-import warning now originates in vendor sources (Bootstrap and Font Awesome).
  • Leaves import-class warnings in place: gated on the @use refactor (SCSS: migrate @import to @use #2732).
  • Raises the effective Dart Sass floor to 1.95.0: the new if() conditional syntax parses only from 1.95.0; the pinned sass-embedded (1.102.0) already satisfies it.
  • Restores Switch the default Sass transpiler to dart-sass #2724's dependency-deprecation silencing (head-css.html): with the theme's warnings zeroed, quiet build logs no longer hide anything actionable in Docsy's sources; the entry-level import silencing stays dropped as obsolete (main.scss is @use since Switch the default Sass transpiler to dart-sass #2724).
  • Guards against Docsy-origin regressions: a direct-compile probe fails on theme-source non-import deprecations across a supported-configuration fixture matrix, keeping regressions red despite the silencing; the docsy.dev build probe drops its Dart Sass exclusion and pins and proves its own log level, so escaped deprecation warnings fail red too.
  • Proves the compiled CSS byte-identical: direct dart-sass compile pre vs post, main.scss plus the opt-in td/extra/_navbar.scss, cmp-clean.
  • Also:
    • Maps the guard split in the maintainer notes (§ Test suites).
    • Re-wraps two touched files per Prettier (second commit).

chalin added 4 commits August 21, 2026 07:01
- Zeroes Docsy-tree function-class deprecation warnings (map-get, list and color helpers, selector-append, Sass-if syntax), leaving only the @import-class warnings that are gated on Bootstrap's module-system release
- Compiled CSS is byte-identical before vs after (direct dart-sass compile of the whole theme); proof attached to the PR
- Silences the four remaining warning classes in head-css.html: all are vendor-owned or import-class (gated on the @use refactor, docsy#2279), so build logs go quiet without hiding anything actionable
- Adds a direct-compile probe (verbose dart-sass, per-file warning attribution, full opt-in surface) that fails on any Docsy-origin non-import deprecation, keeping regressions red despite the silencing
- Restores docsy#2724's silenceDependencyDeprecations over the interim class-list: durable against future vendor deprecation waves, and the direct-compile guard now covers the config's original drawback (Docsy regressions invisible)
- Drops the entry-level import silencing as obsolete: main.scss has been @use since docsy#2724 (verified: dependency silencing alone yields a warning-free build)
- Upgrades the site-build probe by dropping its Dart Sass exclusion: with silencing in-theme, any escaped warning (config regression, vendor @warn) now fails red instead of being filtered
chalin added 10 commits August 21, 2026 10:04
- Trims mechanism and config restatements to pointers (one home per fact); parenthesizes two dash asides
- Documents the quiet-build-is-not-clean-sources gotcha and which probe owns which failure class; seeds the new issue link in the refcache
- Star topology per one-home: each artifact keeps its local rationale plus one pointer to the map; pairwise cross-refs and split restatements dropped; docsy#2732 cited once per file
- Guard test compiles a fixture matrix (defaults, dark-off, full opt-in), aggregating warnings: deprecations hidden behind either polarity of a Boolean flag stay red (loading a file does not evaluate its branches)
- Scopes attribution and the docsy#2732 canary to td/, so the synthetic stubs' own @import warnings can't satisfy the canary
- Site probe pins the effective log level by appending --logLevel info to the command it runs (last flag wins), replacing the bypassable static script check
- Narrows over-claims: vendor @warn messages are log noise, not failures
- Guard attribution is provenance-by-file: every staged theme file counts as Docsy except the fixture-written stubs, so root partials (main.scss, _variables_project_after_bs.scss) are guarded again
- Fixture matrix completes the Boolean-flag product (adds fonts-on/dark-off); guarantee stated as the explicit configurations
- Site probe asserts the executed Hugo emitted INFO records, so a script chain that swallows the appended level fails red; drops the false first-reported-at-info claim
- Maximal fixture exercises link-variant's $underline branch, the one mixin branch no in-tree call reaches
- Site probe requires Hugo-specific INFO records (build/static), so a preflight logger can't satisfy the canary; stdout/stderr joined with a newline to keep line anchors honest
- Maintainer notes disclose the silencing covers site project Sass too
- The r4 fix commit described this change but a red-proof cleanup reverted it before committing; restores it: Hugo INFO build/static records required, stdout/stderr newline-joined
@chalin
chalin marked this pull request as ready for review August 21, 2026 16:36
@chalin
chalin merged commit cb3ca4b into docsy:main Aug 21, 2026
17 checks passed
@chalin
chalin deleted the chalin-m24-sass-own-warnings-2026-0819 branch August 21, 2026 16:37
@chalin chalin added this to the 0.17.0 milestone Aug 26, 2026
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.

1 participant