File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -111,6 +111,10 @@ function processFrontmatter(path, lang) {
111
111
)
112
112
}
113
113
114
+ if ( frontmatter . sidebar ) {
115
+ console . error ( `Unexpected 'sidebar' frontmatter at ${ path } ` )
116
+ }
117
+
114
118
if ( path . includes ( "/tutorials/" ) ) {
115
119
if ( ! frontmatter . published ) {
116
120
console . warn ( `Missing 'published' frontmatter at ${ path } :` )
@@ -130,6 +134,16 @@ function processFrontmatter(path, lang) {
130
134
)
131
135
}
132
136
}
137
+
138
+ if (
139
+ frontmatter . skill !== "beginner" &&
140
+ frontmatter . skill !== "intermediate" &&
141
+ frontmatter . skill !== "advanced"
142
+ ) {
143
+ console . log (
144
+ `Skill frontmatter '${ frontmatter . skill } ' must be: beginner, intermediate, or advanced at: ${ path } :`
145
+ )
146
+ }
133
147
}
134
148
}
135
149
You can’t perform that action at this time.
0 commit comments