provisioning-outreach/presentations/rust-laspalmas-250926/auroraframe/pages/code-demo/config.toml

87 lines
1.8 KiB
TOML
Raw Permalink Normal View History

# Code Demo Page Configuration
[page]
name = "code-demo"
title = "Syntax Highlighting Demo"
type = "demo"
description = "Demonstration of automatic syntax highlighting with highlight.js"
[directories]
src_dir = "src"
dist_dir = "dist"
css_src = "src/assets/css"
css_dist = "dist/assets/css"
svg_src = "src/assets/svg"
svg_dist = "dist/assets/svg"
js_src = "src/assets/js"
js_dist = "dist/assets/js"
[shared]
css_modules = []
svg_sprites = []
[local]
css_modules = [
"main.css"
]
js_modules = []
critical_modules = 1
minify = true
remove_comments = true
minify_js = true
remove_js_comments = true
[output]
css_output = "main.min.css"
html_output = "index.html"
svg_sprites = "sprites.svg"
js_output = "main.min.js"
[svg]
optimize = true
precision = 2
[html]
minify = true
remove_comments = true
remove_whitespace = true
[development]
port = 8080
host = "localhost"
[thresholds]
inline_css_max_size = 10240
inline_svg_max_size = 5120
max_total_size = 102400
[compression]
enable_gzip = true
gzip_ratio = 0.3
[build]
parallel_builds = true
cache_bust = true
verbose = true
[tools]
js_minifier = "swc"
js_minifier_path = ""
js_minifier_args = ["--minify", "--target", "es2018"]
css_minifier = ""
html_minifier = ""
[highlight]
# Syntax highlighting with highlight.js
enabled = "auto" # auto (detect code blocks), true (always), false (never)
auto_detect = true # Automatically scan HTML for code blocks
languages = [ # Will be auto-detected from HTML
"javascript", "typescript", "rust", "python", "bash", "json", "html", "css", "toml", "yaml"
]
theme = "github-dark" # Highlight.js theme
line_numbers = false # Enable line numbers for code blocks
copy_button = true # Add copy-to-clipboard button
cdn = false # Use local bundling for better performance
cdn_url = "https://cdn.jsdelivr.net/gh/highlightjs/cdn-release@11.9.0/build/"