Module: DocsFilters
- Defined in:
- lib/octopress/docs/liquid_filters.rb
Overview
For plugin authors who need to generate urls pointing to ther doc pages.
Instance Method Summary collapse
Instance Method Details
#docs_source_url(input) ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'lib/octopress/docs/liquid_filters.rb', line 3 def docs_source_url(input) if input =~ /github.com/ label = "GitHub" else label = "source" end "<a href='#{input}'>#{label}</a>" end |