Skip to content

Commit 82d7d87

Browse files
committed
feat(template): make the 'authors' section smaller, and put it before 'parameters'
1 parent f95b0d0 commit 82d7d87

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

arkdoc/generator/base.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def generate_sections(self, functions: List[spec.Function], with_hr: bool=False)
6262
for func in functions:
6363
authors = (
6464
self.formatter.div(
65-
self.formatter.h4(self.formatter.plural("Author", len(func.desc.authors))),
65+
self.formatter.b(self.formatter.plural("Author", len(func.desc.authors))),
66+
": ",
6667
", ".join(
6768
[self.formatter.a(f"@{a.split('/')[-1]}", a) for a in func.desc.authors]
6869
),
@@ -88,8 +89,10 @@ def generate_sections(self, functions: List[spec.Function], with_hr: bool=False)
8889
self.formatter.div(func.desc.brief),
8990
self.formatter.new_line(),
9091
self.formatter.div(self.formatter.b("Note"), ": ", func.desc.details) if func.desc.details else "",
91-
parameters,
92+
self.formatter.new_line(),
9293
authors,
94+
self.formatter.new_line(),
95+
parameters,
9396
)
9497
if func.desc.code:
9598
content += self.formatter.div(self.formatter.h4("Example"), self.formatter.code(func.desc.code))

0 commit comments

Comments
 (0)