lib/octopress-ink.rb in octopress-ink-1.0.0.rc.17 vs lib/octopress-ink.rb in octopress-ink-1.0.0.rc.18
- old
+ new
@@ -3,13 +3,13 @@
require 'uglifier'
require 'digest/md5'
require 'octopress'
require 'octopress-hooks'
require 'octopress-filters'
+require 'octopress-docs'
require 'octopress-ink/version'
-
require 'octopress-ink/configuration'
require 'octopress-ink/jekyll/hooks'
module Octopress
def self.site(options={})
@@ -65,14 +65,10 @@
'octopress' => {
'version' => version
}
}
- if Octopress.config['docs_mode']
- ink_payload['doc_pages'] = Ink::Plugins.doc_pages
- end
-
ink_payload
end
# Register a new plugin
#
@@ -88,10 +84,14 @@
#
def self.add_plugin(options={})
Plugins.register_plugin Plugin, options
end
+ def self.add_docs(options={})
+ Docs.register_docs options
+ end
+
def self.config
@config ||= Configuration.config
end
def self.plugins
@@ -227,10 +227,12 @@
end
end
Liquid::Template.register_tag('css_asset_tag', Octopress::Ink::Tags::StylesheetTag)
Liquid::Template.register_tag('js_asset_tag', Octopress::Ink::Tags::JavascriptTag)
-Liquid::Template.register_tag('doc_url', Octopress::Ink::Tags::DocUrlTag)
-require 'octopress-ink/plugins/ink'
-
-Octopress::Ink.register_plugin(Octopress::Ink::InkPlugin)
+Octopress::Docs.add({
+ name: "Octopress Ink",
+ slug: "ink",
+ dir: File.expand_path(File.join(File.dirname(__FILE__), "../")),
+ base_url: "docs/ink"
+})