Skip to content

Commit

Permalink
fix: replaced v1 docs references with v2 docs references (aws-amplify…
Browse files Browse the repository at this point in the history
  • Loading branch information
Brene authored May 6, 2020
1 parent 9e8606c commit b578c2d
Show file tree
Hide file tree
Showing 13 changed files with 30 additions and 28 deletions.
8 changes: 4 additions & 4 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ The Amplify CLI supports the commands shown in the following table.
| amplify delete | Deletes resources tied to the project. |
| amplify help \| amplify `<category>` help | Displays help for the core CLI. |
| amplify codegen add \| generate | Performs generation of strongly typed objects using a GraphQL schema. |
| amplify env add \| list \| remove \| get \| pull \| import \| checkout | See the [multienv docs](https://aws-amplify.github.io/docs/cli/multienv). |
| amplify env add \| list \| remove \| get \| pull \| import \| checkout | See the [multienv docs](https://docs.amplify.aws/cli/teams/overview). |

### Category specific commands:

Expand All @@ -78,9 +78,9 @@ The Amplify CLI supports the commands shown in the following table.

## Tutorials

- [React & React Native tutorial](https://aws-amplify.github.io/docs/js/react)
- [GraphQL transform tutorial](https://aws-amplify.github.io/docs/js/graphql)
- [Native development with Amplify CLI and AWS AppSync](https://aws-amplify.github.io/docs/cli/codegen)
- [Getting Started guide](https://docs.amplify.aws/start)
- [GraphQL transform tutorial](https://docs.amplify.aws/cli/graphql-transformer/overview)
- [Native development with Amplify CLI and AWS AppSync](https://docs.amplify.aws/cli/graphql-transformer/codegen)

## Developing

Expand Down
4 changes: 2 additions & 2 deletions amplifycli_react_tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<meta http-equiv="refresh" content="0; URL='https://aws-amplify.github.io/docs/js/react'" />
<meta http-equiv="refresh" content="0; URL='https://docs.amplify.aws/start/q/integration/react'" />

This doc has moved:
https://aws-amplify.github.io/docs/js/react
https://docs.amplify.aws/start/q/integration/react
4 changes: 2 additions & 2 deletions graphql-transform-tutorial.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<meta http-equiv="refresh" content="0; URL='https://aws-amplify.github.io/aws-amplify/docs/js/graphql'" />
<meta http-equiv="refresh" content="0; URL='https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js'" />

This doc has moved:
https://aws-amplify.github.io/docs/js/graphql
https://docs.amplify.aws/lib/graphqlapi/getting-started/q/platform/js
4 changes: 2 additions & 2 deletions how-to-write-a-transformer.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<meta http-equiv="refresh" content="0; URL='https://aws-amplify.github.io/docs/js/graphql'" />
<meta http-equiv="refresh" content="0; URL='https://docs.amplify.aws/cli/usage/plugin#custom-graphql-transformers'" />

This doc has moved:
https://aws-amplify.github.io/docs/cli-toolchain/plugins#custom-graphql-transformers
https://docs.amplify.aws/cli/usage/plugin#custom-graphql-transformers
4 changes: 2 additions & 2 deletions native_guide.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<meta http-equiv="refresh" content="0; URL='https://aws-amplify.github.io/docs/cli/codegen'" />
<meta http-equiv="refresh" content="0; URL='https://docs.amplify.aws/cli/graphql-transformer/codegen'" />

This doc has moved:
https://aws-amplify.github.io/docs/cli/codegen
https://docs.amplify.aws/cli/graphql-transformer/codegen
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function categories(info) {
Convert allows you to translate text from one source language to a target language, using Amazon Translate. You can also generate speech audio from text input, using Amazon Polly. Lastly, you can take an audio input and transcribe it, using Amazon Transcribe.\n\
Interpret allows you to analyze text for language, entities (places, people), key phrases, sentiment (postive, neutral, negative), and syntax (pronouns, verbs, adjectives).\n\
Infer allows you to perform inference against a cloud endpoint. It’s an advanced feature using Amazon SageMaker, where you have more control over your models.\n\
Learn More: https://aws-amplify.github.io/docs/js/predictions';
Learn More: https://docs.amplify.aws/lib/predictions/intro/q/platform/js';
helpText = `\n${helpText.replace(new RegExp('[\\n]', 'g'), '\n\n')}\n\n`;
questions[0].prefix = chalkpipe(null, chalk.green)(helpText);
}
Expand Down
8 changes: 5 additions & 3 deletions packages/amplify-category-xr/lib/xr-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ function getExistingScenes(context) {

async function addScene(context) {
context.print.info(`Open the Amazon Sumerian console: ${chalk.green(SUMERIAN_CONSOLE_URL)}`);
context.print.info(`Publish the scene you want to add. See ${chalk.green('https://aws-amplify.github.io/docs/js/xr#configuration')}`);
context.print.info(
`Publish the scene you want to add. See ${chalk.green('https://docs.amplify.aws/lib/xr/getting-started/q/platform/js')}`,
);
context.print.info('Then download the JSON configuration to your local computer.');
await inquirer.prompt({
name: 'pressEnter',
Expand Down Expand Up @@ -128,11 +130,11 @@ async function addScene(context) {
context.print.success('Some next steps:');
context.print.info('"amplify push" builds all of your local backend resources and provisions them in the cloud');
context.print.info(
'"amplify publish" builds all of your local backend and front-end resources (if you added hosting category) and provisions them in the cloud'
'"amplify publish" builds all of your local backend and front-end resources (if you added hosting category) and provisions them in the cloud',
);
context.print.info('');
context.print.warning(
'Only the IAM policy for this scene resource will be provisioned in the cloud. This will not change the scene in the Sumerian console.'
'Only the IAM policy for this scene resource will be provisioned in the cloud. This will not change the scene in the Sumerian console.',
);
}

Expand Down
6 changes: 3 additions & 3 deletions packages/amplify-cli/scripts/post-install.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ console.log(chalk.green('Successfully installed the Amplify CLI'));
console.log(chalk.green('----------------------------------------'));
console.log('\n');

console.log(chalk.green('JavaScript Getting Started - https://aws-amplify.github.io/docs/js/start'));
console.log(chalk.green('JavaScript Getting Started - https://docs.amplify.aws/start'));
console.log('\n');
console.log(chalk.green('Android Getting Started - https://aws-amplify.github.io/docs/android/start'));
console.log(chalk.green('Android Getting Started - https://docs.amplify.aws/start/q/integration/android'));
console.log('\n');
console.log(chalk.green('iOS Getting Started - https://aws-amplify.github.io/docs/ios/start'));
console.log(chalk.green('iOS Getting Started - https://docs.amplify.aws/start/q/integration/ios'));
console.log('\n');

if (fs.existsSync('../lib/plugin-manager.js')) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ generation of all the configuration files required by the frontend framework.`);
context.print.green(`${AmplifyPluginType.util} plugins are general purpose utility plugins, \
they provide utility functions for other plugins.`);
context.print.green('For more information please read - \
https://aws-amplify.github.io/docs/cli-toolchain/plugins');
https://docs.amplify.aws/cli/usage/plugin');
}

async function promptForEventSubscription(context: Context): Promise<string[]> {
Expand Down
4 changes: 2 additions & 2 deletions packages/amplify-cli/src/project-config-version-check.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ async function promptForConfirmation(context: Context, filesToUpdate: string[]):
context.print.info('In response to the Lambda Runtime support deprecation schedule');
context.print.green('https://docs.aws.amazon.com/lambda/latest/dg/runtime-support-policy.html');
context.print.warning(
`Nodejs runtime need to be updated from ${prevLambdaRuntimeVersions} to ${lambdaRuntimeVersion} in the following template files:`
`Nodejs runtime need to be updated from ${prevLambdaRuntimeVersions} to ${lambdaRuntimeVersion} in the following template files:`,
);
filesToUpdate.forEach(filePath => {
context.print.info(filePath);
});
context.print.info('');

context.print.warning(
`Please test the changes in a test environment before pushing these changes to production. There might be a need to update your Lambda function source code due to the NodeJS runtime update. Please take a look at https://aws-amplify.github.io/docs/cli/lambda-node-version-update for more information`
`Please test the changes in a test environment before pushing these changes to production. There might be a need to update your Lambda function source code due to the NodeJS runtime update. Please take a look at https://docs.amplify.aws/cli/migration/lambda-node-version-update for more information`,
);

context.print.info('');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function warnOnAuth(context, map) {
if (unAuthModelTypes.length) {
context.print.warning("\nThe following types do not have '@auth' enabled. Consider using @auth with @model");
context.print.warning(unAuthModelTypes.map(type => `\t - ${type}`).join('\n'));
context.print.info('Learn more about @auth here: https://aws-amplify.github.io/docs/cli-toolchain/graphql#auth \n');
context.print.info('Learn more about @auth here: https://docs.amplify.aws/cli/graphql-transformer/directives#auth\n');
}
}

Expand Down Expand Up @@ -146,9 +146,9 @@ function getTransformerFactory(context, resourceDir, authConfig) {
*/
async function transformerVersionCheck(context, resourceDir, cloudBackendDirectory, updatedResources, usedDirectives) {
const versionChangeMessage =
'The default behavior for @auth has changed in the latest version of Amplify\nRead here for details: https://aws-amplify.github.io/docs/cli-toolchain/graphql#authorizing-subscriptions';
'The default behavior for @auth has changed in the latest version of Amplify\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/directives#authorizing-subscriptions';
const warningESMessage =
'The behavior for @searchable has changed after version 4.14.1.\nRead here for details: https://aws-amplify.github.io/docs/cli-toolchain/graphql#migration-warning';
'The behavior for @searchable has changed after version 4.14.1.\nRead here for details: https://docs.amplify.aws/cli/graphql-transformer/directives#searchable';
const checkVersionExist = config => config && config.Version;
const checkESWarningExists = config => config && config.ElasticsearchWarning;
let writeToConfig = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ async function getConfiguredAmplifyClient(context, options = {}) {
function printAuthErrorMessage(context) {
context.print.warning('As of Amplify CLI version 4.0');
context.print.warning('A cloud project in the Amplify Console will be created to view your resources.');
context.print.warning('Please update your IAM policy accordingly based on the following doc.');
context.print.green('https://aws-amplify.github.io/docs/cli-toolchain/usage#iam-policy-for-the-cli');
context.print.warning('Please update your IAM policy accordingly based on the following documentation:');
context.print.green('https://docs.amplify.aws/cli/usage/iam');
context.print.warning('These permissions will be required in a future CLI release.');
}

Expand Down
2 changes: 1 addition & 1 deletion packages/amplify-util-mock/src/api/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ export class APITest {
};
} else {
throw new Error(
'Local mocking does not support AWS_LAMBDA data source that is not provisioned in the project.\nEnsure that the environment is specified as described in https://aws-amplify.github.io/docs/cli-toolchain/graphql#function',
'Local mocking does not support AWS_LAMBDA data source that is not provisioned in the project.\nEnsure that the environment is specified as described in https://docs.amplify.aws/cli/graphql-transformer/directives#function',
);
}
}),
Expand Down

0 comments on commit b578c2d

Please sign in to comment.