Skip to content

Commit

Permalink
small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
olinux committed Jun 29, 2023
1 parent 494fb0d commit ff4ad61
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pipeline/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def build(self):
schema_name = self._schema_payload["name"]
doc.heading(schema_name, char="#", overline=True)
doc.newline()
doc.heading(self._schema_payload["_type"], char="*", overline=True)
doc.heading(self._schema_payload["_type"], char="-")
doc.newline()
if "description" in self._schema_payload and self._schema_payload["description"]:
doc.content(self._schema_payload["description"])
Expand Down
2 changes: 1 addition & 1 deletion pipeline/toctree.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def create_toc_tree_page(version:str, relative_path:List[str]):
sub_dirs = sorted(os.listdir(os.path.join("target", version, "docs", "/".join(relative_path))), key=str.casefold)
for sub_dir in sub_dirs:
sub_dir = sub_dir.replace(".rst", "")
links.append(f"- `{sub_dir} <{relative_path[-1]}/{sub_dir}.html>`_")
links.append(f"- `{sub_dir[0].upper()}{sub_dir[1:]} <{relative_path[-1]}/{sub_dir}.html>`_")
tree_items.append(f"{relative_path[-1]}/{sub_dir}")
sub_dir_path = os.path.join("target", version, "docs", "/".join(relative_path), sub_dir)
if os.path.isdir(sub_dir_path):
Expand Down

0 comments on commit ff4ad61

Please sign in to comment.