mirror of
https://github.com/astral-sh/ruff.git
synced 2025-10-02 22:55:08 +00:00
Support option group documentation (#7593)
This commit is contained in:
parent
2ecf59726f
commit
01843af21a
5 changed files with 62 additions and 3 deletions
|
@ -16,6 +16,12 @@ pub(crate) fn generate() -> String {
|
|||
fn generate_set(output: &mut String, set: &Set) {
|
||||
writeln!(output, "### {title}\n", title = set.title()).unwrap();
|
||||
|
||||
if let Some(documentation) = set.metadata().documentation() {
|
||||
output.push_str(documentation);
|
||||
output.push('\n');
|
||||
output.push('\n');
|
||||
}
|
||||
|
||||
let mut visitor = CollectOptionsVisitor::default();
|
||||
set.metadata().record(&mut visitor);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue