Code Examples
Code is the heart of technical documentation. This template makes it readable, copyable, and beautiful.
Syntax Highlighting
Powered by Shiki, with full language support. Just tag your fenced code blocks:
python
def parse_request(headers):
"""Extract auth token from request headers."""
auth = headers.get("Authorization", "")
if auth.startswith("Bearer "):
return auth[7:]
return NoneFilenames
Add a filename to show context and a copy button:
config/nginx.conf
server {
listen 443 ssl;
server_name docs.example.com;
location / {
proxy_pass http://localhost:4321;
proxy_set_header Host $host;
}
}Inline Code
Use backticks for inline code like npm run dev or process.env.API_KEY. It renders with a subtle background and accent color for quick scanning.