samuelhorn / jamdocs

The ultimate staic generated documentation theme for the JAM-stack. Highly cusomizable, based on Gridsome, ready to deploy to Netlify in one click.
MIT License
219 stars 90 forks source link

Ability to edit everything in Forestry #9

Closed samuelhorn closed 4 years ago

samuelhorn commented 4 years ago

Would be great if one could edit the front page for Jamdocs on Forestry as well, just like you edit the menu and doc-pages.

Any ideas @DirtyF? 🤔

DirtyF commented 4 years ago

Forestry can mainly edit front matter, Markdown and JSON files. Youl can insert Vue components in the Markdown Editor (Prosemirror). See https://github.com/DirtyF/portfolio-vuepress/blob/master/portfolio/index.md for a basic example with VuePress. With first-gen SSG that only rely on front matter, I would have suggested blocks, but I'm guessin you want to use components here.

P.S: our team is currently working onTina, more in phase with new-gen SSGs, Tina provide components and blocks, but there's no Vue or Gridsome plugins for now.

samuelhorn commented 4 years ago

Thanks!

Im subscribed for Tina since I saw the presentation. Hoping it will be implemented in Vue and Svelte as well.

So, i guess the front page for Jamdocs has to be a Markdown file, and the "teasers" made as Vue-components in that markdown file.

Will experiment with it!