Compare commits
2 Commits
ca16f1b098
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b3ebe386dc | |||
| 15dcf09ec1 |
@@ -15,9 +15,12 @@ def sanitize_name(name: str) -> str:
|
||||
"""Sanitize a name to be filesystem-friendly."""
|
||||
return name.lower().replace(" ", "-").replace("_", "-")
|
||||
|
||||
def harvest_readmes(organization: str, branch: list[str | None] = ["main", "dev", None], projects: list[str] = [], output_path: str = "reference") -> None:
|
||||
def harvest_readmes(organization: str | Organization, branch: list[str | None] = ["main", "dev", None], projects: list[str] = [], output_path: str = "reference") -> None:
|
||||
"""Harvest README files from repositories."""
|
||||
if isinstance(organization, str):
|
||||
org = Organization("https://dev.azure.com/" + organization, token=get_token())
|
||||
else:
|
||||
org = organization
|
||||
|
||||
if projects:
|
||||
# Target specific projects
|
||||
|
||||
@@ -2,3 +2,4 @@ debugpy==1.8.17
|
||||
azure-identity==1.25.1
|
||||
requests==2.32.5
|
||||
loki-logger-handler==1.1.2
|
||||
mkdocs-material>=1.5.2
|
||||
|
||||
Reference in New Issue
Block a user