Skip to content

Commit d784f63

Browse files
authored
docs: redirect /repo/docs to /docs (#10232)
### Description Replaces the `turbo.build/repo/docs` path to `turbo.build/docs` now that we have moved the documentation for Turbopack to a different place. ### Testing Instructions A bit tough to review, I apologize. I can break this up into smaller PRs if we wish (since redirects will be in place for the old path pattern).
1 parent f954482 commit d784f63

File tree

169 files changed

+947
-958
lines changed

Some content is hidden

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

169 files changed

+947
-958
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ Key characteristics of a great example include:
224224
- One technology added to the `basic` example
225225
- An updated README at the root of the example directory. Make sure to include any steps required to run the example
226226
- All tasks in `turbo.json` in the example run successfully without any code changes needed
227-
- Works with every package manager listed in our [Support Policy](https://turbo.build/repo/docs/getting-started/support-policy#package-managers)
227+
- Works with every package manager listed in our [Support Policy](https://turbo.build/docs/getting-started/support-policy#package-managers)
228228

229229
Once you've created your example (with prior approval, as discussed above), you can submit a pull request to the repository.
230230

crates/turborepo-env/src/platform.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl PlatformEnv {
6464
let docs_message = color!(
6565
color_config,
6666
UNDERLINE,
67-
"https://turbo.build/repo/docs/platform-environment-variables"
67+
"https://turbo.build/docs/platform-environment-variables"
6868
);
6969

7070
match ci {

crates/turborepo-lib/src/cli/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -653,7 +653,7 @@ pub enum Command {
653653
/// Use the given selector to specify package(s) to act as
654654
/// entry points. The syntax mirrors pnpm's syntax, and
655655
/// additional documentation and examples can be found in
656-
/// turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter
656+
/// turbo's documentation https://turbo.build/docs/reference/command-line-reference/run#--filter
657657
#[clap(short = 'F', long, group = "scope-filter-group")]
658658
filter: Vec<String>,
659659
/// Get insight into a specific package, such as
@@ -895,7 +895,7 @@ pub struct ExecutionArgs {
895895
/// Use the given selector to specify package(s) to act as
896896
/// entry points. The syntax mirrors pnpm's syntax, and
897897
/// additional documentation and examples can be found in
898-
/// turbo's documentation https://turbo.build/repo/docs/reference/command-line-reference/run#--filter
898+
/// turbo's documentation https://turbo.build/docs/reference/command-line-reference/run#--filter
899899
#[clap(short = 'F', long, group = "scope-filter-group")]
900900
pub filter: Vec<String>,
901901

crates/turborepo-lib/src/commands/link.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ pub(crate) enum SelectedTeam<'a> {
7575
pub(crate) const REMOTE_CACHING_INFO: &str =
7676
"Remote Caching makes your caching multiplayer,\nsharing build outputs and logs between \
7777
developers and CI/CD systems.\n\nBuild and deploy faster.";
78-
pub(crate) const REMOTE_CACHING_URL: &str =
79-
"https://turbo.build/repo/docs/core-concepts/remote-caching";
78+
pub(crate) const REMOTE_CACHING_URL: &str = "https://turbo.build/docs/core-concepts/remote-caching";
8079

8180
/// Verifies that caching status for a team is enabled, or prompts the user to
8281
/// enable it.

crates/turborepo-lib/src/commands/telemetry.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ fn log_status(config: TelemetryConfig, base: &CommandBase) {
2525
);
2626
}
2727
}
28-
println!("Learn more: https://turbo.build/repo/docs/telemetry");
28+
println!("Learn more: https://turbo.build/docs/telemetry");
2929
}
3030

3131
fn log_error(message: &str, error: &str, base: &CommandBase) {

crates/turborepo-lib/src/config/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ pub enum Error {
7474
#[error(transparent)]
7575
PackageJson(#[from] turborepo_repository::package_json::Error),
7676
#[error(
77-
"Could not find turbo.json or turbo.jsonc.\nFollow directions at https://turbo.build/repo/docs to create \
78-
one."
77+
"Could not find turbo.json or turbo.jsonc.\nFollow directions at https://turbo.build/docs \
78+
to create one."
7979
)]
8080
NoTurboJSON,
8181
#[error(

crates/turborepo-lib/src/diagnostics.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ impl Diagnostic for GitDaemonDiagnostic {
221221
if fsmonitor.trim() != "true" || untrackedcache.trim() != "true" {
222222
chan.log_line("Git FS Monitor not configured".to_string())
223223
.await;
224-
chan.log_line( "For more information, see https://turbo.build/repo/docs/reference/command-line-reference/scan#fs-monitor".to_string()).await;
224+
chan.log_line( "For more information, see https://turbo.build/docs/reference/command-line-reference/scan#fs-monitor".to_string()).await;
225225
let Some(resp) = chan
226226
.request(
227227
"Configure it for this repo now?".to_string(),
@@ -372,7 +372,7 @@ impl Diagnostic for LSPDiagnostic {
372372
Ok(None) => {
373373
chan.log_line("Unable to find LSP instance".to_string())
374374
.await;
375-
chan.log_line( "For more information, see https://turbo.build/repo/docs/reference/command-line-reference/scan#lsp".to_string()).await;
375+
chan.log_line( "For more information, see https://turbo.build/docs/reference/command-line-reference/scan#lsp".to_string()).await;
376376
chan.failed("Turborepo Extension is not running".to_string())
377377
.await;
378378
}

crates/turborepo-telemetry/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Any changes made here should also be made to that package as well.
77
## Overview
88

99
This crate provides a way to optionally record anonymous usage data.
10-
This information is used to shape the Turborepo roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the [documentation](https://turbo.build/repo/docs/telemetry):
10+
This information is used to shape the Turborepo roadmap and prioritize features. You can learn more, including how to opt-out if you'd not like to participate in this anonymous program, by visiting the [documentation](https://turbo.build/docs/telemetry):
1111

1212
## Events
1313

crates/turborepo-telemetry/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ impl TelemetryConfig {
167167
color_config,
168168
GREY,
169169
"{}",
170-
"https://turbo.build/repo/docs/telemetry"
170+
"https://turbo.build/docs/telemetry"
171171
)
172172
),
173173
);

crates/turborepo-telemetry/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//! Turborepo's telemetry library. Handles sending anonymous telemetry events to
22
//! the Vercel API in the background.
33
//!
4-
//! More detail is available at https://turbo.build/repo/docs/telemetry.
4+
//! More detail is available at https://turbo.build/docs/telemetry.
55
66
#![feature(error_generic_member_access)]
77

0 commit comments

Comments
 (0)