Convert Markdown documents into beautiful, readable single-file HTML web pages and deploy them to the discord-agent web report server. Use when the user asks to "turn this markdown into a web page", "make this report into a web page", "deploy this as a web page", "render this markdown nicely", "把这个 md 转成网页", "生成网页报告", or any request to convert markdown/report content into a hosted, styled HTML page for easy reading and sharing.
Convert Markdown into a polished single-file HTML page and deploy to the standalone web report directory at /var/www/docs.a2a.ing/.
Load the .md file or accept inline markdown content from context.
Use the template at assets/report-template.html as the structural foundation. Read it, then customize:
{{placeholders}}):| Placeholder | What to fill |
|---|---|
| {{TITLE}} | Page <title> |
| {{HERO_BADGE}} | Small badge text in hero (e.g. "2025-2026 · 深度调研") |
| {{HERO_TITLE}} | Main hero heading — can include <span> for accent color |
| {{HERO_SUBTITLE}} | Italic subtitle below heading |
| {{HERO_META}} | HTML for meta pills (date, author, tags). Use <span> with SVG icons and dot separators |
| {{DECORATIVE_SYMBOLS}} | 6-8 <span> elements with themed symbols positioned absolutely. Pick symbols matching the topic (e.g. math: ∇∑∂θ, code: {}</>λ, business: $%↗△) |
| {{MARKDOWN_CONTENT}} | The full markdown content (escaped for JS template literal — see escaping rules below) |
| {{FOOTER_LEFT}} | Footer left text |
| {{FOOTER_RIGHT}} | Footer right text (usually generation date) |
{{EXTRA_FONTS}}: Additional Google Fonts <link> tags if changing typography{{EXTRA_STYLES}}: Additional CSS rules injected inside the <style> block:root to change the color palette. Examples:
--accent-primary: #2d4a7a; --accent-secondary: #c9a54e;--accent-primary: #0ea5e9; --accent-secondary: #a855f7;--accent-primary: #3d5a3d; --accent-secondary: #8c6b5d;.hero background gradient to match the paletteThe markdown goes inside a JS template literal. Escape:
` → \`${ sequences: ${ → \${Write the final HTML to:
/var/www/docs.a2a.ing/<slug>.html
The slug should be a kebab-case name derived from the content topic (e.g. math-to-ai-pathway-guide.html).
Verify deployment:
curl -s -o /dev/null -w '%{http_code}' https://docs.a2a.ing/<slug>.html
Report the public URL to the user:
https://docs.a2a.ing/<slug>.html
The template provides a solid default, but each page should feel unique. Vary:
{{EXTRA_FONTS}} and CSS overridesDo NOT:
The template automatically provides:
Search for places (restaurants, cafes, etc.) via Google Places API proxy on localhost.
Interact with GitHub using the `gh` CLI. Use `gh issue`, `gh pr`, `gh run`, and `gh api` for issues, PRs, CI runs, and advanced queries.
Create or update AgentSkills. Use when designing, structuring, or packaging skills with scripts, references, and assets.
Start voice calls via the OpenClaw voice-call plugin.
Notion API for creating and managing pages, databases, and blocks.
Gemini CLI for one-shot Q&A, summaries, and generation.
Category:developer