File size: 417 Bytes
630cbf4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import os

from components.Docs import Docs


def resolve(relative_path: str):
    return os.path.join(os.path.dirname(__file__), relative_path)


docs = Docs(
    __file__,
    markdown_files=(["README.md"] + [
        f"custom_tags/{file_name}"
        for file_name in os.listdir(resolve('custom_tags'))
        if file_name.endswith(".md")
    ]),
)

if __name__ == "__main__":
    docs.render().queue().launch()