Skip to content

Commit

Permalink
change center-aligned titles in the docs to left-aligned (open-mmlab#792
Browse files Browse the repository at this point in the history
)
  • Loading branch information
ly015 authored Jul 19, 2021
1 parent fe4fdad commit eab02a7
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/collect.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@
if len(keywords) == 0:
continue
lines += [
'<hr/>', '<br/><br/>', '',
f'## <div align="center">{titlecase(dataset)} Dataset</div>', ''
'<hr/>', '<br/><br/>', '', f'## {titlecase(dataset)} Dataset>', ''
]
for keyword, info in keywords.items():
keyword_strs = [titlecase(x.replace('_', ' ')) for x in keyword]
Expand Down Expand Up @@ -91,10 +90,7 @@
f' on {titlecase(dataset)}'), '', info, ''
]
if len(paperlines) > 0:
lines += [
'<hr/>', '<br/><br/>', '',
f'## <div align="center">{papername}</div>', ''
]
lines += ['<hr/>', '<br/><br/>', '', f'## {papername}', '']
lines += paperlines

with open(f'papers/{section}.md', 'w') as f:
Expand Down

0 comments on commit eab02a7

Please sign in to comment.