Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read mdzk.toml #100

Open
jimkang opened this issue Jul 15, 2022 · 2 comments
Open

Can't read mdzk.toml #100

jimkang opened this issue Jul 15, 2022 · 2 comments

Comments

@jimkang
Copy link

jimkang commented Jul 15, 2022

With the current main (d061a14), when I try to build a site, I get:

E TOML deserialize error: missing field `title` at line 1 column 1
  missing field `title` at line 1 column 1

I get this even if I reduce mdzk.toml to:

[mdzk]
title = "Title"

I feel like I'm missing something here. Is there an example of an mdzk.toml that works with the current code out there that I could look at?

@kmaasrud
Copy link
Member

Sorry for the terribly late reply @jimkang! The reason you are getting this error is because the new layout of mdzk.toml is different from version 0.5.3 in that the title field is not nested underneath a [mdzk] table. Changing your config to just

title = "Title"

should solve the issue for you. A lot has changed since 0.5.3 and a lot needs to be worked on wrt the SSG and it's configuration. Additionally, the docs are regretfully very lacking atm. I've been taking a break from dev work lately because of the summer holiday, but I hope to get back to working on mdzk pretty soon 😄

I'll keep the issue open as a reminder to ourselves that we should probably just output a warning when the title field is missing (or wrongly placed) and use a default instead.

@jimkang
Copy link
Author

jimkang commented Jul 28, 2022

Thank you! I'm in no rush, so this timing works for me. I'll give removing [mdzk] a shot.

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

No branches or pull requests

2 participants