Write maintainable CSS styleguides using Markdown
Ruby implementation for Styledown2.
gem 'styledown2'
See API reference for full API reference.
This gem provides a Styledown
class.
styleguide = Styledown.new('/path/to/styleguides')
styleguide.render # Updates #output
styleguide.output
# => {
# 'buttons.html' => { 'contents' => '...' },
# 'forms.html' => { 'contents' => '...' },
# 'styledown/script.js' => { 'contents' => '...' }
# }
See API reference for full reference on the Styledown
class.
This implements the same functional API as the JavaScript styledown2
.
files = Styledown.read(...)
data = Styledown.parse(files)
output = Styledown.render(data)
See API reference for full reference on Styledown
class methods.
styledown2-ruby © 2017+, Rico Sta. Cruz. Released under the MIT License.
Authored and maintained by Rico Sta. Cruz with help from contributors (list).
ricostacruz.com · GitHub @rstacruz · Twitter @rstacruz