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