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

146 lines
No EOL
2.8 KiB
TOML

# Markdown Demo Page Configuration
[page]
name = "markdown-demo"
title = "Markdown Demo - Web Builder Framework"
type = "article"
description = "Demonstration of Markdown processing with frontmatter in the Web Builder Framework"
[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 = [
"@shared/base/reset.css",
"@shared/base/typography.css"
]
svg_sprites = []
[local]
css_modules = [
"article.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 = ""
[markdown]
# Markdown processing with frontmatter support
enabled = true
processor = "pulldown-cmark" # Rust default
fallback_processor = "comrak"
auto_detect = true
# Frontmatter parsing
frontmatter_format = "yaml"
frontmatter_delimiter = "---"
require_frontmatter = false
# HTML template system
template_dir = "src/templates"
default_template = "article.html"
template_engine = "tera"
# Content processing
smart_punctuation = true
table_support = true
footnote_support = true
math_support = false
syntax_highlighting = true
# SEO and metadata
auto_generate_toc = false
extract_description = true
reading_time = true
[markdown.rust]
# Rust processor specific settings
extensions = ["tables", "footnotes", "strikethrough", "tasklists", "smart-punctuation"]
unsafe_html = false
github_pre_lang = true
[highlight]
# Syntax highlighting with highlight.js
enabled = "auto"
auto_detect = true
languages = ["rust", "javascript", "typescript", "toml", "yaml", "bash", "json"]
theme = "github-dark"
line_numbers = false
copy_button = true
cdn = false
[email]
# Email generation settings (optional)
enabled = false
inline_css = true
max_width = 600
fallback_fonts = ["Arial", "sans-serif"]
remove_unsupported = true
# Email-specific optimizations
table_layout = true
absolute_urls = true
compress_images = true
strip_js = true
[email.compatibility]
outlook = true
gmail = true
apple_mail = true
webmail = true
mobile = true
[email.output]
html_output = "email.html"
text_output = "email.txt"
preview_output = "email-preview.html"