lib/octopress-ink.rb in octopress-ink-1.0.0.rc.22 vs lib/octopress-ink.rb in octopress-ink-1.0.0.rc.23
- old
+ new
@@ -3,11 +3,10 @@
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'
@@ -28,10 +27,12 @@
if defined? Octopress::Command
require 'octopress-ink/commands/helpers'
require 'octopress-ink/commands'
end
+ @load_plugin_assets = true
+
def self.version
version = "Jekyll v#{Jekyll::VERSION}, "
if defined? Octopress::VERSION
version << "Octopress v#{Octopress::VERSION} "
end
@@ -49,10 +50,18 @@
}
ink_payload
end
+ def self.enabled?
+ @load_plugin_assets
+ end
+
+ def self.load_plugin_assets=(setting)
+ @load_plguin_assets = setting
+ end
+
# Register a new plugin
#
# plugin - A subclass of Plugin
#
def self.register_plugin(plugin)
@@ -215,7 +224,6 @@
name: "Octopress Ink",
description: "A framework for creating Jekyll quality themes and plugins",
slug: "ink",
path: File.expand_path(File.join(File.dirname(__FILE__), "../")),
source_url: "https://github.com/octopress/ink",
- base_url: "docs/ink"
})