From 4f5c0f41e9d3bb79bde9a7cb7d8770ae793e0d59 Mon Sep 17 00:00:00 2001 From: Shizuo Fujita Date: Mon, 7 Sep 2026 10:35:58 +0900 Subject: [PATCH] Add llms.txt and Markdown pages for coding agents GitBook served /llms.txt and a Markdown twin of every page. Both were lost in the HonKit migration and return 404 today. Check in llms.txt by hand, with sections mirroring SUMMARY.md, and copy the Markdown sources into the build so that appending .md to a page URL returns its source. Page sources are unchanged. Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: Shizuo Fujita --- _layouts/website/page.html | 7 + book.json | 4 + llms.txt | 288 +++++++++++++++++++++++++++++++++++++ scripts/build.sh | 10 ++ scripts/check-llms-txt.sh | 25 ++++ 5 files changed, 334 insertions(+) create mode 100644 llms.txt create mode 100755 scripts/check-llms-txt.sh diff --git a/_layouts/website/page.html b/_layouts/website/page.html index aa3c4054..af010e66 100644 --- a/_layouts/website/page.html +++ b/_layouts/website/page.html @@ -1,5 +1,12 @@ {% extends template.self %} +{% block head %} + {{ super() }} + {% if book.markdownAlternate %} + + {% endif %} +{% endblock %} + {% block page %}
 Fluentd diff --git a/book.json b/book.json index d7f2f096..bc21b241 100644 --- a/book.json +++ b/book.json @@ -13,6 +13,10 @@ "-lunr", "-search", "@dogatana/search-plus" ], + "variables": { + "markdownAlternate": true + }, + "pluginsConfig": { "breadcrumbs": { "separator": ">" diff --git a/llms.txt b/llms.txt new file mode 100644 index 00000000..08b2ba70 --- /dev/null +++ b/llms.txt @@ -0,0 +1,288 @@ +# Fluentd + +> Fluentd is an open source data collector for a unified logging layer. It collects, filters, buffers and routes event streams to many destinations. This site is the official documentation for Fluentd v1. + +A Fluentd configuration file declares a pipeline of plugins. `` sections bring events in, `` sections transform them and `` sections send them out. Events are routed by tag, and `