Skip to content

Commit

Permalink
fix: Automatically detect broken links (#25
Browse files Browse the repository at this point in the history
* ci: Automatically detect broken links

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update ci.yml

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update ci.yml

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update ci.yml

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update ci.yml

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Update ci.yml

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>

* Fix dead links

* Move exclude

* Fix last link

* Remove example site

* Remove dead links

---------

Signed-off-by: Tom Kerkhove <kerkhove.tom@gmail.com>
  • Loading branch information
tomkerkhove authored Mar 13, 2023
1 parent a61e59f commit f3d2c5c
Show file tree
Hide file tree
Showing 48 changed files with 37 additions and 2,587 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
broken_links:
name: Detect Broken Links
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Link Checker
uses: lycheeverse/lychee-action@v1.6.1
with:
args: --verbose --no-progress 'docs/**/*.md' --exclude-loopback --exclude 'docs/themes/**/*.md'
format: markdown
jobSummary: true
fail: true
10 changes: 5 additions & 5 deletions docs/config/_default/menus.en.toml
Original file line number Diff line number Diff line change
Expand Up @@ -55,27 +55,27 @@ url = "legal"
# footer menu middle
[[footer_middle]]
name = "Supported Azure Services"
url = "https://docs.promitor.io/configuration/v2.x/metrics/"
url = "https://docs.promitor.io/latest/scraping/overview/"
weight = 1

[[footer_middle]]
name = "Metric Sinks"
url = "https://docs.promitor.io/configuration/v2.x/runtime/scraper#metric-sinks"
url = "https://docs.promitor.io/latest/scraping/runtime-configuration/#metric-sinks"
weight = 2

[[footer_middle]]
name = "Deployment"
url = "https://docs.promitor.io/deployment"
url = "https://docs.promitor.io/latest/deployment/"
weight = 3

[[footer_middle]]
name = "Operations"
url = "https://docs.promitor.io/operations"
url = "https://docs.promitor.io/latest/operations/"
weight = 4

[[footer_middle]]
name = "Security"
url = "https://docs.promitor.io/configuration/v2.x/azure-authentication"
url = "https://docs.promitor.io/latest/security/azure-authentication/"
weight = 5

# footer menu right
Expand Down
2 changes: 1 addition & 1 deletion docs/content/english/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ service:
button:
enable : true
label : "Check it out"
link : "https://docs.promitor.io/configuration/v2.x/runtime/scraper#metric-sinks"
link : "https://docs.promitor.io/latest/scraping/runtime-configuration/#metric-sinks"

# service item loop
- title : "Trusted By Others"
Expand Down
8 changes: 4 additions & 4 deletions docs/content/english/concepts/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ Here's an overview of how they work together:

You can easily start discovering resources automatically:

1. Declare resource discovery groups ([link](https://docs.promitor.io/configuration/v2.x/resource-discovery))
2. Deploy Promitor Resource Discovery ([link](https://docs.promitor.io/deployment/resource-discovery))
3. Configure Promitor Scraper to use resource discovery ([link](https://docs.promitor.io/configuration/v2.x/runtime/scraper#using-resource-discovery))
4. Deploy Promitor Scraper ([link](https://docs.promitor.io/deployment/scraper))
1. Declare resource discovery groups ([link](https://docs.promitor.io/latest/resource-discovery/declaring-resource-discovery-groups/))
2. Deploy Promitor Resource Discovery ([link](https://docs.promitor.io/latest/deployment/resource-discovery/kubernetes/))
3. Configure Promitor Scraper to use resource discovery ([link](https://docs.promitor.io/latest/scraping/runtime-configuration/#using-resource-discovery))
4. Deploy Promitor Scraper ([link](https://docs.promitor.io/latest/deployment/scraper/kubernetes/))

## What components do agents provide?

Expand Down
2 changes: 1 addition & 1 deletion docs/content/english/faq/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ We support `Global` (default), `China`, `UsGov` & `Germany` Azure clouds.

This can be configured in the metric configuration under `azureMetadata`.

For more information see our ['Metric Configuration' page](https://docs.promitor.io/configuration/v2.x/metrics/#metrics).
For more information see our ['Metric Configuration' page](https://docs.promitor.io/latest/scraping/overview/#metrics).
{{</ faq >}}

{{< faq "Why do Azure Blob & File Storage only report account-level information?" >}}
Expand Down
4 changes: 2 additions & 2 deletions docs/content/english/get-started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ draft: false

We provide a variety of walkthroughs to get you up and running with Promitor:

- Deploying Promitor, Prometheus, and Grafana on an Azure Kubernetes Service Cluster ([link](https://docs.promitor.io/walkthrough/scrape-promitor-with-prometheus-on-azure-kubernetes-service))
- Using Managed Identity with Promitor on an Azure Kubernetes Service Cluster ([link](https://docs.promitor.io/walkthrough/use-promitor-with-managed-identity))
- Deploying Promitor, Prometheus, and Grafana on an Azure Kubernetes Service Cluster ([link](https://docs.promitor.io/latest/walkthroughs/scrape-promitor-with-prometheus-on-azure-kubernetes-service/))
- Using Managed Identity with Promitor on an Azure Kubernetes Service Cluster ([link](https://docs.promitor.io/latest/walkthroughs/use-promitor-with-managed-identity/))

Learn more about Promitor in our [documentation](https://docs.promitor.io/).
5 changes: 0 additions & 5 deletions docs/themes/bigspring/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,3 @@ Copyright &copy; 2020 Designed by [Themefisher](https://themefisher.com) & Devel
**Code License:** Released under the [MIT](https://github.com/themefisher/bigspring-hugo-startup-theme/blob/master/LICENSE) license.

**Image license:** The images are only for demonstration purposes. They have their own licence, we don't have permission to share those image.
## Premium Themes

| [![Mega-Bundle-HUGO](https://gethugothemes.com/wp-content/uploads/edd/2019/09/Mega-Bundle-HUGO.png)](https://themefisher.com/products/hugo-mega-bundle/) | [![](https://gethugothemes.com/wp-content/uploads/edd/2020/09/Copper-hugo-sass-landingpage.jpg)](https://gethugothemes.com/products/copper/) | [![redlab](https://gethugothemes.com/wp-content/uploads/edd/2019/09/redlab-hugo-thumbnail.jpg)](https://gethugothemes.com/products/redlab-hugo/) |
|:---:|:---:|:---:|
| **Hugo Mega Bundle** | **Copper** | **Red Lab** |
15 changes: 0 additions & 15 deletions docs/themes/bigspring/exampleSite/config/_default/config.toml

This file was deleted.

29 changes: 0 additions & 29 deletions docs/themes/bigspring/exampleSite/config/_default/languages.toml

This file was deleted.

65 changes: 0 additions & 65 deletions docs/themes/bigspring/exampleSite/config/_default/menus.de.toml

This file was deleted.

65 changes: 0 additions & 65 deletions docs/themes/bigspring/exampleSite/config/_default/menus.en.toml

This file was deleted.

48 changes: 0 additions & 48 deletions docs/themes/bigspring/exampleSite/config/_default/params.toml

This file was deleted.

Loading

0 comments on commit f3d2c5c

Please sign in to comment.