Skip to content

Commit d6572b7

Browse files
authored
fix gh pages (#1201)
* debug script Signed-off-by: Gregor Zeitlinger <[email protected]> * notes Signed-off-by: Gregor Zeitlinger <[email protected]> * fetch tags Signed-off-by: Gregor Zeitlinger <[email protected]> * fix tabs Signed-off-by: Gregor Zeitlinger <[email protected]> --------- Signed-off-by: Gregor Zeitlinger <[email protected]>
1 parent b0693fa commit d6572b7

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

.github/workflows/github-pages.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ jobs:
3636
- uses: actions/checkout@v4
3737
with:
3838
fetch-tags: 'true'
39+
fetch-depth: 0
3940
- name: Set up JDK
4041
uses: actions/setup-java@v4
4142
with:

docs/content/getting-started/quickstart.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@ weight: 0
55

66
This tutorial shows the quickest way to get started with the Prometheus Java metrics library.
77

8+
{{< toc >}}
9+
810
# Dependencies
911

1012
We use the following dependencies:
1113

1214
* `prometheus-metrics-core` is the actual metrics library.
1315
* `prometheus-metrics-instrumentation-jvm` provides out-of-the-box JVM metrics.
1416
* `prometheus-metrics-exporter-httpserver` is a standalone HTTP server for exposing Prometheus metrics.
15-
{{< tabs "uniqueid" >}}
17+
{{< tabs "deps" >}}
1618
{{< tab "Gradle" >}}
1719
```
1820
implementation 'io.prometheus:prometheus-metrics-core:$version'
@@ -52,7 +54,7 @@ This is especially important when using Spring Boot, which manages some of the d
5254

5355
You should omit the version number of the dependencies in your build file if you are using a BOM.
5456

55-
{{< tabs "uniqueid" >}}
57+
{{< tabs "bom" >}}
5658
{{< tab "Gradle" >}}
5759

5860
You have two ways to import a BOM.
@@ -89,25 +91,25 @@ dependencyManagement {
8991
}
9092
```
9193

92-
{{% alert title="Note" color="info" %}}
94+
{{< hint type=note >}}
9395

9496
Be careful not to mix up the different ways of configuring things with Gradle.
9597
For example, don't use
9698
`implementation(platform("io.prometheus:prometheus-metrics-bom:$version"))`
9799
with the `io.spring.dependency-management` plugin.
98100

99-
{{% /alert %}}
101+
{{< /hint >}}
100102

101103
{{< /tab >}}
102104
{{< tab "Maven" >}}
103105

104-
{{% alert title="Note" color="info" %}}
106+
{{< hint type=note >}}
105107

106108
Import the Prometheus Java metrics BOMs before any other BOMs in your
107109
project. For example, if you import the `spring-boot-dependencies` BOM, you have
108110
to declare it after the Prometheus Java metrics BOMs.
109111

110-
{{% /alert %}}
112+
{{< /hint >}}
111113

112114
The following example shows how to import the Prometheus Java metrics BOMs using Maven:
113115

0 commit comments

Comments
 (0)