Docs: use Docsy alert shortcode for notes and warnings - #4703
Open
aravindtga wants to merge 1 commit into
Open
Conversation
Signed-off-by: Aravindhan Ayyanathan <aravindhan.a@est.tech>
✅ Deploy Preview for kptdocs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
aravindtga
marked this pull request as ready for review
August 14, 2026 12:33
aravindtga
requested review from
efiacor,
kispaljr,
liamfallon and
mozesl-nokia
as code owners
August 14, 2026 12:34
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.
Description
Migrate all notes and warnings in the kpt documentation to use the Docs
{{% alert %}}shortcode, aligning with the porch documentation style.This change:
{{< warning >}}shortcode to{{% alert %}}Note:/**Warning**:patterns to{{% alert %}}documentation/layouts/shortcodes/warning.html(replaced by Docsy built-in)$primarySCSS variable from#fffto$kpt-dark-bluesocolor="primary"alerts render as visible blue (matching porch)#fffin_nav.scss(matching porch) so changing$primarydoesn't affect the navbarMotivation
Addresses #4533
The kpt documentation had inconsistent note/warning formatting:
warning.htmlshortcode with non-standard syntax**Note:**and**Warning:**without visual styling$primaryCSS variable was set to white, makingcolor="primary"alerts invisibleAfter this change, kpt uses the identical alert pattern as porch:
{{% alert title="Note" color="primary" %}} {{% alert title="Warning" color="warning" %}} {{% alert title="Critical" color="danger" %}}AI usage
I have used AI in the creation of this PR.
I have used the following AI tools: