-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.markbot.yml
108 lines (92 loc) · 2.75 KB
/
.markbot.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
repo: 'cfstore'
canvasCourse: 'web-dev-3'
naming: true
liveWebsite: true
git:
numCommits: 10
allCommitted: true
allSynced: true
allFiles:
files:
maxWidth: 2500
maxHeight: 2500
maxSize: 300
smushed: true
html:
- path: 'index.html'
valid: true
bestPractices: true
outline: true
has:
- ['link[href*="modules.css"] + link[href*="grid.css"]', 'The `modules.css` file must come before the `grid.css` file']
- ['link[href*="grid.css"] + link[href*="type.css"]', 'The `grid.css` file must come before the `type.css` file']
- ['link[href*="type.css"] + link[href*="main.css"]', 'The `type.css` file must come before the `main.css` file']
- ['link[href*="fonts.googleapis.com"]', 'A webfont from Google Fonts should be used']
- '.skip-links'
- 'header[role="banner"]'
- 'header h1'
- 'header nav'
- 'header nav li'
- 'header nav li a'
- 'main[role="main"]'
- 'section'
- 'footer'
- 'img.img-flex'
- 'h2'
- 'div'
- '.grid'
- '.unit'
- '.embed'
- '.embed-item'
- '[class*="list-group"]'
- '[class*="gutter-"]'
- '[class*="push-"]'
- '[class*="pad-"]'
- '[class*="xs-"]'
- '[class*="s-"]'
- '[class*="m-"]'
- '[class*="l-"]'
- ['form[method="POST"][action*="formspree.io"]', 'The `<form>` should submit to @@https://formspree.io/@@']
- 'label[for]'
- 'input[id][name]'
- 'button[type="submit"]'
- 'footer[role="contentinfo"]'
search:
- 'micro|milli|kilo|mega|giga|tera|peta|exa|zetta|yotta'
css:
- path: 'css/modules.css'
valid: true
bestPractices: true
search:
- ['https://modulifier.web-dev.tools/', 'Modulifier wasn’t used to generate this file.']
- path: 'css/grid.css'
valid: true
bestPractices: true
search:
- ['https://gridifier.web-dev.tools/', 'Gridifier wasn’t used to generate this file.']
- path: 'css/type.css'
valid: true
bestPractices: true
search:
- ['https://typografier.web-dev.tools/', 'Typograpfier wasn’t used to generate this file.']
- path: 'css/main.css'
valid: true
bestPractices: true
search:
- 'background'
- 'url\("'
functionality:
- path: 'index.html'
tests:
- |
let headerLink = $('header nav a');
let oldBg = css(headerLink).backgroundColor;
let oldColor = css(headerLink).color;
hover('header nav a', function () {
if (css(headerLink).backgroundColor == oldBg && css(headerLink).color == oldColor) fail('The `background-color` or `color` of the navigation links don’t change when hovered')
pass();
});
performance:
- path: 'index.html'
files:
- directory: 'images'