skip to main content

NAME

preview

SYNOPSIS

antenna preview

DESCRIPTION

Starts a local HTTP server serving the htdocs directory so you can review the generated site in a browser. The host and port are set in antenna.yaml (defaults: localhost:8000).

Press Ctrl-C to stop the server.

The preview also serves the Markdown web, so a Markdown reader such as BonBon or cmarkbrowser can be tried before anything is published:

Negotiation is a convenience of the preview. A static host cannot do it; what works everywhere is the declared alternate and ordinary links to .md files.

EXAMPLES

antenna preview open http://localhost:8000 curl -H ‘Accept: text/markdown’ http://localhost:8000/blog/index.html