-
Notifications
You must be signed in to change notification settings - Fork 232
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: split options into headings #3332
base: main
Are you sure you want to change the base?
docs: split options into headings #3332
Conversation
writeln!(buffer, "- <a id=\"option-version\" href=\"#option-version\">`--version (-V)`</a>\n: Display version information").unwrap(); | ||
.into_group_map(); | ||
|
||
let sorted_header_options = header_option_map.iter().sorted_by(|a, b| { |
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.
For reviewer:
This is the logic to make the headers seperated, and always make the Options
the first, and Global Options
last.
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.
Looks good and works as expected.
Only had one small comment!
# Lint pixi_docs | ||
pixi run lint-pixi_docs |
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.
I think this and the three steps above should have their own github task
Splitting the auto generated cli options into their headings.
With that I also added some extra's