Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 102dde1

Browse files
author
Joseph Damiba
authored
Merge pull request #1666 from plotly/update-order-check
update ci script
2 parents 96b3345 + fec570d commit 102dde1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

front-matter-ci.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ def check_noTrailingSlash(meta_to_check):
7777
failures.append(meta["permalink"])
7878
return "do any permalinks not end with a trailing slash?", failures
7979

80+
def check_no_example_index_with_order_under_5(meta_to_check):
81+
failures = []
82+
for meta in meta_to_check:
83+
if meta["order"] < 5 and meta['page_type'] == "u-guide":
84+
failures.append(meta['permalink'])
85+
return "do any posts have order less than five but page_type: u-guide?", failures
8086

8187
categories = [
8288
"file_settings",

0 commit comments

Comments
 (0)