Sha256: 85fffd2d97b010d0b355812507e68f6c9af7ba77b09b098b9caaa888380bfa13

Contents?: true

Size: 311 Bytes

Versions: 29

Compression:

Stored size: 311 Bytes

Contents

# For plugin authors who need to generate urls pointing to ther doc pages.
module DocsFilters
  def docs_source_url(input)
    if input =~ /github.com/
      label = "GitHub"
    else
      label = "source"
    end
    "<a href='#{input}'>#{label}</a>"
  end
end

Liquid::Template.register_filter(DocsFilters)

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
octopress-3.0.0.rc.32 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.31 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.30 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.29 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.28 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.27 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.26 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.25 lib/octopress/docs/liquid_filters.rb
octopress-3.0.0.rc.24 lib/octopress/docs/liquid_filters.rb