Skip to content

Commit

Permalink
Add module docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
henneysq committed Jan 26, 2024
1 parent 7d8fbf3 commit 8ea7bd9
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/update_readme.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
"""
Module to run on github to gather stubs for README
Loads `.stub` files from /documentation and compiles them
to a single string. Then, the string is scanned
for h2 and h3 markdown headers which are enriched with
html tags for hyperlinking, and a table of contents is
created with these headers and hyperlinks and inserted
into the str.
Finally, the string is written to a complete README.md file.
See the workflow defined in /.github/workflows/main.yaml
"""

from re import search, findall

def _update_readme(readme: str) -> str:
Expand Down

0 comments on commit 8ea7bd9

Please sign in to comment.