Skip to content

Commit 35bfff1

Browse files
committed
CI: check external links (excluding GH)
1 parent 8207b63 commit 35bfff1

File tree

8 files changed

+2883
-72
lines changed

8 files changed

+2883
-72
lines changed

.htmltest.yml

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,32 @@
11
DirectoryPath: public
22
IgnoreDirectoryMissingTrailingSlash: true
33
IgnoreAltMissing: true
4+
IgnoreCanonicalBrokenLinks: false
45
IgnoreInternalURLs: # list of paths
5-
IgnoreURLs: # list of regexs to paths or URLs
6+
IgnoreURLs: # list of regexs of paths or URLs to be ignored
67
- ^/docs/instrumentation/\w+/(api|examples)/$
78
- ^/docs/instrumentation/net/(metrics-api|traces-api)/
89

910
- ^https?://localhost\b
10-
- ^https?://(otel-demo|traefik).localhost
11-
- ^https?://(www\.)?github\b
12-
- ^https://mvnrepository.com # Always yields 403 Forbidden
13-
14-
# Temporary as we process external links incrementally:
15-
- ^https?://[^a-o]
11+
- ^https?://127\.0\.0\.1\b
12+
- ^https?://(otel-demo|traefik)\.localhost
13+
- ^https?://(www\.)?github\b # TODO: process GitHub links too
14+
- ^https?://(www\.)?linkedin\.com\b # Always yields 999 Request Denied
15+
- ^https://mvnrepository\.com # Always yields 403 Forbidden
1616

1717
# TODO: drop after fix to https://github.com/rust-lang/crates.io/issues/788
18-
- ^https://crates.io/crates
19-
# Invalid certificate (x509) for daocloud.io:
20-
- ^https://docs.daocloud.io
18+
- ^https://crates\.io/crates
2119
# TODO: drop after fix to https://github.com/open-telemetry/opentelemetry-specification/pull/3217
22-
- ^https://golang.org/pkg/runtime/debug/#Stack
20+
- ^https://golang\.org/pkg/runtime/debug/#Stack
2321
# TODO: drop after fix to https://github.com/micrometer-metrics/micrometer-docs/issues/239
24-
- ^https://micrometer.io/docs
22+
- ^https://micrometer\.io/docs
2523
# TODO: drop after fix to https://github.com/google/docsy/issues/1337
26-
- ^https://opentelemetry.io/
24+
- ^https://opentelemetry\.io/
2725
# TODO: drop after fix to https://github.com/open-telemetry/opentelemetry.io/issues/2354
28-
- ^https://open-telemetry.github.io/opentelemetry-python/benchmarks/
26+
- ^https://open-telemetry\.github\.io/opentelemetry-python/benchmarks/
27+
# TODO: drop after fix to https://github.com/open-telemetry/opentelemetry.io/issues/2361
28+
- ^https://www\.jaegertracing\.io/docs/latest/opentelemetry
29+
# TODO: drop after fix to https://github.com/open-telemetry/opentelemetry-specification/pull/3230
30+
- ^https://wikipedia\.org/wiki/Double-precision_floating-point_format
31+
# Ignore links into Netlify deploy-preview servers (because the preview might not be deployed when we check)
32+
- ^https://deploy-preview-\d+--opentelemetry.netlify.app/

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ content/en/docs/instrumentation/swift
3434
/data
3535
/resources
3636
/scripts
37-
/static
3837
/templates

Makefile

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
# Set REFCACHE to another value to disable htmltest refcache-file manipulation
2+
REFCACHE?=refcache
13
HTMLTEST_DIR=tmp
24
HTMLTEST?=htmltest # Specify as make arg if different
35
HTMLTEST_ARGS?=--skip-external
6+
LINK_CACHE_FILE?=refcache.json
7+
LINK_CACHE_FILE_DEST_DIR?=static
8+
LINK_CACHE_FILE_SRC_DIR?=$(HTMLTEST_DIR)/.htmltest
49
OTEL_GEN_REPO?=../$(shell basename $(shell pwd)).g
510

611
# Use $(HTMLTEST) in PATH, if available; otherwise, we'll get a copy
@@ -15,7 +20,29 @@ default:
1520
@echo "Make what? Target list:\n"
1621
@make -rpn | grep '^[a-z]\S*:' | sed 's/://' | sort
1722

18-
check-links: $(GET_LINK_CHECKER_IF_NEEDED)
23+
$(LINK_CACHE_FILE_SRC_DIR):
24+
mkdir -p $(LINK_CACHE_FILE_SRC_DIR)
25+
26+
refcache-restore: $(LINK_CACHE_FILE_SRC_DIR)
27+
ifeq (refcache, $(REFCACHE))
28+
cp $(LINK_CACHE_FILE_DEST_DIR)/$(LINK_CACHE_FILE) $(LINK_CACHE_FILE_SRC_DIR)/
29+
else
30+
@echo "SKIPPING refcache-restore"
31+
endif
32+
33+
refcache-save: $(LINK_CACHE_FILE_SRC_DIR)/$(LINK_CACHE_FILE)
34+
ifeq (refcache, $(REFCACHE))
35+
cp $(LINK_CACHE_FILE_SRC_DIR)/$(LINK_CACHE_FILE) $(LINK_CACHE_FILE_DEST_DIR)/
36+
npm run prettier:no-ignore -- \
37+
--write $(LINK_CACHE_FILE_DEST_DIR)/$(LINK_CACHE_FILE)
38+
else
39+
@echo "SKIPPING refcache-save"
40+
endif
41+
42+
check-links: $(GET_LINK_CHECKER_IF_NEEDED) \
43+
refcache-restore check-links-only refcache-save
44+
45+
check-links-only:
1946
$(HTMLTEST) $(HTMLTEST_ARGS)
2047

2148
clean:

content/en/blog/2022/end-user-discussion-group-apac/index.md

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -5,50 +5,50 @@ date: 2022-12-06
55
author: "[Reese Lee](https://github.com/reese-lee)"
66
---
77

8-
Since July, end users have been getting together to discuss their OpenTelemetry
9-
adoption and implementation practices in a vendor-netural space known as the
10-
[Monthly Discussion Groups](/community/end-user/discussion-group/)
11-
(also referenced as the End User Discussion Groups).
8+
Since July, end users have been getting together to discuss their OpenTelemetry
9+
adoption and implementation practices in a vendor-netural space known as the
10+
[Monthly Discussion Groups](/community/end-user/discussion-group/)
11+
(also referenced as the End User Discussion Groups).
1212

13-
Previously, they were only available in the EMEA and AMER regions; the End User
14-
Working Group is pleased to announce that **APAC sessions will now be available,
15-
starting in January 2023**!
13+
Previously, they were only available in the EMEA and AMER regions; the End User
14+
Working Group is pleased to announce that **APAC sessions will now be available,
15+
starting in January 2023**!
1616

1717
## The what
18-
As mentioned above, these Discussion Groups are monthly meetings for end users
19-
to discuss the challenges they're facing in their OTel implementations and to
20-
learn from each other, as well as to talk about the project itself and what is
21-
working, what isn't, and what they'd like to see.
18+
As mentioned above, these Discussion Groups are monthly meetings for end users
19+
to discuss the challenges they're facing in their OTel implementations and to
20+
learn from each other, as well as to talk about the project itself and what is
21+
working, what isn't, and what they'd like to see.
2222

23-
We encourage you to attend and ask questions to learn how other users have
24-
implemented OpenTelemetry in their organizations, resolved common issues, and
25-
more. Example topics that have been discussed include tail sampling, collector
26-
scaling, and OpAMP; there really is no limit to the topics! We simply ask that
27-
you be respectful and abide by the [Chatham House Rule](https://www.chathamhouse.org/about-us/chatham-house-rule#:~:text=The%20Rule%20reads%20as%20follows,other%20participant%2C%20may%20be%20revealed.).
23+
We encourage you to attend and ask questions to learn how other users have
24+
implemented OpenTelemetry in their organizations, resolved common issues, and
25+
more. Example topics that have been discussed include tail sampling, collector
26+
scaling, and OpAMP; there really is no limit to the topics! We simply ask that
27+
you be respectful and abide by the [Chatham House Rule](https://www.chathamhouse.org/about-us/chatham-house-rule).
2828

2929
## The why
30-
This group started as a result of direct feedback from end users in the community!
31-
Past participants have shared with us that these have been helpful and valuable
32-
for them as they migrate their observability instrumentation to OpenTelemetry.
30+
This group started as a result of direct feedback from end users in the community!
31+
Past participants have shared with us that these have been helpful and valuable
32+
for them as they migrate their observability instrumentation to OpenTelemetry.
3333

34-
Additionally, the End User Working Group is also improving the process to share
35-
any collected user feedback\* with the appropriate project maintainers to help
36-
improve the user experience and increase adoption.
34+
Additionally, the End User Working Group is also improving the process to share
35+
any collected user feedback\* with the appropriate project maintainers to help
36+
improve the user experience and increase adoption.
3737

38-
\*Information shared in the groups can be discussed publicly, but **not** the
39-
identity of the person who said it or their affiliation.
38+
\*Information shared in the groups can be discussed publicly, but **not** the
39+
identity of the person who said it or their affiliation.
4040

4141
## The when
42-
If this is your first time hearing about these meetings, you are invited to
43-
participate in any of the upcoming sessions that fit your schedule. Look for
44-
the meetings by filtering them in one of the community's publicly available
45-
[calendars](https://github.com/open-telemetry/community#calendar), and duplicate
46-
the event to your own. There will also be periodic reminders in the general CNCF
47-
Slack `#opentelemetry` channel.
42+
If this is your first time hearing about these meetings, you are invited to
43+
participate in any of the upcoming sessions that fit your schedule. Look for
44+
the meetings by filtering them in one of the community's publicly available
45+
[calendars](https://github.com/open-telemetry/community#calendar), and duplicate
46+
the event to your own. There will also be periodic reminders in the general CNCF
47+
Slack `#opentelemetry` channel.
4848

4949
Upcoming sessions:
5050

51-
* **EMEA**: every third Tuesday of the month at 11AM CET (GMT +1), join [here](https://us06web.zoom.us/j/85691064809?pwd=c0VCejh)
51+
* **EMEA**: every third Tuesday of the month at 11AM CET (GMT +1), join [here](https://us06web.zoom.us/j/85691064809?pwd=c0VCejh)
5252
* December 20, 2022
5353
* January 17, 2023
5454
* **APAC**: every third Wednesday of the month at 11AM IST (GMT +5.5), join [here](https://us06web.zoom.us/j/82702918447?pwd=WllKc0hmdTNuelhFdlhMM1Q3TktSQT09)
@@ -58,4 +58,4 @@ Upcoming sessions:
5858
* December 15, 2022
5959
* January 19, 2023
6060

61-
See y'all soon!
61+
See y'all soon!

content/en/blog/2022/otel-demo-app-nomad/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Y’all… I’m so excited, because I finally got to work on an item on my tech
1010
bucket list. Last week, I began the process of translating
1111
[OpenTelemetry (OTel) Demo App](https://github.com/open-telemetry/opentelemetry-demo)’s
1212
[Helm Charts](https://github.com/open-telemetry/opentelemetry-helm-charts/tree/main/charts/opentelemetry-demo)
13-
to [HashiCorp](https://hashicorp.com) [Nomad](https://nomadproject.io) job
13+
to [HashiCorp](https://hashicorp.com) [Nomad][] job
1414
specs. Today I’ll be talking about how to run the OpenTelemetry Demo App on
1515
Nomad, using my favorite Hashi-in-a-box tool,
1616
[HashiQube](https://rubiksqube.com/#/).
@@ -25,7 +25,7 @@ Let’s do this!
2525

2626
Before we move on, I am assuming that you have a basic understanding of:
2727

28-
- **[Nomad](https://nomadproject.io)**. If not, head on over to my
28+
- **[Nomad][]**. If not, head on over to my
2929
[Nomad intro post](https://storiesfromtheherd.com/just-in-time-nomad-80f57cd403ca).
3030
[This blog post](https://danielabaron.me/blog/nomad-tips-and-tricks/) by
3131
[Daniela Baron](https://danielabaron.me) is also great.
@@ -53,7 +53,7 @@ Below are the repos that we’ll be using for today’s tutorial:
5353
### HashiQube Setup
5454

5555
Before you start, just a friendly reminder that HashiQube by default runs
56-
[Nomad](https://nomadproject.io), [Vault](http://vaultproject.io), and
56+
[Nomad][], [Vault](https://www.vaultproject.io), and
5757
[Consul](https://consul.io) on Docker. In addition, we’ll be deploying 21 job
5858
specs to Nomad. This means that we’ll need a decent amount of CPU and RAM, so
5959
please make sure that you have enough resources allocated in your Docker
@@ -372,3 +372,5 @@ The OpenTelemetry community is always looking for contributions!
372372
[Join us](https://github.com/open-telemetry/community)! If you're on Mastodon,
373373
be sure to follow
374374
[OpenTelemetry on Mastodon](https://fosstodon.org/@opentelemetry)
375+
376+
[Nomad]: https://www.nomadproject.io

package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@
66
"That is, from the command line, you can use, e.g.: npm run s <arguments>."
77
],
88
"scripts": {
9+
"__check:links": "make --keep-going check-links",
910
"_build": "hugo --cleanDestinationDir -e dev -DFE",
10-
"_check:links:all": "HTMLTEST_ARGS='--log-level 1' make check-links",
11-
"_check:links": "make check-links",
11+
"_check:links": "HTMLTEST_ARGS='--log-level 1' npm run __check:links",
12+
"_check:links:internal": "npm run __check:links",
1213
"_get:no": "echo SKIPPING get operation",
1314
"_get:submodule:non-lang": "npm run _get:submodule -- content-modules/opentelemetry-specification themes/docsy",
1415
"_get:submodule": "set -x && git submodule update --init ${DEPTH:- --depth 1}",
@@ -23,8 +24,8 @@
2324
"cd:public": "cd public &&",
2425
"check": "npm run all -- check:*",
2526
"check:formatting": "npx prettier --check .",
26-
"check:links:all": "npm run _check:links:all",
2727
"check:links": "npm run _check:links",
28+
"check:links:internal": "npm run _check:links:internal",
2829
"clean": "make clean",
2930
"cp:spec": "./scripts/content-modules/cp-pages.sh",
3031
"get:submodule": "npm run _get:${GET:-submodule}",
@@ -34,8 +35,8 @@
3435
"prebuild:preview": "run-s _prebuild check:formatting",
3536
"prebuild:production": "run-s _prebuild check:formatting",
3637
"prebuild": "npm run _prebuild",
37-
"precheck:links:all": "npm run build",
3838
"precheck:links": "npm run build",
39+
"precheck:links:internal": "npm run build",
3940
"prepare": "run-s get:submodule _prepare:docsy",
4041
"preserve:hugo": "npm run _prebuild",
4142
"prettier:no-ignore": "npx prettier --ignore-path ''",

static/favicons/site.webmanifest

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
{
2-
"name": "OpenTelemetry.io",
3-
"short_name": "OTel site",
4-
"icons": [
5-
{
6-
"src": "android-chrome-192x192.png",
7-
"sizes": "192x192",
8-
"type": "image/png"
9-
},
10-
{
11-
"src": "android-chrome-512x512.png",
12-
"sizes": "512x512",
13-
"type": "image/png"
14-
}
15-
],
16-
"theme_color": "#4f62ad",
17-
"background_color": "#4f62ad",
18-
"display": "standalone"
2+
"name": "OpenTelemetry.io",
3+
"short_name": "OTel site",
4+
"icons": [
5+
{
6+
"src": "android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#4f62ad",
17+
"background_color": "#4f62ad",
18+
"display": "standalone"
1919
}

0 commit comments

Comments
 (0)