Skip to content

Commit dfe9146

Browse files
committed
Rewrite docs.sourcegraph.com links to sourcegraph.com/docs
1 parent 0636dac commit dfe9146

7 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎DEVELOPMENT.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ For quick end-to-end CLI sanity checks against a live Sourcegraph instance, run:
6262

6363
This script intentionally uses your currently exported `SRC_*` environment variables, is not hooked up to CI, and is meant for manual regression checks (for example, to catch issues like `src users list` failing unexpectedly).
6464

65-
We adhere to the [general Sourcegraph principles for testing](https://docs.sourcegraph.com/dev/background-information/testing_principles), as well as [the Go specific directions](https://docs.sourcegraph.com/dev/background-information/languages/testing_go_code), at least to the extent they apply to a standalone tool like `src`.
65+
We adhere to the [general Sourcegraph principles for testing](https://sourcegraph.com/docs/dev/background-information/testing_principles), as well as [the Go specific directions](https://sourcegraph.com/docs/dev/background-information/languages/testing_go_code), at least to the extent they apply to a standalone tool like `src`.
6666

6767
## Releasing
6868

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
- **Search & get results in your terminal**
88
- **Search & get JSON** for programmatic consumption
99
- Make **GraphQL API requests** with auth easily & get JSON back fast
10-
- Execute **[batch changes](https://docs.sourcegraph.com/batch_changes)**
10+
- Execute **[batch changes](https://sourcegraph.com/docs/batch_changes)**
1111
- **Manage & administrate** repositories, users, and more
1212
- **Easily convert src-CLI commands to equivalent curl commands**, just add --get-curl!
1313

@@ -173,7 +173,7 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
173173
- `src auth` - print the active authentication token or authorization header
174174
- `src search` - perform searches and get results in your terminal or as JSON
175175
- `src api` - run Sourcegraph GraphQL API requests
176-
- `src batch` - execute and manage [batch changes](https://docs.sourcegraph.com/batch_changes)
176+
- `src batch` - execute and manage [batch changes](https://sourcegraph.com/docs/batch_changes)
177177
- `src repos` - manage repositories
178178
- `src users` - manage users
179179
- `src orgs` - manages organization
@@ -185,7 +185,7 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
185185
- `src version` - check version and guaranteed-compatible version for your Sourcegraph instance
186186

187187
Run `src -h` and `src <subcommand> -h` for more detailed usage information.
188-
You can also read the [usage docs for the latest version of `src-cli`](https://docs.sourcegraph.com/cli/references) online.
188+
You can also read the [usage docs for the latest version of `src-cli`](https://sourcegraph.com/docs/cli/references) online.
189189

190190
#### Optional: Renaming `src`
191191

@@ -211,7 +211,7 @@ src-cli/3.21.10 linux amd64
211211

212212
To disable this and _only_ send the version, you can set `-user-agent-telemetry=false` for a single command, or set the `SRC_DISABLE_USER_AGENT_TELEMETRY` environment variable to any non-blank string.
213213

214-
As with [other Sourcegraph telemetry](https://docs.sourcegraph.com/dev/background-information/telemetry), any collected data is only sent to Sourcegraph.com in aggregate form.
214+
As with [other Sourcegraph telemetry](https://sourcegraph.com/docs/dev/background-information/telemetry), any collected data is only sent to Sourcegraph.com in aggregate form.
215215

216216
## Development
217217

‎cmd/src/search.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Other tips:
4848
4949
Force color output on (not on by default when piped to other programs) by setting COLOR=t
5050
51-
Query syntax: https://docs.sourcegraph.com/code_search/reference/queries
51+
Query syntax: https://sourcegraph.com/docs/code_search/reference/queries
5252
5353
Be careful with search strings including negation: a search with an initial
5454
negated term may be parsed as a flag rather than as a search string. You can

‎internal/api/flags.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func NewFlags(flagSet *flag.FlagSet) *Flags {
4242
return &Flags{
4343
dump: flagSet.Bool("dump-requests", false, "Log GraphQL requests and responses to stdout"),
4444
getCurl: flagSet.Bool("get-curl", false, "Print the curl command for executing this query and exit (WARNING: includes printing your access token!)"),
45-
trace: flagSet.Bool("trace", false, "Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing"),
45+
trace: flagSet.Bool("trace", false, "Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing"),
4646
insecureSkipVerify: flagSet.Bool("insecure-skip-verify", false, "Skip validation of TLS certificates against trusted chains"),
4747
userAgentTelemetry: flagSet.Bool("user-agent-telemetry", defaultUserAgentTelemetry(), "Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph"),
4848
}

‎internal/batches/ui/tui.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -400,7 +400,7 @@ func printExecutionError(out *output.Output, err error) {
400400
out.Write("")
401401

402402
block := out.Block(output.Line(output.EmojiLightbulb, output.StyleSuggestion, "The troubleshooting documentation can help to narrow down the cause of the errors:"))
403-
block.WriteLine(output.Line("", output.StyleSuggestion, "https://docs.sourcegraph.com/batch_changes/references/troubleshooting"))
403+
block.WriteLine(output.Line("", output.StyleSuggestion, "https://sourcegraph.com/docs/batch_changes/references/troubleshooting"))
404404
block.Close()
405405
}
406406

‎internal/clicompat/api_flags.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func WithAPIFlags(baseFlags ...cli.Flag) []cli.Flag {
1616
}{
1717
{"dump-requests", false, "Log GraphQL requests and responses to stdout"},
1818
{"get-curl", false, "Print the curl command for executing this query and exit (WARNING: includes printing your access token!)"},
19-
{"trace", false, "Log the trace ID for requests. See https://docs.sourcegraph.com/admin/observability/tracing"},
19+
{"trace", false, "Log the trace ID for requests. See https://sourcegraph.com/docs/admin/observability/tracing"},
2020
{"insecure-skip-verify", false, "Skip validation of TLS certificates against trusted chains"},
2121
{"user-agent-telemetry", defaultAPIUserAgentTelemetry(), "Include the operating system and architecture in the User-Agent sent with requests to Sourcegraph"},
2222
}

‎internal/users/admin.go‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ func (c *Client) GraphQL(token, query string, variables map[string]any, target a
262262
req.Header.Set("Authorization", fmt.Sprintf("token %s", token))
263263
} else {
264264
// NOTE: This header is required to authenticate our session with a session cookie, see:
265-
// https://docs.sourcegraph.com/dev/security/csrf_security_model#authentication-in-api-endpoints
265+
// https://sourcegraph.com/docs/dev/security/csrf_security_model#authentication-in-api-endpoints
266266
req.Header.Set("X-Requested-With", "Sourcegraph")
267267
req.AddCookie(c.sessionCookie)
268268

0 commit comments

Comments
 (0)