Three outputs for search and answer engines, all generic and off by default.
outputs: { llms_full: true }: /llms-full.txt, the whole site's text in one file. Every sitemap page written in Markdown appears in sitemap order, each with its title, Source: address, Updated: date (from lastmod), and summary, then its body. Tags and generated lists are left out. This complements llms.txt (the page list) for tools that read a site in one go.
outputs: { markdown: true }: each page's Markdown beside its HTML. /guide/ is also available at /guide/index.md. Pages whose address isn't a folder (/404.html) get no copy, and a file that static/ already placed at that path is kept.
In both outputs every relative link is made absolute. A link to a source file (server.md#ports, MkDocs style) becomes that page's address, and any other relative address is resolved against the page's own. Fenced code blocks and code spans are left as written, because they show links rather than use them. The source-file resolution is shared with the HTML pass (sourceTarget), so the two can't drift apart.
hotdog-cms indexnow [-site DIR] [-out DIR] [-name NAME] [-dry-run]: the IndexNow ping that publish and pull already send, for a site that is put online some other way (rsync, a container rebuild, a deploy script). Run it after the deploy against the build that went out. It sends the pages that changed since its last run under that name (the default name is the site's address), and its first run sends everything. -dry-run lists the URLs and sends and remembers nothing. It needs indexnow.key in site.yaml, as the build already publishes the key file.
Tests:
TestMarkdownOutputs: both files are written, a static file is kept, and tag pages get no copy.
TestAbsoluteMarkdown: source links with fragments, root-relative, relative, images with titles, HTML href, external links, anchors, code spans and fenced blocks.
TestIndexNowStandalone: a dry run sends nothing, then a real send, then no resend when nothing has changed.
The CI Go steps pass locally (gofmt, go vet, go test -count=1 ./...). The editor UI is untouched.
Tried on a copy of docs.inbuxa.org (447 pages). llms-full.txt comes to 1.8 MB, every page gets an index.md, and 0 relative .md links are left.
The hotdogcms.org docs (reference/site-yaml.md, automate/ai-assistants.md) need a line each once this is released. I'll do that after hotdogcms.org #36 lands, so the two public/ rebuilds don't conflict.
Three outputs for search and answer engines, all generic and off by default.
**`outputs: { llms_full: true }`**: `/llms-full.txt`, the whole site's text in one file. Every sitemap page written in Markdown appears in sitemap order, each with its title, `Source:` address, `Updated:` date (from `lastmod`), and summary, then its body. Tags and generated lists are left out. This complements `llms.txt` (the page list) for tools that read a site in one go.
**`outputs: { markdown: true }`**: each page's Markdown beside its HTML. `/guide/` is also available at `/guide/index.md`. Pages whose address isn't a folder (`/404.html`) get no copy, and a file that `static/` already placed at that path is kept.
In both outputs every relative link is made absolute. A link to a source file (`server.md#ports`, MkDocs style) becomes that page's address, and any other relative address is resolved against the page's own. Fenced code blocks and code spans are left as written, because they show links rather than use them. The source-file resolution is shared with the HTML pass (`sourceTarget`), so the two can't drift apart.
**`hotdog-cms indexnow [-site DIR] [-out DIR] [-name NAME] [-dry-run]`**: the IndexNow ping that `publish` and `pull` already send, for a site that is put online some other way (rsync, a container rebuild, a deploy script). Run it after the deploy against the build that went out. It sends the pages that changed since its last run under that name (the default name is the site's address), and its first run sends everything. `-dry-run` lists the URLs and sends and remembers nothing. It needs `indexnow.key` in `site.yaml`, as the build already publishes the key file.
Tests:
- `TestMarkdownOutputs`: both files are written, a static file is kept, and tag pages get no copy.
- `TestAbsoluteMarkdown`: source links with fragments, root-relative, relative, images with titles, HTML `href`, external links, anchors, code spans and fenced blocks.
- `TestIndexNowStandalone`: a dry run sends nothing, then a real send, then no resend when nothing has changed.
The CI Go steps pass locally (gofmt, `go vet`, `go test -count=1 ./...`). The editor UI is untouched.
Tried on a copy of docs.inbuxa.org (447 pages). `llms-full.txt` comes to 1.8 MB, every page gets an `index.md`, and 0 relative `.md` links are left.
The hotdogcms.org docs (reference/site-yaml.md, automate/ai-assistants.md) need a line each once this is released. I'll do that after hotdogcms.org #36 lands, so the two `public/` rebuilds don't conflict.
- outputs.llms_full: llms-full.txt, every page's Markdown in one file.
- outputs.markdown: each page's Markdown beside its HTML (/guide/index.md);
a file static/ put there is kept.
- Both make every relative link absolute (source-file links become page
addresses); code blocks and spans are left as written.
- hotdog-cms indexnow [-site] [-out] [-name] [-dry-run]: the IndexNow ping
that publish and pull already send, for a site deployed some other way.
Run it after the deploy; it sends what changed since its last run.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Three outputs for search and answer engines, all generic and off by default.
outputs: { llms_full: true }:/llms-full.txt, the whole site's text in one file. Every sitemap page written in Markdown appears in sitemap order, each with its title,Source:address,Updated:date (fromlastmod), and summary, then its body. Tags and generated lists are left out. This complementsllms.txt(the page list) for tools that read a site in one go.outputs: { markdown: true }: each page's Markdown beside its HTML./guide/is also available at/guide/index.md. Pages whose address isn't a folder (/404.html) get no copy, and a file thatstatic/already placed at that path is kept.In both outputs every relative link is made absolute. A link to a source file (
server.md#ports, MkDocs style) becomes that page's address, and any other relative address is resolved against the page's own. Fenced code blocks and code spans are left as written, because they show links rather than use them. The source-file resolution is shared with the HTML pass (sourceTarget), so the two can't drift apart.hotdog-cms indexnow [-site DIR] [-out DIR] [-name NAME] [-dry-run]: the IndexNow ping thatpublishandpullalready send, for a site that is put online some other way (rsync, a container rebuild, a deploy script). Run it after the deploy against the build that went out. It sends the pages that changed since its last run under that name (the default name is the site's address), and its first run sends everything.-dry-runlists the URLs and sends and remembers nothing. It needsindexnow.keyinsite.yaml, as the build already publishes the key file.Tests:
TestMarkdownOutputs: both files are written, a static file is kept, and tag pages get no copy.TestAbsoluteMarkdown: source links with fragments, root-relative, relative, images with titles, HTMLhref, external links, anchors, code spans and fenced blocks.TestIndexNowStandalone: a dry run sends nothing, then a real send, then no resend when nothing has changed.The CI Go steps pass locally (gofmt,
go vet,go test -count=1 ./...). The editor UI is untouched.Tried on a copy of docs.inbuxa.org (447 pages).
llms-full.txtcomes to 1.8 MB, every page gets anindex.md, and 0 relative.mdlinks are left.The hotdogcms.org docs (reference/site-yaml.md, automate/ai-assistants.md) need a line each once this is released. I'll do that after hotdogcms.org #36 lands, so the two
public/rebuilds don't conflict.