Skip to content

Commit 26746ac

Browse files
committed
feat: add Pages CMS configuration
1 parent d73ee0f commit 26746ac

File tree

1 file changed

+116
-0
lines changed

1 file changed

+116
-0
lines changed

.pages.yml

+116
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
content:
2+
- label: About
3+
name: about
4+
type: file
5+
path: src/_includes/about.md
6+
fields:
7+
- name: body
8+
label: About this report
9+
type: rich-text
10+
- label: Report Data
11+
name: reportData
12+
type: file
13+
path: src/report/index.md
14+
fields:
15+
- name: "evaluators"
16+
label: "Evaluators"
17+
type: "string"
18+
list: true
19+
- name: "commissioner"
20+
label: "Commissioner"
21+
type: "string"
22+
- name: targetLevel
23+
label: Target Level
24+
type: select
25+
options:
26+
values: [A, AA, AAA]
27+
- name: targetWcagVersion
28+
label: Target WCAG Version
29+
type: select
30+
options:
31+
values: ["2.0", "2.1", "2.2"]
32+
- name: date
33+
label: Date
34+
type: date
35+
- name: specialRequirements
36+
label: Special Requirements
37+
type: text
38+
- name: body
39+
label: Executive summary
40+
type: rich-text
41+
- name: scope
42+
label: In scope
43+
type: object
44+
list: true
45+
fields:
46+
- { name: "title", label: "Title", type: "string" }
47+
- { name: "url", label: "URL", type: "string" }
48+
- { name: "description", label: "Description", type: "text", required: false }
49+
- name: outOfScope
50+
label: Out of scope
51+
type: object
52+
list: true
53+
fields:
54+
- { name: "title", label: "Title", type: "string" }
55+
- { name: "url", label: "URL", type: "string" }
56+
- { name: "description", label: "Description", type: "text", required: false }
57+
- name: tools
58+
label: Tools used
59+
type: object
60+
list: true
61+
fields:
62+
- { name: "name", label: "Name", type: "string" }
63+
- { name: "version", label: "Version", type: "string", required: false }
64+
description: Enter browsers and assistive technologies used in auditing the website.
65+
- name: technologies
66+
label: Technologies used
67+
type: string
68+
list: true
69+
description: Enter technologies used to build the website.
70+
- name: issues
71+
label: Issues link
72+
type: string
73+
description: Enter the link to the website's issues page on GitHub, Gitlab or JIRA.
74+
required: false
75+
- label: Issues
76+
name: issue
77+
path: src/report/issues
78+
type: collection
79+
fields:
80+
- { label: Title, name: title, type: string }
81+
- { label: Success Criteria, name: sc, type: string, list: true }
82+
- {
83+
label: Severity,
84+
name: severity,
85+
type: select,
86+
options:
87+
{ values: ["Unknown", "Low", "Medium", "High"] },
88+
required: false,
89+
}
90+
- {
91+
label: Difficulty,
92+
name: difficulty,
93+
type: select,
94+
options: { values: ["Unknown", "Low", "Medium", "High"] },
95+
required: false,
96+
}
97+
- { label: Sample Pages, name: sample, type: string, default: "all" }
98+
- {
99+
label: Screenshots,
100+
name: screenshots,
101+
type: object,
102+
list: true,
103+
required: false,
104+
fields:
105+
[
106+
{ label: "Screenshot", name: "src", type: "image" },
107+
{ label: "Alt Text", name: "alt", type: "string" },
108+
{ label: "Caption", name: "caption", type: "text" },
109+
],
110+
}
111+
- {
112+
label: Body,
113+
name: body,
114+
type: rich-text,
115+
default: "#### Problem\n\nDescribe the problem. Include code samples if necessary.\n\n#### Potential Solutions\n\nDescribe some potential solutions.\n\n#### Read more\n\nInclude some links to relevant examples and/or articles.",
116+
}

0 commit comments

Comments
 (0)