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.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs: Update template code, documentation page for the DNF5 Command Template #1994
Docs: Update template code, documentation page for the DNF5 Command Template #1994
Changes from 5 commits
7bc081a
4a5e437
d58e7e2
17086a8
1895ce1
da5f314
8a2e0b8
8ee2c3f
d8248e7
7fe21f1
9c5112c
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kontura My only problem with this (which the pre-commit formatter wants to change back to the un-wrapped format:)
...is that it won't fit when it's embedded on the documentation page, without forcing the reader to scroll horizontally.
Is there an override comment that can stop the formatter from re-wrapping it? I really think it reads better, for the documentation, if the line length is kept down to fit the page format.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You can do this:
If the disable comment was at the very top of the page we could hide it by changing the include lines again so it doesn't complicate the template.
(I have tested it only briefly but I think if the
// clang-format on
is omitted it disables the formatting for the one file only.)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@kontura Done, thanks! I think that looks much better. I also made some other changes, I'll add some review comments about those.