lib/octopress-ink/plugins/ink.rb in octopress-ink-1.0.0.alpha.40 vs lib/octopress-ink/plugins/ink.rb in octopress-ink-1.0.0.alpha.41
- old
+ new
@@ -1,17 +1,25 @@
class Ink < Octopress::Ink::Plugin
def configuration
{
name: "Octopress Ink",
slug: "ink",
- assets_path: File.expand_path(File.join(File.dirname(__FILE__), '../../../assets')),
+ assets_path: Octopress::Ink.gem_dir('assets'),
version: Octopress::Ink::VERSION,
description: "Octopress Ink is a plugin framework for Jekyll",
website: "http://octopress.org/docs/ink"
}
end
def docs_base_path
'docs/ink'
+ end
+
+ def info(options)
+ if options['docs']
+ super
+ else
+ ''
+ end
end
end