File tree Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Expand file tree Collapse file tree 3 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -367,6 +367,36 @@ manage_ignored_translations:on-schedule:
367
367
- echo "Downloading ignored translation source files..."
368
368
- manage_ignored_translation_files
369
369
370
+ # This checks anchor links,
371
+ # its too noisy to run all the time but we want some insight so its running on schedule
372
+ link_checks:on-schedule :
373
+ << : *base_template
374
+ << : *live_rules
375
+ stage : post-deploy
376
+ cache : {}
377
+ environment : " live"
378
+ variables :
379
+ URL : ${LIVE_DOMAIN}
380
+ GIT_STRATEGY : none
381
+ dependencies :
382
+ - build_live
383
+ script :
384
+ - dog --config "$HOME/.dogrc" event post "documentation htmltest ${CI_COMMIT_REF_NAME} started" "${CI_PROJECT_URL}/pipelines/${CI_PIPELINE_ID}" --alert_type "info" --tags="${DEFAULT_TAGS}"
385
+ - find ./public -name "*.html" -exec sed -i -e "s#https://docs.datadoghq.com/#/#g" {} +
386
+ - find ./public -name "*.html" -exec sed -i -e "s#/api/v1/#/api/latest/#g" {} +
387
+ - find ./public -name "*.html" -exec sed -i -e "s#/api/v2/#/api/latest/#g" {} +
388
+ - " sed -i'' -e 's/CheckInternalHash: false/CheckInternalHash: true/' .htmltest.yml"
389
+ - htmltest
390
+ after_script :
391
+ - " [ -f /usr/local/bin/helpers.sh ] && source /usr/local/bin/helpers.sh" # source helpers
392
+ - RESULT="⛈ htmltest result; the following issues were found:\n$(tail -n +2 ./tmp/.htmltest/htmltest.log)\n--------------------" # output all but first line
393
+ - if grep -q "not exist" tmp/.htmltest/htmltest.log; then notify_slack "${RESULT}" "#31b834"; fi
394
+ artifacts :
395
+ paths :
396
+ - ./tmp/.htmltest
397
+ interruptible : true
398
+ allow_failure : true
399
+
370
400
test_missing_tms_live :
371
401
<< : *base_template
372
402
<< : *live_rules
Original file line number Diff line number Diff line change @@ -26,6 +26,9 @@ IgnoreDirs:
26
26
- api
27
27
- fr
28
28
- ja
29
+ - ko
30
+ - es
31
+ - security/default_rules
29
32
IgnoreURLs :
30
33
- " /?api/(v1|v2)/*"
31
34
- play.google.com
Original file line number Diff line number Diff line change 69
69
< div id ="integration-popper " class ="dropdown-menu " style ="display:none; " data-ref ="mobilecontrols ">
70
70
< a data-ref ="filter " data-filter ="all " href ="#all " class ="dropdown-item sort-time "> {{ i18n "all" }}</ a >
71
71
{{ range $i, $e := (sort ($.Scratch.Get "filters") "value" "asc") }}
72
- < a data-ref ="filter " data-filter =".cat-{{ replace $e "/" "" | urlize }}" href="#cat-{{ replace $e "/" "" | urlize }}" class="dropdown-item sort-time sort-{{ replace $e "/" "" | urlize }}"> {{ $e | upper }}</ a >
72
+ < a id =" cat-{{ replace $e "/" "" | urlize }}" data-ref="filter" data-filter=".cat-{{ replace $e "/" "" | urlize }}" href="#cat-{{ replace $e "/" "" | urlize }}" class="dropdown-item sort-time sort-{{ replace $e "/" "" | urlize }}"> {{ $e | upper }}</ a >
73
73
{{ end }}
74
74
</ div >
75
75
</ div >
You can’t perform that action at this time.
0 commit comments