Skip to content

Commit

Permalink
fix(cli): Remove v3 prefix from docs urls (#4596)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile committed May 20, 2021
1 parent 151e7a8 commit f99f11a
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cli/src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export async function checkWebDir(config: Config): Promise<string | null> {
)} option). You may need to compile the web assets for your app (typically ${c.input(
'npm run build',
)}). More info: ${c.strong(
'https://capacitorjs.com/docs/v3/basics/workflow#sync-your-project',
'https://capacitorjs.com/docs/basics/workflow#sync-your-project',
)}`
);
}
Expand Down Expand Up @@ -308,7 +308,7 @@ export async function selectPlatforms(
`See the docs for adding the ${c.strong(
platformName,
)} platform: ${c.strong(
`https://capacitorjs.com/docs/v3/${platformName}#adding-the-${platformName}-platform`,
`https://capacitorjs.com/docs/${platformName}#adding-the-${platformName}-platform`,
)}`,
);
}
Expand Down
4 changes: 2 additions & 2 deletions cli/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ async function determineXcodeWorkspaceDirAbs(
fatal(
'Xcode workspace does not exist.\n' +
`See the docs for adding the ${c.strong('ios')} platform: ${c.strong(
'https://capacitorjs.com/docs/v3/ios#adding-the-ios-platform',
'https://capacitorjs.com/docs/ios#adding-the-ios-platform',
)}`,
);
}
Expand All @@ -371,7 +371,7 @@ async function determineIOSWebDirAbs(
`Please follow the Upgrade Guide to move ${c.strong(
'public',
)} inside the iOS target directory: ${c.strong(
'https://capacitorjs.com/docs/v3/updating/3-0#move-public-into-the-ios-target-directory',
'https://capacitorjs.com/docs/updating/3-0#move-public-into-the-ios-target-directory',
)}`,
);

Expand Down
2 changes: 1 addition & 1 deletion cli/src/cordova.ts
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ export async function getCordovaPreferences(config: Config): Promise<any> {
'config.xml',
)}. There may be more work to do.\n` +
`More info: ${c.strong(
'https://capacitorjs.com/docs/v3/cordova/migrating-from-cordova-to-capacitor',
'https://capacitorjs.com/docs/cordova/migrating-from-cordova-to-capacitor',
)}`,
{
type: 'confirm',
Expand Down
4 changes: 2 additions & 2 deletions cli/src/tasks/add.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ function printNextSteps(platformName: string) {
logSuccess(`${c.strong(platformName)} platform added!`);
output.write(
`Follow the Developer Workflow guide to get building:\n${c.strong(
`https://capacitorjs.com/docs/v3/basics/workflow`,
`https://capacitorjs.com/docs/basics/workflow`,
)}\n`,
);
}
Expand Down Expand Up @@ -168,7 +168,7 @@ function webWarning() {
`Not adding platform ${c.strong('web')}.\n` +
`In Capacitor, the web platform is just your web app! For example, if you have a React or Angular project, the web platform is that project.\n` +
`To add Capacitor functionality to your web app, follow the Web Getting Started Guide: ${c.strong(
'https://capacitorjs.com/docs/v3/web',
'https://capacitorjs.com/docs/web',
)}`,
);
}
2 changes: 1 addition & 1 deletion cli/src/tasks/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ function printNextSteps(newConfigName: string) {
logSuccess(`${c.strong(newConfigName)} created!`);
output.write(
`\nNext steps: \n${c.strong(
`https://capacitorjs.com/docs/v3/getting-started#where-to-go-next`,
`https://capacitorjs.com/docs/getting-started#where-to-go-next`,
)}\n`,
);
}
Expand Down

0 comments on commit f99f11a

Please sign in to comment.