Skip to content

Commit

Permalink
Fix graphical issue of docs (#87)
Browse files Browse the repository at this point in the history
The template doesn't like skipping a heading level. So I moved all level
3 headings to level 2 headings
  • Loading branch information
Drachenfrucht1 authored Mar 6, 2023
1 parent 6656098 commit 8d64592
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions doc_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def print_class(self):
s = "# " + self.name + "\n\n"
s += self.brief_description.strip()
s += "\n"
s += "### Description\n\n"
s += "## Description\n\n"
s += self.description.strip()
s += "\n\n"

Expand All @@ -41,22 +41,22 @@ def print_class(self):
s += "\n"

if len(self.signals) > 0:
s += "### Signals\n\n"
s += "## Signals\n\n"
for sig in self.signals:
s += sig.print()

if len(self.enums) > 0:
s += "### Enumerations\n\n"
s += "## Enumerations\n\n"
for k in self.enums:
s += self.enums[k].print()

if len([m for m in self.members if not(m.description is None)]) > 0:
s += "### Property Descriptions\n\n"
s += "## Property Descriptions\n\n"
for m in self.members:
s += m.print_desc()

if len(self.methods) > 0:
s += "### Method Descriptions\n\n"
s += "## Method Descriptions\n\n"
for m in self.methods:
s += m.print_desc()

Expand Down

0 comments on commit 8d64592

Please sign in to comment.