What happens without asking #

View this page as Markdown

On this page

The tool asks nothing. It has no prompt and no interactive mode. Everything it does follows from its command line and a config file, if one is read: the file --config names, or, without --config or --source, tzdocs.json in the folder it runs in. This page lists what it reads, writes, and sends, and the three actions an AI coding agent running it confirms with you first.

A successful build replaces everything in its output folder. So an agent confirms with you before building into a folder that contains anything else. What an agent confirms first lists this and the two other actions it confirms first.

What it reads #

A check reads the folder given with --source and every Markdown file under it. A build reads those, the other files under --source, which it copies beside the pages, and the files given with --shell, --home-opening, and --stylesheet. If a page contains a mermaid block outside a markdown-only section and --diagrams-as-code is not given, it also reads node_modules/mermaid/dist/mermaid.min.js in the folder it runs in or the nearest folder above that contains one.

With a config file, both commands read the config and the source folders it names, and require each named opening to be a file. Only a build reads the openings, to put them into the home pages. The tool reads no other configuration file or environment variable.

What it writes #

A check writes nothing. A build writes into these places and nowhere else:

  • the folder given with --out, whose entire previous contents the new site replaces;
  • the output folder's missing parent folders, which it creates;
  • two temporary folders beside the output folder: a staging folder and, if a previous site exists, a backup folder.

A successful build removes the temporary folders. A failed build reports any folder it leaves, and Output says what each one contains. The tool never edits a source file. To fix a finding, you or your agent edit the source file.

What it sends #

Nothing. The tool opens no network connection, fetches no external link, and reports no usage. A check does not fetch the external addresses a page links to.

The generated pages can make requests later, from the reader's browser. Where the config file names a search address, the sidebar's search box sends the words the reader types to it. Pages also load their stylesheets, images, and, where used, Mermaid. External resources referenced by your Markdown, shell, or supplied HTML can make requests to other sites. These browser requests are separate from the build, which opens no network connection.

What an agent confirms first #

An agent running the tool on your behalf can run tzdocs check at any time, because it writes nothing. The agent confirms three actions with you before running them:

  • Building into a folder that contains anything other than a previous build. The output folder is replaced whole, so a folder that also contains other files loses them.
  • Building with --include-hidden for a site that is served openly. The flag builds the hidden pages into the tree and into every machine file, and only the server hosting the site can then withhold them.
  • Deleting a backup folder a failed build reported. A .tzdocs-backup-* folder named in an error message keeps the previous site until it is recovered.

Everything else needs no confirmation beyond the request that started the task: running the check, building into the dedicated output folder, and fixing the source files the findings mention.

  • Getting started gives the two commands and the flags.
  • Output says what a failed replacement leaves behind.