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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
#!/usr/bin/env python
import logging
from pathlib import Path
import jinjax_ui
from claydocs import Docs
logging.getLogger("jinjax").setLevel(logging.INFO)
logging.getLogger("jinjax").addHandler(logging.StreamHandler())
here = Path(__file__).parent
pages = [
"index.md",
[
"Guide",
[
"guide/index.md",
"guide/components.md",
"guide/slots.md",
"guide/css_and_js.md",
# "guide/integrations.md",
# "guide/performance.md",
"guide/motivation.md",
],
],
[
"API",
[
"api.md",
],
],
[
"UI components", [
"ui/index.md",
"ui/tabs.md",
"ui/popover.md",
"ui/menu.md",
"ui/accordion.md",
"ui/linkedlist.md",
"ui/reldate.md",
],
],
]
def get_docs() -> Docs:
root_path = here / "content"
docs = Docs(
pages,
content_folder=root_path,
add_ons=[jinjax_ui],
search=False,
cache=False,
domain="https://jinjax.scaletti.dev",
default_component="Page",
default_social="SocialCard",
metadata={
"name": "JinjaX",
"language": "en",
"license": "MIT",
"version": "0.43",
"web": "https://jinjax.scaletti.dev",
}
)
docs.add_folder(here / "components")
docs.add_folder(here / "theme")
return docs
if __name__ == "__main__":
get_docs().run()
|