Support horizontal layout in code and output boilerplates#2194
Support horizontal layout in code and output boilerplates#2194tlylt merged 10 commits intoMarkBind:masterfrom
Conversation
lhw-1
left a comment
There was a problem hiding this comment.
Good find & fix @yucheng11122017!
The changes look good to me, and I couldn't find any related issues / PRs for why we were using the arrows instead of the boilerplate, so LGTM :)
|
Great work with the PR! I think this is good for the user guide as it creates consistency when reading it! LGTM! |
|
Thank you @yucheng11122017 for raising this. My suggestion as seen in that issue:
Regarding the specific issue of formatting in this PR, I think the first code example For a start, I think it would be good to create a nunjucks boilerplate that simplifies the creation of code-and-output-horizontal style code blocks. This is for our internal usage in our docs (or if it works well, we can add instructions on how to do so in our user guide). Then if you are interested, we can look at making this feature more accessible via a plugin or a standalone component. What do you think? |
|
Hi @tlylt thanks for your comments. Eg. Is that ok? If yes, I will proceed to modify the other |
Sure go ahead. |
What is the purpose of this pull request?
Contributes to #572
Overview of changes:
Standardize usage of codeAndOutput.md boilerplate in UG
Change boilerplate for
codeAndOutput.md,codeAndOutputCode.mdandcodeAndOutputSeperate.mdto allow horizontal layout.Before:

After:

Anything you'd like to highlight/discuss:
Testing instructions:
Proposed commit message: (wrap lines at 72 characters)
Support horizontal layout in code and output boilerplatesChecklist: ☑️