Open robhrt7 opened 9 years ago
@dragosh
related: you could have metadata in your markdown like https://github.com/jaredly/demobox/blob/master/demo.md
@mik01aj agree, it's also a nice option to use. I'll definetly come up with something similiar in 0.6.0
I'm not sure adding metadata reading support from package.json and the likes will do us too much good.
I definitely like the idea of embedding this metadata into the spec-file itself. I've seen some static site generators use a small bit a YML at the top of an html / liquid file for metadata. I think this is a superior way of adding metadata.
To not repeat some of the fields like
title
,description
,keywords
ininfo.json
, we may parse this info frompackage.json
andbower.json
following commonJS standard.This will allow not having
info.json
at all, so we need to think on how to determine if directory could be rendered as Spec page. Here's some draft checking logic:info.json
package.json
+ some of spec templates likeREADME.md
,index.src
and etc.