Skip to content

Commit 8881ba7

Browse files
update hyperlinks in docs to open in new tab (#382)
1 parent 4975bf1 commit 8881ba7

File tree

15 files changed

+46
-44
lines changed

15 files changed

+46
-44
lines changed

docs/advanced-guide/circuit-breaker/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ func main() {
4343
Circuit breaker state changes to open when number of consecutive failed requests increases the threshold.
4444
When it is in open state, GoFr makes request to the aliveness endpoint (default being - /.well-known/alive) at an equal interval of time provided in config.
4545

46-
To override the default aliveness endpoint [refer](/docs/advanced-guide/monitoring-service-health)
46+
To override the default aliveness endpoint {% new-tab-link title="refer" href="/docs/advanced-guide/monitoring-service-health" /%}.

docs/advanced-guide/grpc/page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
We have already seen how GoFr can help ease the development of HTTP servers, but there are
33
cases where performance is primiraliy required sacrificing flexibility. In these types of
44
scenarios gRPC protocol comes into picture. gRPC is an open-source RPC(Remote Procedure Call)
5-
framework initially developed by Google. [Learn more](https://grpc.io/docs/what-is-grpc/introduction/)
5+
framework initially developed by Google. {% new-tab-link title="Learn more" href="https://grpc.io/docs/what-is-grpc/introduction/" /%}
66

77
## Prerequisites
88
- Install the `protoc` protocol buffer compilation
@@ -28,7 +28,7 @@ framework initially developed by Google. [Learn more](https://grpc.io/docs/what-
2828
```
2929

3030
## Creating protocol buffers
31-
For a detailed guide, please take a look at the [Tutorial](https://grpc.io/docs/languages/go/basics/) at official gRPC docs.
31+
For a detailed guide, please take a look at the {% new-tab-link title="Tutorial" href="https://grpc.io/docs/languages/go/basics/" /%} at official gRPC docs.
3232

3333
Fistly, we need to create a `customer.proto` file to define our service and the rpc methods that the service provides.
3434
```protobuf

docs/advanced-guide/handling-data-migrations/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ INFO [16:55:46] Migration 20240226153000 ran successfully
9999

100100

101101
GoFr maintains the records in the database itself which helps in tracking which migrations have already been executed and ensures that only migrations that have never been run are executed.
102-
This way, you only need to ensure that your migrations are properly in place. ([Learn more](https://cloud.google.com/architecture/database-migration-concepts-principles-part-1))
102+
This way, you only need to ensure that your migrations are properly in place. {% new-tab-link title="Learn more" href="https://cloud.google.com/architecture/database-migration-concepts-principles-part-1" /%}
103103

104104
## Migration Records
105105

docs/advanced-guide/http-authentication/page.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@ GoFr offer various approaches to implement authorization.
1010
transmitted in the request header in a Base64-encoded format.
1111

1212
Basic auth is the simplest way to authenticate your APIs. It's built on
13-
[HTTP protocol authentication scheme](https://datatracker.ietf.org/doc/html/rfc7617). It involves sending the term
13+
{% new-tab-link title="HTTP protocol authentication scheme" href="https://datatracker.ietf.org/doc/html/rfc7617" /%}. It involves sending the term
14+
1415
`Basic` trailed by the Base64-encoded `<username>:<password>` within the standard `Authorization` header.
1516

1617
### Basic Authentication in GoFr
@@ -129,7 +130,7 @@ app.AddHTTPService("http-server-using-redis", "http://localhost:8000", &service.
129130
## 3. OAuth 2.0
130131
OAuth 2.0 is the industry-standard protocol for authorization.
131132
It focuses on client developer simplicity while providing specific authorization flows for web applications, desktop applications, mobile phones, and living room devices.
132-
To know more about it refer [here](https://www.rfc-editor.org/rfc/rfc6749)
133+
To know more about it refer {% new-tab-link title="here" href="https://www.rfc-editor.org/rfc/rfc6749" /%}
133134

134135
It involves sending the term `Bearer` trailed by the encoded token within the standard `Authorization` header.
135136

docs/advanced-guide/http-communication/page.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Support for inter-service http calls provide the following benefits:
55

66
1. Access to the method from container - GET, PUT, POST, PATCH, DELETE.
77
2. Logs and traces for the request.
8-
3. [Circuit breaking](/docs/advanced-guide/circuit-breaker) for enhanced resilience and fault tolerance.
9-
4. [Custom Health Check](/docs/advanced-guide/monitoring-service-health) Endpoints
8+
3. {% new-tab-link title="Circuit breaking" href="/docs/advanced-guide/circuit-breaker" /%} for enhanced resilience and fault tolerance.
9+
4. {% new-tab-link title="Custom Health Check" href="/docs/advanced-guide/monitoring-service-health" /%} Endpoints
1010

1111
## Usage
1212

docs/advanced-guide/monitoring-service-health/page.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ It is an endpoint which return the following response when the service is UP wit
1414
}
1515
```
1616

17-
It is also used when state of [circuit breaker](/docs/advanced-guide/circuit-breaker) is open.
17+
It is also used when state of {% new-tab-link title="circuit breaker" href="/docs/advanced-guide/circuit-breaker" /%} is open.
1818

1919
To override the endpoint when registering HTTP Service pass the following option.
2020

docs/advanced-guide/publishing-custom-metrics/page.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# Publishing Custom Metrics
22

3-
For GoFr default metrics refer: [observability](/docs/quick-start/observability).
3+
For GoFr default metrics refer: {% new-tab-link title="observability" href="/docs/quick-start/observability" /%}.
44

55
GoFr can handle multiple different metrics concurrently, each uniquely identified by its name during initialization.
6-
It supports the following [metrics](https://opentelemetry.io/docs/specs/otel/metrics/) types in prometheus format:
6+
It supports the following {% new-tab-link title="metrics" href="https://opentelemetry.io/docs/specs/otel/metrics/" /%} types in prometheus format:
77

88
1. Counter
99
2. UpDownCounter
@@ -17,7 +17,7 @@ If any metric other than defaults provided, you can create them using custom met
1717

1818
## 1. Counter Metrics
1919

20-
Counter is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which supports non-negative increments.
20+
Counter is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which supports non-negative increments.
2121

2222
### Usage
2323

@@ -46,7 +46,7 @@ func main() {
4646

4747
## 2. UpDown Counter Metrics
4848

49-
UpDownCounter is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which supports increments and decrements.
49+
UpDownCounter is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which supports increments and decrements.
5050
Note: if the value is monotonically increasing, use Counter instead.
5151

5252
### Usage
@@ -76,7 +76,7 @@ func main() {
7676

7777
## 3. Histogram Metrics
7878

79-
Histogram is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
79+
Histogram is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which can be used to report arbitrary values that are likely to be statistically meaningful. It is intended for statistics such as histograms, summaries, and percentile.
8080

8181
### Usage
8282

@@ -112,7 +112,7 @@ func main() {
112112

113113
## 4. Gauge Metrics
114114

115-
Gauge is a [synchronous Instrument](https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api) which can be used to record non-additive value(s) when changes occur.
115+
Gauge is a {% new-tab-link title="synchronous Instrument" href="https://opentelemetry.io/docs/specs/otel/metrics/api/#synchronous-instrument-api" /%} which can be used to record non-additive value(s) when changes occur.
116116
### Usage
117117

118118
```go

docs/advanced-guide/using-publisher-subscriber/page.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ docker run --name=gcloud-emulator -d -p 8086:8086 \
6868
gcr.io/google.com/cloudsdktool/google-cloud-cli:emulators gcloud beta emulators pubsub start --project=test123 \
6969
--host-port=0.0.0.0:8086
7070
```
71-
> **Note**: To set GOOGLE_APPLICATION_CREDENTIAL - refer [here](https://cloud.google.com/docs/authentication/application-default-credentials)
71+
> **Note**: To set GOOGLE_APPLICATION_CREDENTIAL - refer {% new-tab-link title="here" href="https://cloud.google.com/docs/authentication/application-default-credentials" /%}
7272
7373
> **Note**: In Google PubSub only one subscription name can access one topic, framework appends the topic name and subscription name to form the
7474
> unique subscription name on the Google client.
@@ -89,7 +89,7 @@ MQTT_USER=username // authentication username
8989
MQTT_PASSWORD=password // authentication password
9090
```
9191
> **Note** : If `MQTT_HOST` config is not provided, the application will connect to a public broker
92-
> [HiveMQ](https://www.hivemq.com/mqtt/public-mqtt-broker/)
92+
> {% new-tab-link title="HiveMQ" href="https://www.hivemq.com/mqtt/public-mqtt-broker/" /%}
9393
9494
#### Docker setup
9595
```shell
@@ -99,9 +99,7 @@ docker run -d \
9999
-v <path-to>/mosquitto.conf:/mosquitto/config/mosquitto.conf \
100100
eclipse-mosquitto:latest
101101
```
102-
> **Note**: find the default mosquitto config file [here](https://github.com/eclipse/mosquitto/blob/master/mosquitto.conf)
103-
104-
102+
> **Note**: find the default mosquitto config file {% new-tab-link title="here" href="https://github.com/eclipse/mosquitto/blob/master/mosquitto.conf" /%}
105103
106104
## Subscribing to Pub/Sub
107105
Adding a subscriber is similar to adding an HTTP handler, which makes it easier to develop scalable applications,

docs/quick-start/configuration/page.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# Configurations
22

3-
GoFr reads configuration via environment variables. It provides an easy way to manage this. Application code is decoupled from how configuration is managed as per the [12-factor](https://12factor.net/config).
4-
3+
GoFr reads configuration via environment variables. It provides an easy way to manage this. Application code is decoupled from how configuration is managed as per the {% new-tab-link title="12-factor" href="https://12factor.net/config" /%}.
54
Configs in GoFr can be used to initialise datasources, tracing. In doing so it abstract the logic and gives an easy interface to setup different things.
65

76
To set configs create a `configs` directory in the project's root and add `.env` file.

docs/quick-start/connecting-mysql/page.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ DB_USER=root
3535
DB_PASSWORD=root123
3636
DB_NAME=test_db
3737
DB_PORT=3306
38+
DB_DIALECT=mysql
3839
```
3940

4041
Now in the following example let's store customer data using **POST** `/customer` and then use **GET** `/customer` to retrieve the same.
@@ -104,9 +105,7 @@ func main() {
104105
// return the customer
105106
return customers, nil
106107
})
107-
108-
// Starts the server, it will listen on the default port 8000.
109-
// it can be over-ridden through configs
108+
110109
app.Run()
111110
}
112111
```
@@ -126,7 +125,7 @@ You will see the following output if database is successfully updated
126125
{}
127126
```
128127

129-
Now when we access the [http://localhost:9000/customer](http://localhost:9000/customer) we should see the following output
128+
Now when we access {% new-tab-link title="http://localhost:9000/customer" href="http://localhost:9000/customer" /%} we should see the following output
130129

131130
```json
132131
{

0 commit comments

Comments
 (0)