coffeedoc / codo

CoffeeScript API documentation generator. It's like YARD but for CoffeeScript!
Other
625 stars 92 forks source link

Support for binary Extras, e.g. images, PDFs #180

Closed hparra closed 8 years ago

hparra commented 10 years ago

Allows two related features:

Pre-existing testing was limited, but I was able to add one simple test. Changes have been smoked with real project.

Entities.Extra determines if file is binary and holds its buffer, while Theme.Templater#render() writes the buffer (instead of rendering a template) if it exists.

Theme.Theme#pathFor() helper no longer affixes ‘.html’ if buffer exists.

While it may have been more ideal to create a new type of Entity, doing so would have resulted in significant duplicated code and additions to the CLI interface.

inossidabile commented 8 years ago

I know it took a while. But could we rebase this?

inossidabile commented 8 years ago

Closing for now.