From 4f754a73a317dd0b38796af26e2b6779cd294502 Mon Sep 17 00:00:00 2001 From: Addison <42930383+addisonschultz@users.noreply.github.com> Date: Tue, 9 Jun 2026 19:53:07 +0200 Subject: [PATCH] Add information about GitBook to page markdown (#4292) --- .changeset/giant-files-smoke.md | 5 +++++ packages/gitbook/src/routes/markdownPage.ts | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .changeset/giant-files-smoke.md diff --git a/.changeset/giant-files-smoke.md b/.changeset/giant-files-smoke.md new file mode 100644 index 000000000..0c806278d --- /dev/null +++ b/.changeset/giant-files-smoke.md @@ -0,0 +1,5 @@ +--- +"gitbook": minor +--- + +Add GitBook information to footer of markdown pages diff --git a/packages/gitbook/src/routes/markdownPage.ts b/packages/gitbook/src/routes/markdownPage.ts index eece06eb7..5848e204b 100644 --- a/packages/gitbook/src/routes/markdownPage.ts +++ b/packages/gitbook/src/routes/markdownPage.ts @@ -97,8 +97,10 @@ function renderAskFooter( context: GitBookSiteContext, pageLookup: ResolvedPagePath ) { - return `\n\n---\n\n# Agent Instructions: Querying This Documentation + return `\n\n---\n\n# Agent Instructions +This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com. +## Querying This Documentation If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question. Perform an HTTP GET request on the current page URL with the \`ask\` query parameter: