Commit d619b83 1 parent 9dfa389 commit d619b83 Copy full SHA for d619b83
File tree 5 files changed +13
-14
lines changed
5 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -8,16 +8,16 @@ CheckMailto: false
8
8
TestFilesConcurrently : true
9
9
IgnoreDirs :
10
10
# DO NOT EDIT! IgnoreDirs list is auto-generated from markdown file front matter.
11
- # 2024-11-03 The following entry is for `en` pages only. Other locales do
12
- # not currently require it.
13
- - ^blog/(\d+/)?page/\d+
11
+ # Ignore blog index pages for all locales and in all blog sections (top-level and years)
12
+ - ^(../)?blog/(\d+/)?page/\d+
14
13
# TODO drop next line after https://github.com/open-telemetry/opentelemetry.io/issues/5423 is fixed for ja pages:
15
14
- ^ja/docs/concepts/instrumentation/libraries/
16
15
# TODO drop next line after https://github.com/open-telemetry/opentelemetry.io/issues/5423 is fixed for pt pages:
17
16
- ^pt/docs/concepts/instrumentation/libraries/
18
17
# DO NOT EDIT! IgnoreDirs list is auto-generated from markdown file front matter.
19
18
IgnoreInternalURLs : # list of paths
20
19
IgnoreURLs : # list of regexs of paths or URLs to be ignored
20
+ - /index.xml$ # Ignore rel="alternative" links to RSS feeds
21
21
- ^/api$
22
22
- ^((/..)?/docs/languages/\w+|\.\.)/(api|examples|registry)/$
23
23
- ^(/..)?/docs/collector/registry/$
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ redirects:
8
8
- { from: 'index.xml', to: '2024/index.xml 301!' }
9
9
outputs : [HTML, RSS]
10
10
htmltest :
11
+ # 2024-11-07 DO NOT COPY the following IgnoreDirs to non-en pages because handles all locales.
11
12
IgnoreDirs :
12
- # 2024-11-03 The following entry is for `en` pages only. Other locales do
13
- # not currently require it.
14
- - ^blog/(\d+/)?page/\d+
13
+ # Ignore blog index pages for all locales and in all blog sections (top-level and years)
14
+ - ^(../)?blog/(\d+/)?page/\d+
15
15
---
Original file line number Diff line number Diff line change 22
22
{{ end -}}
23
23
{{ end -}}
24
24
{{ end -}}
25
- < link rel ="canonical " href ="{{ $canonicalURL }} ">
25
+ < link rel ="canonical " href ="{{ $canonicalURL }} " data-proofer-ignore >
26
26
27
27
{{- end -}}
Original file line number Diff line number Diff line change 77
77
"log:check:links" : " npm run check:links | tee tmp/build-log.txt" ,
78
78
"make:public" : " make public ls-public" ,
79
79
"netlify-build:preview" : " npm run seq -- build:preview diff:check" ,
80
- "netlify-build:production" : " npm run build:production" ,
80
+ "netlify-build:production" : " npm run seq -- build:production diff:check " ,
81
81
"postget:submodule" : " git submodule" ,
82
- "postnetlify-build:production" : " git restore .htmltest.yml && npm run diff:check" ,
83
82
"prebuild:preview" : " npm run _prebuild" ,
84
83
"prebuild:production" : " npm run _prebuild" ,
85
84
"prebuild" : " npm run _prebuild" ,
86
85
"precheck:links:internal" : " npm run build && npm run update:htmltest-config" ,
87
86
"precheck:links" : " npm run build && npm run update:htmltest-config" ,
88
87
"prefix:submodules" : " npm run update:submodule" ,
89
- "prenetlify-build:production" : " echo 'IgnoreTagAttribute: rel' >> .htmltest.yml" ,
90
88
"prepare" : " npm run seq -- get:submodule _prepare:docsy" ,
91
89
"preserve:hugo" : " npm run _prebuild" ,
92
90
"preserve:netlify" : " npm run seq -- _prebuild _install:netlify-cli" ,
Original file line number Diff line number Diff line change @@ -42,11 +42,12 @@ sub extract_htmltest_config {
42
42
return ;
43
43
}
44
44
45
- shift @htmltest_config ;
45
+ do {
46
+ shift @htmltest_config ;
47
+ } until !@htmltest_config # No more config
48
+ || $htmltest_config [0] !~ / ^\s *#/ ; # Non-comment line
46
49
47
- if (@htmltest_config >= 1 && $htmltest_config [0] =~ / ^IgnoreDirs:/i ) {
48
- return _extract_ignore_dirs($file_path , @htmltest_config )
49
- }
50
+ return _extract_ignore_dirs($file_path , @htmltest_config ) if $htmltest_config [0] =~ / ^IgnoreDirs:/i ;
50
51
51
52
# TODO: Add support for `IgnoreURLs`.
52
53
You can’t perform that action at this time.
0 commit comments