Commit e589e8bd authored by Stan Hu's avatar Stan Hu

Merge branch 'docs-haml-lint-job' into 'master'

Docs haml lint CI job

Closes #208354

See merge request gitlab-org/gitlab!36945
parents 9543795f f252b8f1
...@@ -59,6 +59,15 @@ docs lint: ...@@ -59,6 +59,15 @@ docs lint:
# Check the internal anchor links # Check the internal anchor links
- bundle exec nanoc check internal_anchors - 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: graphql-reference-verify:
extends: extends:
- .default-retry - .default-retry
......
...@@ -28,7 +28,7 @@ linters: ...@@ -28,7 +28,7 @@ linters:
max_consecutive: 2 max_consecutive: 2
DocumentationLinks: DocumentationLinks:
enabled: false enabled: true
include: include:
- 'app/views/**/*.haml' - 'app/views/**/*.haml'
- 'ee/app/views/**/*.haml' - 'ee/app/views/**/*.haml'
......
...@@ -3,6 +3,6 @@ ...@@ -3,6 +3,6 @@
- notify_url = notify_project_prometheus_alerts_url(@project, format: :json) - notify_url = notify_project_prometheus_alerts_url(@project, format: :json)
- authorization_key = @project.alerting_setting.try(:token) - 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 } } #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