benschwarz / bonsai

A tiny static web site generator
http://tinytree.info/
MIT License
297 stars 39 forks source link

ri / RDoc Unrecognized directives #5

Closed feelepxyz closed 14 years ago

feelepxyz commented 14 years ago

Got this output when updating the gem.. 1.9.1 on OS X.


Installing ri documentation for bonsai-1.1.4... Unrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/1.fig/default.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/2.maple/default.ymlUnrecognized directive 'body' in lib/bonsai/templates/content/1.varieties/1.fig/default.yml Unrecognized directive 'body' in lib/bonsai/templates/content/1.varieties/2.maple/default.yml

Unrecognized directive 'headline' in lib/bonsai/templates/content/2.cultivation/default.ymlUnrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/products.yml

Unrecognized directive 'body' in lib/bonsai/templates/content/2.cultivation/default.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/3.history/default.ymlUnrecognized directive 'headline' in lib/bonsai/templates/content/index/default.yml

Unrecognized directive 'body' in lib/bonsai/templates/content/3.history/default.ymlUnrecognized directive 'body' in lib/bonsai/templates/content/index/default.yml

Unrecognized directive 'site_name' in lib/bonsai/templates/site.yml Unrecognized directive 'url' in lib/bonsai/templates/site.yml Unrecognized directive 'copyright' in lib/bonsai/templates/site.yml Building YARD (yri) index for bonsai-1.1.4... ERROR: While generating documentation for bonsai-1.1.4 ... MESSAGE: No such file or directory - Could not find extra file: README.rdoc ... YARDDOC args: -c -n --quiet lib - LICENSE README.md (continuing with the rest of the installation)


Installing RDoc documentation for bonsai-1.1.4... Unrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/1.fig/default.yml Unrecognized directive 'body' in lib/bonsai/templates/content/1.varieties/1.fig/default.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/2.maple/default.yml Unrecognized directive 'body' in lib/bonsai/templates/content/1.varieties/2.maple/default.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/1.varieties/products.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/2.cultivation/default.yml Unrecognized directive 'body' in lib/bonsai/templates/content/2.cultivation/default.ymlUnrecognized directive 'headline' in lib/bonsai/templates/content/3.history/default.yml

Unrecognized directive 'body' in lib/bonsai/templates/content/3.history/default.yml Unrecognized directive 'headline' in lib/bonsai/templates/content/index/default.yml Unrecognized directive 'body' in lib/bonsai/templates/content/index/default.yml Unrecognized directive 'site_name' in lib/bonsai/templates/site.yml Unrecognized directive 'url' in lib/bonsai/templates/site.yml Unrecognized directive 'copyright' in lib/bonsai/templates/site.yml

benschwarz commented 14 years ago

Thanks. I noticed this yesterday and haven't worked out why as yet. I'll look into it for the next release

benschwarz commented 14 years ago

Its worth noting that the gem installs perfectly despite this scary looking output.

feelepxyz commented 14 years ago

yeah, love it btw! totally underrated if you ask me :) Something that popped into my head. Is it possible to render ruby code as a variable in a mustache template? Something like, :copyright: #{Time.now.year} ..

benschwarz commented 14 years ago

No - For more dynamic templates you might want to try something other than mustache. Although keep it in mind that mustache is the only one with built in partial support. Also, if you can post queries like this one to the google group, it would be awesome. (Better information sharing)

benschwarz commented 14 years ago

Fixed in 1.1.5