module DocsFilters
For plugin authors who need to generate urls pointing to ther doc pages.
Public Instance Methods
docs_source_url(input)
click to toggle source
# 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