1. Build the pages
outDir (dist/ by default):
one folder per dashboard and per report, and an index.html that opens the first page. Every URL is
relative, so the folder works under any path and straight from disk.
2. Choose who can see them
A page holds the data it shows, including what its filters and table downloads need, and asks nobody who they are. So publishdist/ behind access control you already trust: an intranet
behind your company’s sign-in, a private bucket with authenticated access, or a static host with its
own access policy. Use a public host only for data you would publish anyway.
3. Copy the folder
Any static host servesdist/ as it is. For example:
4. Check every change
check runs
without database access and only warns that it couldn’t read a database source’s columns. test
reads the data, so a test on a database source needs the connection variable or a
fixture file, and it may keep a local copy of the rows in
.hatchmark/cache/.
5. Rebuild when the data changes
Runhatchmark build again and copy the folder. It reuses cached results for queries whose data
didn’t change, so a rebuild is quick. To rebuild on a schedule and serve the pages from inside your
network, run hatchmark serve in Docker instead.
Next
hatchmark build: the output, the build cache and exit codes.- Share a chart or a PDF for readers who don’t open the pages.