Hobo / hobo_bootstrap

Bootstrap based theme for Hobo 2.0
11 stars 17 forks source link

bootstrap plugin's entire readme displayed on http://cookbook.hobocentral.net/api_plugins #20

Closed bryanlarsen closed 12 years ago

bryanlarsen commented 12 years ago

The plugin index page uses some sort of heuristic to figure out what is the "summary" from the README. This is failing for hobo_bootstrap.

http://cookbook.hobocentral.net/api_plugins

bryanlarsen commented 12 years ago

Here's the code from the cookbook:

  if readme =~ /(.*?\n)^#/m
    plugin.short_description = Maruku.new($1).to_html
    plugin.description = Maruku.new($POSTMATCH).to_html
  else
    plugin.short_description = Maruku.new(readme).to_html
    plugin.description = ""
  end

as you can see, there are two issues: hobo_bootstrap doesn't use the # style of title, and hobo_bootstrap doesn't have content before the first section.

iox commented 12 years ago

Thanks for the fix Bryan!