Skip to content

Better error handling - #7

Open
mattriggle05 wants to merge 8 commits into
mainfrom
feature/better-error-handling
Open

Better error handling#7
mattriggle05 wants to merge 8 commits into
mainfrom
feature/better-error-handling

Conversation

@mattriggle05

@mattriggle05 mattriggle05 commented Jul 28, 2026

Copy link
Copy Markdown

Add new checks to the article previewer:

A section at the top with details about image sizes.

  • Uses regex to pull out images and their src
  • Checks the size of the images using the headers of the returns from github

A new box in the front matter section to give errors and warnings about missing fields and incorrect types.

  • Hard coded checks for every field that is used in the frontmatter
  • Fields that are arrays have lists of valid values

An augmented banner section not shown when banner is not given.

  • When the banner is incorrectly set up refers users back to the frontmatter errors section

I have tested everything and it all seems to be working so far.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant