Skip to content

Commit

Permalink
Merge pull request ballerina-platform#4824 from praneesha/fix-links-p…
Browse files Browse the repository at this point in the history
…ost-learn-revamp

[Master] - Fix links post learn page revamp
  • Loading branch information
praneesha committed Aug 24, 2023
2 parents 45806fa + c65626a commit a9ab2ef
Show file tree
Hide file tree
Showing 23 changed files with 31 additions and 31 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This example creates a function, which will be executed for each entry added to a database in the [DynamoDB](https://aws.amazon.com/dynamodb/).

For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/).
For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/aws-lambda/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/aws-lambda/#set-up-the-prerequisites).

## Write the function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

The example below demonstrates how the execution context information of an AWS function can be retrieved.

For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/).
For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/aws-lambda/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/aws-lambda/#set-up-the-prerequisites).

## Write the function

Expand Down
4 changes: 2 additions & 2 deletions examples/aws-lambda-hello-world/aws-lambda-hello-world.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This example demonstrates how to write a simple echo function in AWS Lambda.

For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/).
For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/aws-lambda/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/aws-lambda/#set-up-the-prerequisites).

## Write the function

Expand Down
4 changes: 2 additions & 2 deletions examples/aws-lambda-s3-trigger/aws-lambda-s3-trigger.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This example creates a function, which will be executed for each object creation in AWS S3.

For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/).
For more information, see the [AWS Lambda learn guide](https://ballerina.io/learn/aws-lambda/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/aws-lambda/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/aws-lambda/#set-up-the-prerequisites).

## Write the function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

This example demonstrates using a Cosmos DB trigger to invoke an Azure function and a queue output binding to write an entry to a queue.

For more information, see the [Azure Functions deployment guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/).
For more information, see the [Azure Functions deployment guide](https://ballerina.io/learn/azure-functions/).

## Set up the prerequisites

Follow the steps below to create a Cosmos DB and a queue to make use of those services later in this example.

1. Set up the [general prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/#set-up-the-prerequisites).
1. Set up the [general prerequisites](https://ballerina.io/learn/azure-functions/#set-up-the-prerequisites).
2. Create the queue in the [HTTP trigger](/learn/by-example/azure-functions/http-trigger/) example to resue it in this one.
3. In the [**Azure Cosmos DB** service of the Azure Portal](https://portal.azure.com/#create/Microsoft.DocumentDB), click **Create**, and select **Azure Cosmos DB for NoSQL**.
4. Enter an account name and a resource group name, and click **Review + Create**, and then, click **Create**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ Output bindings are defined in the return type definition. For services with the

In the code sample shown above, it has an empty service path and resource path named `hello`. The accessor is `get`. It expects a request with a query parameter for the field name. The required artifact generation and data binding will be handled by the `ballerinax/azure_functions` package automatically.

For more information, see the [Azure deployment guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/).
For more information, see the [Azure deployment guide](https://ballerina.io/learn/azure-functions/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/azure-functions/#set-up-the-prerequisites).

## Write the function

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This example demonstrates using an HTTP trigger to invoke an Azure function with multiple output bindings to return the HTTP response and queue output binding to write an entry to a queue.

For more information, see the [Azure Functions deployment guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/).
For more information, see the [Azure Functions deployment guide](https://ballerina.io/learn/azure-functions/).

## Set up the prerequisites

1. Set up the [general prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/#set-up-the-prerequisites).
1. Set up the [general prerequisites](https://ballerina.io/learn/azure-functions/#set-up-the-prerequisites).
2. In the AWS Portal, click **Storage accounts** to create a queue to hold the outputs of the function.
2. From the list, click on the storage account entry that corresponds with your function app.
3. Click **Queues** in the sidebar, and click **+ Queue**.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

This example demonstrates how a function can be scheduled to execute periodically by the Azure Functions app. Once the function is executed, the timer details will be stored in the selected queue storage for every invocation.

For more information, see the [Azure deployment guide](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/).
For more information, see the [Azure deployment guide](https://ballerina.io/learn/azure-functions/).

## Set up the prerequisites

For instructions, see [Set up the prerequisites](https://ballerina.io/learn/run-in-the-cloud/function-as-a-service/azure-functions/#set-up-the-prerequisites).
For instructions, see [Set up the prerequisites](https://ballerina.io/learn/azure-functions/#set-up-the-prerequisites).

## Write the function

Expand Down
2 changes: 1 addition & 1 deletion examples/c2c-docker-deployment/c2c_docker_deployment.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker

Ballerina supports generating Docker artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud Deployment](/learn/code-to-cloud-deployment/).

::: code c2c_docker_deployment.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/c2c-k8s-deployment/c2c_k8s_deployment.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Kubernetes

Ballerina supports generating Kubernetes artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud Deployment](/learn/code-to-cloud-deployment/).

::: code c2c_k8s_deployment.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/configurable-variables/configurable_variables.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

A module-level variable can be declared as configurable. The initializer of a configurable variable can be overridden at runtime (e.g., by a TOML file). A variable for which a configuration is required can use an initializer of `?`. The type of a configurable variable must be a subtype of `anydata`.

For more information, see [Configure a sample Ballerina service](/learn/configure-ballerina-programs/configure-a-sample-ballerina-service/).
For more information, see [Configure a sample Ballerina service](/learn/configure-a-sample-ballerina-service/).

::: code configurable_variables.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/configuring-via-cli/configuring_via_cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ The values of the configurable variables can be configured through the command-l
The command-line-based configuration is only supported for configurable variables of types `int`, `byte`, `float`, `boolean`, `string`, `decimal`, `enum`, and `xml`.
The `-Ckey=value` syntax can be used to provide values through the command-line parameters.

For more information, see [Configure via command-line arguments](/learn/configure-ballerina-programs/provide-values-to-configurable-variables/#provide-via-command-line-arguments/).
For more information, see [Configure via command-line arguments](/learn/provide-values-to-configurable-variables/#provide-via-command-line-arguments/).

::: code configuring_via_cli.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/configuring-via-toml/configuring-via-toml.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The file location can be specified through an environment variable with the name

An environment variable with the name `BAL_CONFIG_DATA` can be used to provide the configuration file content instead of a separate file.

For more information, see [Configure via TOML syntax](/learn/configure-ballerina-programs/provide-values-to-configurable-variables/#provide-via-toml-syntax/).
For more information, see [Configure via TOML syntax](/learn/provide-values-to-configurable-variables/#provide-via-toml-syntax/).

::: code configuring_via_toml.bal :::

Expand Down
2 changes: 1 addition & 1 deletion examples/docker-hello-world/docker-hello-world.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Docker - Hello world

Ballerina supports generating Docker artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud Deployment](/learn/run-in-the-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud Deployment](/learn/code-to-cloud-deployment/).

::: code docker-hello-world.bal :::

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Once you run the command, the `grpc_bidirectional_streaming_pb.bal` file gets ge
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC client bidirectional streaming - Specification](/spec/grpc/#44-bidirectional-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Once you run the command, the `grpc_client_streaming_pb.bal` file gets generated
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC client client-side streaming - Specification](/spec/grpc/#43-client-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Once you run the command, the `grpc_server_streaming_pb.bal` file gets generated
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC client server-side streaming - Specification](/spec/grpc/#42-server-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
2 changes: 1 addition & 1 deletion examples/grpc-client-simple/grpc_client_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ Once you run the command, the `grpc_simple_pb.bal` file gets generated inside th
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC client simple RPC - Specification](/spec/grpc/#41-simple-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Once you run the command, the `grpc_bidirectional_streaming_pb.bal` file gets ge
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC service bidirectional streaming - Specification](/spec/grpc/#44-bidirectional-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Once you run the command, the `grpc_client_streaming_pb.bal` file gets generated
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC service client-side streaming - Specification](/spec/grpc/#43-client-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Once you run the command, the `grpc_server_streaming_pb.bal` file gets generated
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC service server-side streaming - Specification](/spec/grpc/#42-server-streaming-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
2 changes: 1 addition & 1 deletion examples/grpc-service-simple/grpc_service_simple.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ Once you run the command, the `grpc_simple_pb.bal` file gets generated inside th
## Related links
- [`grpc` module - API documentation](https://lib.ballerina.io/ballerina/grpc/latest)
- [gRPC service simple RPC - Specification](/spec/grpc/#41-simple-rpc)
- [Ballerina protocol buffers guide](/learn/cli-documentation/grpc/)
- [gRPC tool](/learn/grpc-tool/)
2 changes: 1 addition & 1 deletion examples/kubernetes-hello-world/kubernetes-hello-world.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Kubernetes - Hello world

Ballerina supports generating Kubernetes artifacts from code without any additional configuration. This simplifies the experience of developing and deploying Ballerina code in the cloud. Code to Cloud builds the containers and required artifacts by deriving the required values from the code. If you want to override the default values taken by the compiler, you can use a `Cloud.toml` file.
For more information, see [Code to Cloud deployment](/learn/run-in-the-cloud/code-to-cloud-deployment/).
For more information, see [Code to Cloud deployment](/learn/code-to-cloud-deployment/).

::: code kubernetes-hello-world.bal :::

Expand Down

0 comments on commit a9ab2ef

Please sign in to comment.