After the quickstart, your documentation project has @shoalrun/cli installed. Run the commands below from that project directory, my-docs/.
Prepare a release
Set site.origin in docs.config.yaml to your public HTTPS origin. Then audit the project and build it:
npx --no-install shoalrun audit docs.config.yaml
npx --no-install shoalrun build docs.config.yaml dist
Review the generated HTML, Markdown, and dist/documents.json. A build replaces its output directory; keep source files outside dist/. If it fails, use troubleshooting.
Choose a host
Choose a hosting route based on the artifacts and server features your site needs.
For page printing, static sites use the visitor's browser and generate no page PDFs or extra print documents. Optionally publish a full-manual CLI export as a deliberate download. Direct endpoint downloads need a Node host with Chromium; don't expose their prepared private inputs through generic static serving.
| Hosting route | What to deploy |
|---|---|
| Vercel | The .vercel/output/ bundle generated by the installed CLI. |
| Node server | The compiled site and the installed @shoalrun/cli package, as described below. |
| Another host | The compiled files plus routing and headers implementing the HTTP contract. |
For a site hosted at /docs, set site.basePath: /docs. The Node and Vercel adapters serve the prefixed routes directly. On a static host that mounts a directory at /docs, publish the build output's docs/ subtree as that directory's root. The build keeps internal manifests at the output root for local commands. Static hosts also need routing rules for Markdown content negotiation.
Node hosting
On a machine with Node.js 22.12 or newer and npm, check out your documentation project with its package.json and lockfile. Configure package registry access as described in the quickstart, then run these commands from the project directory:
npm ci
npx --no-install shoalrun build docs.config.yaml dist
npx --no-install shoalrun serve dist --host 0.0.0.0 --port 8080
The last command runs the server in the foreground. Configure your host's process manager to run it from the project directory and restart it after a release. Route your public HTTPS endpoint to port 8080 using the host's proxy or load balancer. Preserve request Accept headers and response headers through that proxy. The Node server handles HTML, negotiated Markdown, explicit .md URLs, and discovery resources.
For a local check, use http://localhost:8080/install/ and http://localhost:8080/install.md from the minimal starter. Replace those paths with your own pages when you change the content.
Search on one Node host
Since 1.4.0
For the included semantic search provider, build and index the site before starting the endpoint. Set the embedding provider's credentials in the server environment, then run this command from your documentation project:
npx --no-install shoalrun index dist --embed --config docs.config.yaml
npx --no-install shoalrun serve dist --search --config docs.config.yaml \
--host 127.0.0.1 --port 8080 \
--origin https://docs.internal.example \
--caller-header x-auth-request-user
Replace the origin and user header with your gateway's values. The gateway must preserve the public Host and authenticate requests. It must overwrite the identity header with the signed-in user's stable ID. Protect both the documentation and search API, and prevent direct access to the Node listener. For a gateway on another machine or container, bind to the listener's private network interface. Restrict ingress to that gateway.
This is supported for one persistent Node process. Search uses in-memory counters by default, so it needs no separate counter service; allowances reset on restart. Configure shared storage for several processes, or explicitly disable counters with search.limits: false. The search reference explains individual limits, custom stores, caller identity, and mounting the runtime in an existing Node application.
Keep one immutable build and passage index per process. Rebuild, reindex, and restart after changes. Provider keys stay server-side. The Node server blocks public requests for generated passage, embedding, and runtime files; custom static serving must exclude them too. --ask remains local-only, and the Vercel packager still includes search through its chat build workflow.
Other hosts
A static upload alone doesn't establish Markdown content negotiation. Configure the host to serve the resources and page variants described in content negotiation, including Vary: Accept, content types, Markdown alternate links, redirects, and 404 responses. Use generated outputs to identify the files to deploy.
Verify the public site
Replace the example origin and page path below with a published page on your site:
curl -i -H 'Accept: text/html' https://your-docs.example/install/
curl -i -H 'Accept: text/markdown' https://your-docs.example/install/
curl -i https://your-docs.example/install.md
Confirm that all three requests return HTTP 200. The first should return HTML; the second and third should return the page as Markdown. Check the response headers and missing-page behavior against the HTTP contract. A local build verifies files; these requests check the host's responses.
Shoalrun's docs repository also has a whole-site deployment checker. That repository script is separate from the installed CLI.
Before sharing a page, check its SEO and social preview metadata, including the public share-image URL.
Next, put multiple versions on one site if you need several editions in one site. For branches, tags, and retained build snapshots, see use Git branches for separate docs sites.