Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0787de8

Browse files
authored
chore: update documentation links to the new format (#13797)
1 parent2a297b0 commit0787de8

File tree

87 files changed

+213
-222
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

87 files changed

+213
-222
lines changed

‎agent/agentscripts/agentscripts.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ func (r *Runner) run(ctx context.Context, script codersdk.WorkspaceAgentScript)
349349
"This usually means a child process was started with references to stdout or stderr. As a result, this "+
350350
"process may now have been terminated. Consider redirecting the output or using a separate "+
351351
"\"coder_script\" for the process, see "+
352-
"https://coder.com/docs/v2/latest/templates/troubleshooting#startup-script-issues for more information.",
352+
"https://coder.com/docs/templates/troubleshooting#startup-script-issues for more information.",
353353
)
354354
// Inform the user by propagating the message via log writers.
355355
_,_=fmt.Fprintf(cmd.Stderr,"WARNING: %s. %s\n",message,details)

‎cli/cliui/agent.go‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
116116
ifagent.Status==codersdk.WorkspaceAgentTimeout {
117117
now:=time.Now()
118118
sw.Log(now,codersdk.LogLevelInfo,"The workspace agent is having trouble connecting, wait for it to connect or restart your workspace.")
119-
sw.Log(now,codersdk.LogLevelInfo,troubleshootingMessage(agent,"https://coder.com/docs/v2/latest/templates#agent-connection-issues"))
119+
sw.Log(now,codersdk.LogLevelInfo,troubleshootingMessage(agent,"https://coder.com/docs/templates#agent-connection-issues"))
120120
foragent.Status==codersdk.WorkspaceAgentTimeout {
121121
ifagent,err=fetch();err!=nil {
122122
returnxerrors.Errorf("fetch: %w",err)
@@ -221,13 +221,13 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
221221
sw.Fail(stage,safeDuration(sw,agent.ReadyAt,agent.StartedAt))
222222
// Use zero time (omitted) to separate these from the startup logs.
223223
sw.Log(time.Time{},codersdk.LogLevelWarn,"Warning: A startup script exited with an error and your workspace may be incomplete.")
224-
sw.Log(time.Time{},codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/v2/latest/templates/troubleshooting#startup-script-exited-with-an-error"))
224+
sw.Log(time.Time{},codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/templates/troubleshooting#startup-script-exited-with-an-error"))
225225
default:
226226
switch {
227227
caseagent.LifecycleState.Starting():
228228
// Use zero time (omitted) to separate these from the startup logs.
229229
sw.Log(time.Time{},codersdk.LogLevelWarn,"Notice: The startup scripts are still running and your workspace may be incomplete.")
230-
sw.Log(time.Time{},codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/v2/latest/templates/troubleshooting#your-workspace-may-be-incomplete"))
230+
sw.Log(time.Time{},codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/templates/troubleshooting#your-workspace-may-be-incomplete"))
231231
// Note: We don't complete or fail the stage here, it's
232232
// intentionally left open to indicate this stage didn't
233233
// complete.
@@ -249,7 +249,7 @@ func Agent(ctx context.Context, writer io.Writer, agentID uuid.UUID, opts AgentO
249249
stage:="The workspace agent lost connection"
250250
sw.Start(stage)
251251
sw.Log(time.Now(),codersdk.LogLevelWarn,"Wait for it to reconnect or restart your workspace.")
252-
sw.Log(time.Now(),codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/v2/latest/templates/troubleshooting#agent-connection-issues"))
252+
sw.Log(time.Now(),codersdk.LogLevelWarn,troubleshootingMessage(agent,"https://coder.com/docs/templates/troubleshooting#agent-connection-issues"))
253253

254254
disconnectedAt:=agent.DisconnectedAt
255255
foragent.Status==codersdk.WorkspaceAgentDisconnected {

‎cli/dotfiles.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ func (r *RootCmd) dotfiles() *serpent.Command {
204204
}
205205

206206
iffi.Mode()&0o111==0 {
207-
returnxerrors.Errorf("script %q is not executable. See https://coder.com/docs/v2/latest/dotfiles for information on how to resolve the issue.",script)
207+
returnxerrors.Errorf("script %q is not executable. See https://coder.com/docs/dotfiles for information on how to resolve the issue.",script)
208208
}
209209

210210
// it is safe to use a variable command here because it's from

‎cli/server.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ func (r *RootCmd) Server(newAPI func(context.Context, *coderd.Options) (*coderd.
838838
}
839839
deferoptions.Telemetry.Close()
840840
}else {
841-
logger.Warn(ctx,`telemetry disabled, unable to notify of security issues. Read more: https://coder.com/docs/v2/latest/admin/telemetry`)
841+
logger.Warn(ctx,`telemetry disabled, unable to notify of security issues. Read more: https://coder.com/docs/admin/telemetry`)
842842
}
843843

844844
// This prevents the pprof import from being accidentally deleted.

‎cli/testdata/server-config.yaml.golden‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -427,8 +427,8 @@ termsOfServiceURL: ""
427427
# (default: ed25519, type: string)
428428
sshKeygenAlgorithm: ed25519
429429
# URL to use for agent troubleshooting when not set in the template.
430-
# (default: https://coder.com/docs/v2/latest/templates/troubleshooting, type: url)
431-
agentFallbackTroubleshootingURL: https://coder.com/docs/v2/latest/templates/troubleshooting
430+
# (default: https://coder.com/docs/templates/troubleshooting, type: url)
431+
agentFallbackTroubleshootingURL: https://coder.com/docs/templates/troubleshooting
432432
# Disable workspace apps that are not served from subdomains. Path-based apps can
433433
# make requests to the Coder API and pose a security risk when the workspace
434434
# serves malicious JavaScript. This is recommended for security purposes if a

‎coderd/healthcheck/health/model.go‎

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"fmt"
55
"strings"
66

7-
"github.com/coder/coder/v2/buildinfo"
87
"github.com/coder/coder/v2/coderd/util/ptr"
98
)
109

@@ -49,7 +48,7 @@ const (
4948

5049
// Default docs URL
5150
var (
52-
docsURLDefault="https://coder.com/docs/v2"
51+
docsURLDefault="https://coder.com/docs"
5352
)
5453

5554
// @typescript-generate Severity
@@ -92,12 +91,7 @@ func (m Message) URL(base string) string {
9291

9392
ifbase=="" {
9493
base=docsURLDefault
95-
versionPath:=buildinfo.Version()
96-
ifbuildinfo.IsDev() {
97-
// for development versions, just use latest
98-
versionPath="latest"
99-
}
100-
returnfmt.Sprintf("%s/%s/admin/healthcheck#%s",base,versionPath,codeAnchor)
94+
returnfmt.Sprintf("%s/admin/healthcheck#%s",base,codeAnchor)
10195
}
10296

10397
// We don't assume that custom docs URLs are versioned.

‎coderd/healthcheck/health/model_test.go‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ func Test_MessageURL(t *testing.T) {
1717
basestring
1818
expectedstring
1919
}{
20-
{"empty","","","https://coder.com/docs/v2/latest/admin/healthcheck#eunknown"},
21-
{"default",health.CodeAccessURLFetch,"","https://coder.com/docs/v2/latest/admin/healthcheck#eacs03"},
20+
{"empty","","","https://coder.com/docs/admin/healthcheck#eunknown"},
21+
{"default",health.CodeAccessURLFetch,"","https://coder.com/docs/admin/healthcheck#eacs03"},
2222
{"custom docs base",health.CodeAccessURLFetch,"https://example.com/docs","https://example.com/docs/admin/healthcheck#eacs03"},
2323
} {
2424
tt:=tt

‎codersdk/deployment.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1867,7 +1867,7 @@ when required by your organization's security policy.`,
18671867
Flag:"agent-fallback-troubleshooting-url",
18681868
Env:"CODER_AGENT_FALLBACK_TROUBLESHOOTING_URL",
18691869
Hidden:true,
1870-
Default:"https://coder.com/docs/v2/latest/templates/troubleshooting",
1870+
Default:"https://coder.com/docs/templates/troubleshooting",
18711871
Value:&c.AgentFallbackTroubleshootingURL,
18721872
YAML:"agentFallbackTroubleshootingURL",
18731873
},

‎codersdk/healthsdk/healthsdk_test.go‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ func TestSummarize(t *testing.T) {
4141
expected:= []string{
4242
"Access URL: Error: test error",
4343
"Access URL: Warn: TEST: testing",
44-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
44+
"See: https://coder.com/docs/admin/healthcheck#test",
4545
"Database: Error: test error",
4646
"Database: Warn: TEST: testing",
47-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
47+
"See: https://coder.com/docs/admin/healthcheck#test",
4848
"DERP: Error: test error",
4949
"DERP: Warn: TEST: testing",
50-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
50+
"See: https://coder.com/docs/admin/healthcheck#test",
5151
"Provisioner Daemons: Error: test error",
5252
"Provisioner Daemons: Warn: TEST: testing",
53-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
53+
"See: https://coder.com/docs/admin/healthcheck#test",
5454
"Websocket: Error: test error",
5555
"Websocket: Warn: TEST: testing",
56-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
56+
"See: https://coder.com/docs/admin/healthcheck#test",
5757
"Workspace Proxies: Error: test error",
5858
"Workspace Proxies: Warn: TEST: testing",
59-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test",
59+
"See: https://coder.com/docs/admin/healthcheck#test",
6060
}
6161
actual:=hr.Summarize("")
6262
assert.Equal(t,expected,actual)
@@ -93,9 +93,9 @@ func TestSummarize(t *testing.T) {
9393
expected: []string{
9494
"Error: testing",
9595
"Warn: TEST01: testing one",
96-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test01",
96+
"See: https://coder.com/docs/admin/healthcheck#test01",
9797
"Warn: TEST02: testing two",
98-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test02",
98+
"See: https://coder.com/docs/admin/healthcheck#test02",
9999
},
100100
},
101101
{
@@ -117,9 +117,9 @@ func TestSummarize(t *testing.T) {
117117
expected: []string{
118118
"TEST: Error: testing",
119119
"TEST: Warn: TEST01: testing one",
120-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test01",
120+
"See: https://coder.com/docs/admin/healthcheck#test01",
121121
"TEST: Warn: TEST02: testing two",
122-
"See: https://coder.com/docs/v2/latest/admin/healthcheck#test02",
122+
"See: https://coder.com/docs/admin/healthcheck#test02",
123123
},
124124
},
125125
} {

‎docs/admin/auth.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ OIDC provider will be added to the `myCoderGroupName` group in Coder.
321321
### Group allowlist
322322

323323
You can limit which groups from your identity provider can log in to Coder with
324-
[CODER_OIDC_ALLOWED_GROUPS](https://coder.com/docs/v2/latest/cli/server#--oidc-allowed-groups).
324+
[CODER_OIDC_ALLOWED_GROUPS](https://coder.com/docs/cli/server#--oidc-allowed-groups).
325325
Users who are not in a matching group will see the following error:
326326

327327
![Unauthorized group error](../images/admin/group-allowlist.png)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp