Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Copy static files using new static file support

  • Loading branch information...
commit c3794f61f5c1fbbb9d8a0793fe04ab47b12ba4fa 1 parent 22d8c8f
@lsegal authored
Showing with 2 additions and 4 deletions.
  1. +1 −3 app.rb
  2. +1 −1  init.rb
View
4 app.rb
@@ -54,9 +54,7 @@ def self.load_configuration
def self.copy_static_files
# Copy template files
puts ">> Copying static system files..."
- Commands::StaticFileCommand::STATIC_PATHS <<
- File.join(TEMPLATES_PATH, 'default', 'fulldoc', 'html')
- Commands::StaticFileCommand::STATIC_PATHS.each do |path|
+ YARD::Templates::Engine.template(:default, :fulldoc, :html).full_paths.each do |path|
%w(css js images).each do |ext|
srcdir, dstdir = File.join(path, ext), File.join('public', ext)
next unless File.directory?(srcdir)
View
2  init.rb
@@ -11,7 +11,7 @@
require 'yard-kramdown'
YARD::Server::Adapter.setup
-YARD::Templates::Engine.template_paths.push(File.dirname(__FILE__) + '/templates')
+YARD::Templates::Engine.register_template_path(File.dirname(__FILE__) + '/templates')
def __p(*extra)
file = extra.last == :file
Please sign in to comment.
Something went wrong with that request. Please try again.