-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmake_docs.py
More file actions
31 lines (27 loc) · 924 Bytes
/
make_docs.py
File metadata and controls
31 lines (27 loc) · 924 Bytes
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
from pathlib import Path
import pdoc.render
if __name__ == "__main__":
pdoc.render.configure(
docformat="google",
logo="https://static.cirro.bio/Cirro_Logo_Horizontal_Navy.png",
logo_link="https://cirro.bio",
)
pdoc.pdoc(
"cirro",
"cirro.sdk",
"cirro.auth",
"cirro.services",
"cirro.models",
"cirro.config",
"cirro.helpers.preprocess_dataset",
"cirro_api_client",
"cirro_api_client.cirro_client",
"cirro_api_client.cirro_auth",
"cirro_api_client.v1.api",
"cirro_api_client.v1.client",
"cirro_api_client.v1.models",
output_directory=Path("./docs/")
)
# Redirect index.html to cirro.html since we want to expose that module first
with Path('./docs/index.html').open('w') as index:
index.write('<meta http-equiv="refresh" content="0; URL=cirro.html" />')