Skip to content

Commit a50e515

Browse files
committed
fix: update documentation URLs to use sourcegraph.com
This commit updates several documentation URLs throughout the codebase to point to the `sourcegraph.com` domain instead of `docs.sourcegraph.com`. This ensures that users are directed to the most up-to-date and accurate documentation. docs.sourcegraph.com links that were broken after updating were left as-is
1 parent 29ccb97 commit a50e515

6 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 3 additions & 3 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

@@ -161,7 +161,7 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
161161
- `src login` - authenticate to a Sourcegraph instance with your user credentials
162162
- `src search` - perform searches and get results in your terminal or as JSON
163163
- `src api` - run Sourcegraph GraphQL API requests
164-
- `src batch` - execute and manage [batch changes](https://docs.sourcegraph.com/batch_changes)
164+
- `src batch` - execute and manage [batch changes](https://sourcegraph.com/docs/batch_changes)
165165
- `src repos` - manage repositories
166166
- `src users` - manage users
167167
- `src orgs` - manages organization
@@ -173,7 +173,7 @@ Is your Sourcegraph instance behind a custom auth proxy? See [auth proxy configu
173173
- `src version` - check version and guaranteed-compatible version for your Sourcegraph instance
174174

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

178178
#### Optional: Renaming `src`
179179

cmd/src/code_intel_upload.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func attachHintsForAuthorizationError(accessToken string, originalError error) e
291291
return errorWithHint{err: originalError, hint: strings.Join(mergeStringSlices(
292292
[]string{"This Sourcegraph instance has enforced auth for SCIP uploads."},
293293
actionableHints,
294-
[]string{"For more details, see https://docs.sourcegraph.com/cli/references/code-intel/upload."},
294+
[]string{"For more details, see https://sourcegraph.com/docs/cli/references/code-intel/upload."},
295295
), "\n")}
296296
}
297297

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

cmd/src/validate.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func init() {
1212
1313
EXPERIMENTAL: 'validate' is an experimental command in the 'src' tool.
1414
15-
Please visit https://docs.sourcegraph.com/admin/validation for documentation of the validate command.
15+
Please visit https://sourcegraph.com/docs/admin/validation for documentation of the validate command.
1616
1717
Usage:
1818

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
@@ -394,7 +394,7 @@ func printExecutionError(out *output.Output, err error) {
394394
out.Write("")
395395

396396
block := out.Block(output.Line(output.EmojiLightbulb, output.StyleSuggestion, "The troubleshooting documentation can help to narrow down the cause of the errors:"))
397-
block.WriteLine(output.Line("", output.StyleSuggestion, "https://docs.sourcegraph.com/batch_changes/references/troubleshooting"))
397+
block.WriteLine(output.Line("", output.StyleSuggestion, "https://sourcegraph.com/docs/batch_changes/references/troubleshooting"))
398398
block.Close()
399399
}
400400

0 commit comments

Comments
 (0)