Commit f252b8f1 authored by Marcel Amirault's avatar Marcel Amirault Committed by Stan Hu

Add lint job to test UI links to docs

Add a pipeline job to test UI links to docs,
as links break when docs move, especially anchors
when headings change.
parent 39b70204
......@@ -59,6 +59,15 @@ docs lint:
# Check the internal anchor links
- bundle exec nanoc check internal_anchors
ui-docs-links lint:
extends:
- .docs:rules:docs-lint
- .static-analysis-base
stage: test
needs: []
script:
- bundle exec haml-lint -i DocumentationLinks
graphql-reference-verify:
extends:
- .default-retry
......
......@@ -28,7 +28,7 @@ linters:
max_consecutive: 2
DocumentationLinks:
enabled: false
enabled: true
include:
- 'app/views/**/*.haml'
- 'ee/app/views/**/*.haml'
......
......@@ -3,6 +3,6 @@
- notify_url = notify_project_prometheus_alerts_url(@project, format: :json)
- authorization_key = @project.alerting_setting.try(:token)
- learn_more_url = help_page_path('operations/metrics/index.md', anchor: 'external-prometheus-instances')
- learn_more_url = help_page_path('operations/metrics/alerts.md', anchor: 'external-prometheus-instances')
#js-settings-prometheus-alerts{ data: { notify_url: notify_url, authorization_key: authorization_key, change_key_url: reset_alerting_token_project_settings_operations_path(@project), learn_more_url: learn_more_url, disabled: true } }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment