better error handlers in rust and some UI improvement
This commit is contained in:
@@ -126,7 +126,7 @@ def render_markdown(md_path: Path):
|
||||
</head>
|
||||
<body style="display:flex; flex-direction:column; min-height:100%; margin:0;">
|
||||
<main class="container" style="flex:1;">
|
||||
<h1 onclick="window.location.href='/'" style="cursor:pointer; display:flex; align-items:center; gap:8px; font-size:1.5em; margin:0;">
|
||||
<h1 onclick="window.location.href=window.location.origin" style="cursor:pointer; display:flex; align-items:center; gap:8px; font-size:1.5em; margin:0;">
|
||||
<img src="../css/icons/back.webp" width="32" height="32" alt="Back" style="display:block;" />
|
||||
{title}
|
||||
</h1>
|
||||
@@ -295,7 +295,7 @@ if __name__ == "__main__":
|
||||
# Update threshold if specified
|
||||
RUST_PARSER_THRESHOLD = args.rust_threshold
|
||||
|
||||
Logger.log_obfuscation_info(f"Obfuscation is {'enabled' if obfuscate else 'disabled'}", obfuscate)
|
||||
Logger.log_obfuscation_info(f"Obfuscation is {obfuscate}",obfuscate)
|
||||
|
||||
initial_scan(MARKDOWN_DIR)
|
||||
event_handler = Handler()
|
||||
|
||||
Reference in New Issue
Block a user