Style Scaladoc with consistent accent color (Typelevel red)#4813
Closed
afrdbaig7 wants to merge 1 commit intotypelevel:mainfrom
Closed
Style Scaladoc with consistent accent color (Typelevel red)#4813afrdbaig7 wants to merge 1 commit intotypelevel:mainfrom
afrdbaig7 wants to merge 1 commit intotypelevel:mainfrom
Conversation
da86492 to
58b6510
Compare
Fixes typelevel#1835 Introduces an optional external stylesheet for Cats Scaladoc to apply consistent accent branding (Typelevel red) to links and navigation. Changes: - Adds project/scaladoc-style.css with scoped CSS variables - Updates build.sbt to use post-processing to safely append styles (fixes missing flag in Scala 2.13) - Ensures zero build impact if the CSS file is missing This change is purely cosmetic and does not affect runtime behavior.
58b6510 to
39c42f4
Compare
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.
Fixes #1835
This PR adds an optional external CSS hook for Cats Scaladoc so link and navigation colors can use a consistent accent color (Typelevel red by default).
The implementation uses Scaladoc’s supported -doc-external-css option and does not modify any generated documentation files. Styling is opt-in and non-blocking: if the CSS file is not present, documentation generation proceeds unchanged.
This is a purely cosmetic change affecting only generated Scaladoc output and has no impact on runtime behavior or library APIs.