Skip to content

Resolve Next.js build warning and Contentlayer validation errors#559

Open
ericsandu wants to merge 2 commits into
unikraft:mainfrom
ericsandu:ericsandu/fix-contentlayer
Open

Resolve Next.js build warning and Contentlayer validation errors#559
ericsandu wants to merge 2 commits into
unikraft:mainfrom
ericsandu:ericsandu/fix-contentlayer

Conversation

@ericsandu

Copy link
Copy Markdown
Contributor

This PR fixes Next.js deprecation warnings and Contentlayer validation failures preventing site
builds for a couple .md.

Assets have been moved from static/ to public/ per Next.js standards.
The Contentlayer has been configured to enabled recursive blog search (**/blog/) and added an Other type for root-level pages, fixing directory mismatch errors for some older

I've added the missing enableToc to the schema which was found in two .md files (privacy.md, imprint.md)

10 posts have also been converted from TOML to YAML and have had standardized required metadata added to them (description, publishedDate, authors).

ericsandu added 2 commits May 9, 2026 12:37
Migrate assets from deprecated 'static/' to 'public/' and update contentlayer.config.ts for subdirectories and new document types.

Signed-off-by: Eric Sandu <eric_andrei.sandu@stud.acs.upb.ro>
Convert frontmatter from TOML to YAML and add required fields (title, description, publishedDate, authors) to meet schema requirements.

Signed-off-by: Eric Sandu <eric_andrei.sandu@stud.acs.upb.ro>
@ericsandu ericsandu force-pushed the ericsandu/fix-contentlayer branch from a71df81 to 991ee02 Compare May 9, 2026 09:39
@ericsandu

Copy link
Copy Markdown
Contributor Author

The linter errors seem to be caused by jscpd finding duplicate fields because of the YAML blocks used in the documentation files, due to the template sort of structure that is used in them. Should the documentation be left as is or updated to avoid identical phrasing across guides?

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