Compare commits
6 Commits
b83f53d140
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| b3ebe386dc | |||
| 15dcf09ec1 | |||
| ca16f1b098 | |||
| 4276939f30 | |||
| 15349c9390 | |||
| 064364caa6 |
@@ -15,9 +15,12 @@ def sanitize_name(name: str) -> str:
|
|||||||
"""Sanitize a name to be filesystem-friendly."""
|
"""Sanitize a name to be filesystem-friendly."""
|
||||||
return name.lower().replace(" ", "-").replace("_", "-")
|
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."""
|
"""Harvest README files from repositories."""
|
||||||
|
if isinstance(organization, str):
|
||||||
org = Organization("https://dev.azure.com/" + organization, token=get_token())
|
org = Organization("https://dev.azure.com/" + organization, token=get_token())
|
||||||
|
else:
|
||||||
|
org = organization
|
||||||
|
|
||||||
if projects:
|
if projects:
|
||||||
# Target specific projects
|
# Target specific projects
|
||||||
|
|||||||
@@ -1,6 +1,8 @@
|
|||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
python3 -m venv .venv
|
VERSION="${1:-3}"
|
||||||
|
|
||||||
|
python${VERSION} -m venv .venv
|
||||||
./.venv/bin/pip install --upgrade pip
|
./.venv/bin/pip install --upgrade pip
|
||||||
./.venv/bin/pip install -r requirements.txt
|
./.venv/bin/pip install -r requirements.txt
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
site_name: Reference
|
site_name: Reference Documentation
|
||||||
docs_dir: reference
|
docs_dir: reference
|
||||||
theme:
|
theme:
|
||||||
name: material
|
name: material
|
||||||
|
|||||||
@@ -2,3 +2,4 @@ debugpy==1.8.17
|
|||||||
azure-identity==1.25.1
|
azure-identity==1.25.1
|
||||||
requests==2.32.5
|
requests==2.32.5
|
||||||
loki-logger-handler==1.1.2
|
loki-logger-handler==1.1.2
|
||||||
|
mkdocs-material>=1.5.2
|
||||||
|
|||||||
1
sk/__init__.py
Normal file
1
sk/__init__.py
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# My helper tools
|
||||||
Reference in New Issue
Block a user