bjankord / Style-Guide-Boilerplate

⚡️🎨 A starting point for crafting living style guides.

Home Page:http://bjankord.github.io/Style-Guide-Boilerplate/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Markdown processor?

vinayraghu opened this issue · comments

Hi, thanks for the tool. IMO, this is more flexible than other tools which bake in the documentation inside of the CSS, which I personally dislike. However, is there anyway we can include a markdown processor for the docs? As the docs require code blocks? I'd be happy to send a PR but I haven't worked in PHP before

Thanks for the feedback @rvinay88 Adding markdown support is something I've thought about. I need to set up a milestone for v3 and v4. I'd like to get this into v4.

I've played around with getting markdown documentation working, but have not had any success with it so far.

What I'd like to do is check if files in the doc directory are .html or .md files and then handle accordingly. If it is and .html file, render it as is, if it is a .md file, process it and then render it to the page.

sounds like a great idea. Rendering the .md file differently than an .html file. Maybe something like Parsedown would work? https://github.com/erusev/parsedown

I've got this working locally with parsedown. Need to do some more testing. I'm planning on a minor release soon with markdown support for documentation once I finish testing.

Markdown support for docs has landed v3.2.0. You can continue using .html files for docs if you want. If you switch your docs to markdown files, style-guide-boilerplate will render/parse them instead of rendering your .html doc files.

+1! Thanks, this is great!