Migrate KImg documentation to use DocsExample component #962
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
scss
language in theDocsShowCode
componentKImg
page to useDocsExample
wherever possibleIssue addressed
Fixes #952
Changelog
KImg
documentation to useDocsExample
component #952Implementation notes
While migrating the examples, I was unable to migrate two of the examples listed in the
KImg
documentation page as they relied on being rendered in an inline element likespan
, which by default theDocsExample
component renders the same in a blockdiv
element. This led to different looking outputs for those particular examples.It would be nice if the
DocsExample
component also support ablock
attribute much likeDocsShow
, so the end consumer can control out the output is to be shown to the user. I can make the required changes in this PR itself, or open a new PR to address the same.cc: @MisRob @EshaanAgg
Testing checklist
Reviewer guidance