Clear and concise description of the problem
Improving readability of config reference documentation
Suggested solution
A possible solution can be found at https://theme-plume.vuejs.press/guide/markdown/field/#%E7%A4%BA%E4%BE%8B
We just need to extract it into a plugin and move it here.
However, the syntax SHALL be adjusted. Required nesting and useless ending marker (in a field group) is pretty annoying.
Again, we shall introduce the tab syntax. See: https://mdit-plugins.github.io/tab.html
::: fields
@field name="theme" type="ThemeConfig" required default="{ base: '/' }"
Theme Config
@field name="enabled" type="boolean" optional default="true"
Whether it's enabled
:::
Also I would like to discuss the name. Shall "option" or "props" be better than "field"?
Clear and concise description of the problem
Improving readability of config reference documentation
Suggested solution
A possible solution can be found at https://theme-plume.vuejs.press/guide/markdown/field/#%E7%A4%BA%E4%BE%8B
We just need to extract it into a plugin and move it here.
However, the syntax SHALL be adjusted. Required nesting and useless ending marker (in a field group) is pretty annoying.
Again, we shall introduce the tab syntax. See: https://mdit-plugins.github.io/tab.html
Also I would like to discuss the name. Shall "option" or "props" be better than "field"?