Get started

Deploy

Publish the docs on a static host, or run them in a small container behind your company sign-in.

npm run build writes a static site to dist/: plain HTML, CSS and a small script. Any static host can serve it. The site must be served from the root of a domain or subdomain, such as docs.example.com or my-docs.pages.dev.

Public docs on a static host

Host Build command Output folder
Cloudflare Pages npm run build dist
Netlify npm run build dist
Vercel npm run build dist
Azure Static Web Apps npm run build dist
GitHub Pages npm run build dist (with a custom domain)

Set the Node version to 24 on the host. Set SITE_URL to the public address of the site. For an in-app site, set the root directory, or base directory, to the site folder, such as docs-site. The host then reads the output folder from inside it.

Driftless needs no account with any host. These hosts are examples only.

Internal docs in a container

Docs for an internal application, or for one customer’s deployment, should not be public. Run them as a container in the same network as the app, behind the same sign-in.

Internal docs behind your company sign-in
  1. Build the image

    The Driftless repo has a Dockerfile and an nginx.conf. Copy both into your site folder. The Dockerfile builds the site, then serves it with unprivileged nginx on port 8080. The image is about 20 MB to download.

    Run the build in the site folder:

    docker build -t my-docs .
  2. Try it

    docker run --rm -p 8080:8080 my-docs

    Open http://localhost:8080.

  3. Run it behind your sign-in

    Deploy the image where your app runs, for example Azure Container Apps, AWS App Runner, Google Cloud Run or Kubernetes. Put it behind the same identity provider as the app, for example with Microsoft Entra ID, Cloudflare Access or an authenticating proxy.

Build options

Build argument Use
DRIFTLESS_ROOT Build another site in the repo, such as examples/open-webui
DRIFTLESS_INTERNAL=1 Include internal tabs, for a docs team’s own copy
SITE_URL The address the docs are served at

Checks on each pull request

Each layout has a workflow template in node_modules/driftless-docs/templates/github/.

Layout Workflow What it does
In-app docs-check.yml in the app repo Lists the pages that each pull request affects. When the pull request changes docs, it builds the site and attaches dist to the run, so reviewers can open the built pages.
Separate docs-impact.yml in the product repo, drift.yml in the docs repo Lists the pages that each product pull request affects, and checks every page each week.

A build artifact works on every host. If your host makes preview deployments for pull requests, you can use those too. Refer to Linked pull requests.

Privacy

Driftless has no telemetry and no hosted service. The built site loads nothing from other hosts. astro.config.mjs turns off Astro’s own telemetry and update check. The only call to another host is Ask, and only if you set ask.endpoint.

PRIVACY.md in the repo lists every network call that the scripts and workflows can make.