* Use fixed `/docs/grafana-cloud/alerting-and-irm` URLs for cloud references * Fix `docs/grafana-cloud/` data sources links * Fix `docs/grafana-cloud/` Panel & Visualization links * Fix `/docs/grafana-cloud/` link to Dashboard page * Set root directory `docs/reference` for non-cloud pages * Fix `admonition` cannot use a `docs/reference` relative link * Update `doc-validator` https://github.com/grafana/technical-documentation/releases/tag/doc-validator%2Fv4.1.0 Signed-off-by: Jack Baldry <jack.baldry@grafana.com> --------- Signed-off-by: Jack Baldry <jack.baldry@grafana.com> Co-authored-by: Jack Baldry <jack.baldry@grafana.com>
30 lines
961 B
YAML
30 lines
961 B
YAML
name: "doc-validator"
|
|
on:
|
|
pull_request:
|
|
paths: ["docs/sources/**"]
|
|
workflow_dispatch:
|
|
jobs:
|
|
doc-validator:
|
|
runs-on: "ubuntu-latest"
|
|
container:
|
|
image: "grafana/doc-validator:v4.1.0"
|
|
steps:
|
|
- name: "Checkout code"
|
|
uses: "actions/checkout@v4"
|
|
- name: "Run doc-validator tool"
|
|
# Only run doc-validator on specific directories.
|
|
run: >
|
|
doc-validator
|
|
'--include=^docs/sources/(?:alerting|fundamentals|getting-started|introduction|setup-grafana|upgrade-guide|whatsnew/whats-new-in-v(?:9|10))/.+\.md$'
|
|
'--skip-checks=^(?:image.+|canonical-does-not-match-pretty-URL)$'
|
|
./docs/sources
|
|
/docs/grafana/latest
|
|
| reviewdog
|
|
-f=rdjsonl
|
|
--fail-on-error
|
|
--filter-mode=nofilter
|
|
--name=doc-validator
|
|
--reporter=github-pr-review
|
|
env:
|
|
REVIEWDOG_GITHUB_API_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|