Spaces:
Sleeping
Sleeping
File size: 1,043 Bytes
89ecf2e 1d0150f 89ecf2e 1d0150f 89ecf2e 1d0150f 89ecf2e 1d0150f 89ecf2e 1d0150f 89ecf2e 1d0150f 89ecf2e | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | from pathlib import Path
modules1 = {
"app.models": "app_models.md",
"app.api": "app_api.md",
"domain.domain": "domain.md",
"service.technova_service": "technova_service.md"
}
modules2 = {
"app.database": "database.md"
}
modules3 = {
"app.security": "security.md"
}
docs_dir1 = Path("docs/api_reference")
docs_dir1.mkdir(parents=True, exist_ok=True)
for module, filename in modules1.items():
content = f"# {module}\n\n::: {module}\n"
(docs_dir1 / filename).write_text(content, encoding="utf-8")
docs_dir2 = Path("docs/init_base")
docs_dir2.mkdir(parents=True, exist_ok=True)
for module, filename in modules2.items():
content = f"# {module}\n\n::: {module}\n"
(docs_dir2 / filename).write_text(content, encoding="utf-8")
docs_dir3 = Path("docs/securite")
docs_dir3.mkdir(parents=True, exist_ok=True)
for module, filename in modules3.items():
content = f"# {module}\n\n::: {module}\n"
(docs_dir3 / filename).write_text(content, encoding="utf-8")
print(" Fichiers MkDocs API générés.")
|