Skip to content
Snippets Groups Projects
Commit 59447b14 authored by Artur Sabirov's avatar Artur Sabirov
Browse files

check_sorting.py: fix function name and reindent

parent c09f8f4e
No related branches found
No related tags found
1 merge request!537config.md: describe all configuration file parameters
......@@ -16,7 +16,7 @@ def on_page_markdown(markdown: str, page: Page, config: MkDocsConfig, files: Fil
elif page.file.src_uri == "reference/audit_events.md":
return reference_audit_events(markdown, page)
elif page.file.src_uri == "architecture/rpc_api.md":
return reference_rpc_api(markdown, page)
return architecture_rpc_api(markdown, page)
def reference_cli(markdown: str, page: Page):
......@@ -52,7 +52,8 @@ def reference_audit_events(markdown: str, page: Page):
diff = difflib.unified_diff(h3, h3_sorted)
log.info("\n" + "\n".join(diff))
def reference_rpc_api(markdown: str, page: Page):
def architecture_rpc_api(markdown: str, page: Page):
lines: list[str] = re.sub("<!--.*?-->", "", markdown, flags=re.DOTALL).split("\n")
headers: list[str] = list(filter(lambda line: re.match("^##+ ", line), lines))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment