fix: honor HTTP(S) docs roots in goose-doc-guide (#13381)
This commit is contained in:
@@ -13,11 +13,12 @@ Do NOT use this skill for:
|
||||
- General coding tasks unrelated to goose
|
||||
- Running existing recipes (just run them directly)
|
||||
|
||||
The docs root for this session is `{{GOOSE_DOCS_ROOT}}`. It may be a local
|
||||
filesystem path or an HTTP(S) URL. When it is a local path read files with the
|
||||
shell/file tools; when it is not set or is an HTTP(S) URL fetch them from the
|
||||
canonical location which is https://goose-docs.ai. Everything below refers to
|
||||
this docs root as `<docs-root>`.
|
||||
The docs root for this session is `{{GOOSE_DOCS_ROOT}}`. Always read docs from
|
||||
this root, whether it is a local filesystem path or an HTTP(S) URL. For local
|
||||
paths, read files with the shell/file tools; for HTTP(S) URLs, fetch from that
|
||||
URL. If the docs root above is not https://goose-docs.ai, never fetch docs from
|
||||
https://goose-docs.ai; use it only for links in your answer. Everything below
|
||||
refers to this docs root as `<docs-root>`.
|
||||
|
||||
## Steps (COMPLETE ALL BEFORE RESPONDING)
|
||||
1. **Read official docs**
|
||||
@@ -58,6 +59,6 @@ this docs root as `<docs-root>`.
|
||||
|
||||
5. **List documentation links**
|
||||
- Only include docs actually used
|
||||
- Always link to the canonical site `https://goose-docs.ai/`, even if you read the docs from a local path. Never expose local filesystem paths.
|
||||
- Always link to the canonical site `https://goose-docs.ai/`, even if you read the docs from a local path or HTTP(S) mirror. Never expose local filesystem paths.
|
||||
- Remove `.md` suffix from URLs
|
||||
- Example: If you read `docs/guides/sessions/session-management.md`, list it as `https://goose-docs.ai/docs/guides/sessions/session-management`
|
||||
|
||||
@@ -80,7 +80,7 @@ For a managed distribution, bake the docs tree into your image and set
|
||||
## Notes
|
||||
|
||||
- Documentation links in goose's answers always render as canonical
|
||||
`https://goose-docs.ai/...` URLs, even when read locally.
|
||||
`https://goose-docs.ai/...` URLs, even when read locally or from a mirror.
|
||||
- A custom HTTP(S) mirror also works: set `GOOSE_DOCS_ROOT` to its root URL.
|
||||
- For MCP extension runtime issues offline, see
|
||||
[Airgapped/Offline Environment Issues](/docs/troubleshooting/known-issues#airgappedoffline-environment-issues).
|
||||
|
||||
Reference in New Issue
Block a user