Skip to content

Commit fda5078

Browse files
authored
fix: point /docs command and config links to docs.altimate.sh (#715)
The TUI "Open docs" command (`docs.open`) opened `https://altimate.ai/docs`, which is not the project's documentation site. The canonical docs live at `https://docs.altimate.sh` (per `README.md`, `docs/docs/CNAME`, `docs/mkdocs.yml`). The same wrong domain was also used in `config.ts` schema descriptions, the Cloudflare AI Gateway help text, the Anthropic system prompt, and `openapi.json` + generated SDK type files. The rewritten paths also needed a `/configure/` prefix to match the actual mkdocs site structure. All 5 target URLs were verified to return HTTP 200: - https://docs.altimate.sh - https://docs.altimate.sh/configure/config/ - https://docs.altimate.sh/configure/commands/ - https://docs.altimate.sh/configure/agents/ - https://docs.altimate.sh/configure/providers/ Closes #714
1 parent c438bb0 commit fda5078

File tree

7 files changed

+12
-12
lines changed

7 files changed

+12
-12
lines changed

packages/opencode/src/cli/cmd/providers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export const ProvidersLoginCommand = cmd({
431431

432432
if (["cloudflare", "cloudflare-ai-gateway"].includes(provider)) {
433433
prompts.log.info(
434-
"Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://altimate.ai/docs/providers/#cloudflare-ai-gateway",
434+
"Cloudflare AI Gateway can be configured with CLOUDFLARE_GATEWAY_ID, CLOUDFLARE_ACCOUNT_ID, and CLOUDFLARE_API_TOKEN environment variables. Read more: https://docs.altimate.sh/configure/providers/",
435435
)
436436
}
437437

packages/opencode/src/cli/cmd/tui/app.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@ function App() {
680680
title: "Open docs",
681681
value: "docs.open",
682682
onSelect: () => {
683-
open("https://altimate.ai/docs").catch(() => {})
683+
open("https://docs.altimate.sh").catch(() => {})
684684
dialog.clear()
685685
},
686686
category: "System",

packages/opencode/src/config/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export namespace Config {
7878
export const state = Instance.state(async () => {
7979
const auth = await Auth.all()
8080

81-
// Config loading order (low -> high precedence): https://altimate.ai/docs/config#precedence-order
81+
// Config loading order (low -> high precedence): https://docs.altimate.sh/configure/config/
8282
// 1) Remote .well-known/opencode (org defaults)
8383
// 2) Global config (~/.config/opencode/opencode.json{,c})
8484
// 3) Custom config (OPENCODE_CONFIG)
@@ -1074,7 +1074,7 @@ export namespace Config {
10741074
command: z
10751075
.record(z.string(), Command)
10761076
.optional()
1077-
.describe("Command configuration, see https://altimate.ai/docs/commands"),
1077+
.describe("Command configuration, see https://docs.altimate.sh/configure/commands/"),
10781078
skills: Skills.optional().describe("Additional skill folder paths"),
10791079
watcher: z
10801080
.object({
@@ -1141,7 +1141,7 @@ export namespace Config {
11411141
})
11421142
.catchall(Agent)
11431143
.optional()
1144-
.describe("Agent configuration, see https://altimate.ai/docs/agents"),
1144+
.describe("Agent configuration, see https://docs.altimate.sh/configure/agents/"),
11451145
provider: z
11461146
.record(z.string(), Provider)
11471147
.optional()

packages/opencode/src/session/prompt/anthropic.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If the user asks for help or wants to give feedback inform them of the following
99
- To give feedback, users should report the issue at
1010
https://github.com/AltimateAI/altimate-code
1111

12-
When the user directly asks about Altimate Code (eg. "can Altimate Code do...", "does Altimate Code have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific Altimate Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from Altimate Code docs. The list of available docs is available at https://altimate.ai/docs
12+
When the user directly asks about Altimate Code (eg. "can Altimate Code do...", "does Altimate Code have..."), or asks in second person (eg. "are you able...", "can you do..."), or asks how to use a specific Altimate Code feature (eg. implement a hook, write a slash command, or install an MCP server), use the WebFetch tool to gather information to answer the question from Altimate Code docs. The list of available docs is available at https://docs.altimate.sh
1313

1414
# Tone and style
1515
- Only use emojis if the user explicitly requests it. Avoid using emojis in all communication unless asked.

packages/sdk/js/src/gen/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ export type Config = {
12091209
diff_style?: "auto" | "stacked"
12101210
}
12111211
/**
1212-
* Command configuration, see https://altimate.ai/docs/commands
1212+
* Command configuration, see https://docs.altimate.sh/configure/commands/
12131213
*/
12141214
command?: {
12151215
[key: string]: {
@@ -1266,7 +1266,7 @@ export type Config = {
12661266
[key: string]: AgentConfig | undefined
12671267
}
12681268
/**
1269-
* Agent configuration, see https://altimate.ai/docs/agent
1269+
* Agent configuration, see https://docs.altimate.sh/configure/agents/
12701270
*/
12711271
agent?: {
12721272
plan?: AgentConfig

packages/sdk/js/src/v2/gen/types.gen.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ export type Config = {
13151315
logLevel?: LogLevel
13161316
server?: ServerConfig
13171317
/**
1318-
* Command configuration, see https://altimate.ai/docs/commands
1318+
* Command configuration, see https://docs.altimate.sh/configure/commands/
13191319
*/
13201320
command?: {
13211321
[key: string]: {
@@ -1389,7 +1389,7 @@ export type Config = {
13891389
[key: string]: AgentConfig | undefined
13901390
}
13911391
/**
1392-
* Agent configuration, see https://altimate.ai/docs/agents
1392+
* Agent configuration, see https://docs.altimate.sh/configure/agents/
13931393
*/
13941394
agent?: {
13951395
plan?: AgentConfig

packages/sdk/openapi.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10340,7 +10340,7 @@
1034010340
"$ref": "#/components/schemas/ServerConfig"
1034110341
},
1034210342
"command": {
10343-
"description": "Command configuration, see https://altimate.ai/docs/commands",
10343+
"description": "Command configuration, see https://docs.altimate.sh/configure/commands/",
1034410344
"type": "object",
1034510345
"propertyNames": {
1034610346
"type": "string"
@@ -10474,7 +10474,7 @@
1047410474
}
1047510475
},
1047610476
"agent": {
10477-
"description": "Agent configuration, see https://altimate.ai/docs/agents",
10477+
"description": "Agent configuration, see https://docs.altimate.sh/configure/agents/",
1047810478
"type": "object",
1047910479
"properties": {
1048010480
"plan": {

0 commit comments

Comments
 (0)