Repository navigation
SCSS: replace deprecated Sass functions with sass: module forms - #2731
Merged
chalin merged 14 commits intoAug 21, 2026
Merged
Conversation
- 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
- 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
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
@userefactor (SCSS: migrate @import to @use #2732).if()conditional syntax parses only from 1.95.0; the pinnedsass-embedded(1.102.0) already satisfies it.head-css.html): with the theme's warnings zeroed, quiet build logs no longer hide anything actionable in Docsy's sources; the entry-levelimportsilencing stays dropped as obsolete (main.scssis@usesince Switch the default Sass transpiler to dart-sass #2724).Dart Sassexclusion and pins and proves its own log level, so escaped deprecation warnings fail red too.main.scssplus the opt-intd/extra/_navbar.scss,cmp-clean.