-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path__init__.py
More file actions
60 lines (54 loc) · 1.39 KB
/
__init__.py
File metadata and controls
60 lines (54 loc) · 1.39 KB
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
"""
Website module for GNN Processing Pipeline.
This module provides static HTML website generation from pipeline artifacts.
"""
from typing import Any
from .generator import WebsiteGenerator, generate_website
from .renderer import (
WebsiteRenderer,
embed_html_file,
embed_image,
embed_json_file,
embed_markdown_file,
embed_text_file,
generate_html_report,
get_module_info,
get_supported_file_types,
process_website,
validate_website_config,
)
__version__ = "1.6.0"
# Feature flags/constants expected by tests
FEATURES: dict[str, Any] = {
"html": True,
"embedding": True,
"basic_processing": True,
"mcp_integration": True,
"multi_page": True,
"dark_mode": True,
"premium_design": True,
}
SUPPORTED_FILE_TYPES: dict[str, Any] = {
"html": ["html", "htm", "css", "js"],
"text": ["md", "markdown", "txt", "rst"],
"markdown": ["md", "markdown"],
"json": ["json"],
"data": ["json", "yaml", "yml", "csv"],
"images": ["png", "jpg", "jpeg", "gif", "svg"],
}
__all__: list[Any] = [
"WebsiteGenerator",
"WebsiteRenderer",
"generate_website",
"process_website",
"generate_html_report",
"embed_image",
"embed_markdown_file",
"embed_text_file",
"embed_json_file",
"embed_html_file",
"get_module_info",
"get_supported_file_types",
"validate_website_config",
"__version__",
]