You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the new link-validation action for the first time. We should update the jobs config somewhat to ignore repo-local links, e.g.:
docs/guides/file-sd.md:5: link /docs/prometheus/latest/configuration/configuration/#kubernetes_sd_config, normalized to: /home/runner/work/docs/docs/docs/prometheus/latest/configuration/configuration: file not found
as well as tutorial links to localhost like
docs/guides/multi-target-exporter.md:290: "http://localhost:9115" not accessible even after retry; status code 0: Get "http://localhost:9115": dial tcp [::1]:9115: connect: connection refused
I'd like to work on this. Planning to update .mdox.validator.yaml to ignore the absolute website paths and localhost URLs. Will test locally first and open a PR.
here's what I found so far: turning on a flag in mdox called explicitLocalValidators routes local paths through the validator config, and adds an ignore rule for absolute paths starting with /. The flag was added to mdox recently and isn't in a released version yet, so the Makefile would need to pin to a specific commit. Before I open the PR, should I also expand MD_FILES_TO_FORMAT to cover more of docs/, or just fix the validator config?
Activity
kkukadia commentedon Mar 31, 2026
I'd like to work on this. Planning to update .mdox.validator.yaml to ignore the absolute website paths and localhost URLs. Will test locally first and open a PR.
kkukadia commentedon Mar 31, 2026
here's what I found so far: turning on a flag in mdox called
explicitLocalValidatorsroutes local paths through the validator config, and adds an ignore rule for absolute paths starting with /. The flag was added to mdox recently and isn't in a released version yet, so the Makefile would need to pin to a specific commit. Before I open the PR, should I also expand MD_FILES_TO_FORMAT to cover more of docs/, or just fix the validator config?ci: ignore repo-local and localhost links in mdox link validation (fixes
ci: ignore repo-local and localhost links in mdox link validation (fixes
ci: ignore repo-local and localhost links in mdox link validation (fixes
ci: ignore repo-local and localhost links in mdox link validation (fixes
Merge pull request prometheus#3079 from santhiprakash/fix-mdox-link-v…