codefortulsa / website

Code For Tulsa Website Update 2022
https://www.figma.com/file/maf7XD1XhbIKlJn77P2tIS/Code-for-Tulsa-Website?node-id=0%3A1
8 stars 10 forks source link

FEAT: Validate (and preprocess?) Frontmatter in `.md` and `.mdx` files #135

Open helmturner opened 2 years ago

helmturner commented 2 years ago

Note: for support questions, please use #ug-code-for-tulsa slack channel in Techlahoma or stackoverflow. This repository's issues are reserved for feature requests and bug reports.

You can put anything you want into the front-matter section of a .md or .mdx file, whether or not it's correct. If the front-matter schema doesn't match what our pipeline expects, you might get unexpected behavior, a silent bug, or an unhelpful error.

We're not using front-matter inputs anywhere as of yet, so it can't be reproduced easily.

A helplful and descriptive build error should occur in any of the following events:

Good errors make for better communication between devs and content creators. This also allows us to preprocess when we validate. Finally, the content migrated from the old site causes all sorts of errors stemming from the format of the front-matter, and we would like to know specifically what needs fixing.

This unblocks #101 , #81 , #2

zenlex commented 2 years ago

@helmturner Schema Information: 3 main content types - Blog, Event, Project.