nanoc update
parent
d3644e79eb
commit
5b9e2ab428
2
Rakefile
2
Rakefile
|
@ -1,3 +1,3 @@
|
|||
require 'nanoc3/tasks'
|
||||
require 'nanoc/tasks'
|
||||
|
||||
Dir['tasks/**/*.rake'].sort.each { |rakefile| load rakefile}
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
# breadcrumb navigation
|
||||
include Nanoc3::Helpers::Breadcrumbs
|
||||
include Nanoc::Helpers::Breadcrumbs
|
||||
|
||||
def breadcrumbs
|
||||
breadcrumbs_for_identifier(@item.identifier).map do |crumb|
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
# Helper functions for site-building.
|
||||
|
||||
include Nanoc3::Helpers::Rendering
|
||||
include Nanoc::Helpers::Rendering
|
||||
|
||||
class Nanoc3::Item
|
||||
class Nanoc::Item
|
||||
def add_content content
|
||||
@raw_content += "\n\n#{content}"
|
||||
end
|
||||
|
@ -32,7 +32,7 @@ class Nanoc3::Item
|
|||
end
|
||||
end
|
||||
|
||||
class Nanoc3::Site
|
||||
class Nanoc::Site
|
||||
# only articles that actually get printed
|
||||
attr_reader :printed_items
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@ def episteme_cat status
|
|||
"[#{episteme status}][Epistemic State]{:.episteme}"
|
||||
end
|
||||
|
||||
class Nanoc3::Item
|
||||
class Nanoc::Item
|
||||
def epistemic?
|
||||
!!self[:episteme]
|
||||
end
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
require 'org-ruby'
|
||||
|
||||
class OrgFilter < Nanoc3::Filter
|
||||
class OrgFilter < Nanoc::Filter
|
||||
identifier :org
|
||||
|
||||
def run(content, params={})
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
require 'tidy_ffi'
|
||||
|
||||
class TidyFilter < Nanoc3::Filter
|
||||
class TidyFilter < Nanoc::Filter
|
||||
identifier :tidy
|
||||
def run(content, params={})
|
||||
TidyFFI::Tidy.new(content,
|
||||
|
|
Loading…
Reference in New Issue