mdzk-rs / mdzk

General-purpose interface to connected notes

Home Page:https://mdzk.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't read `mdzk.toml`

jimkang opened this issue · comments

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?

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.

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