Skip to content

Commit

Permalink
fix yard doc reloading, render only one documentation (:single_librar…
Browse files Browse the repository at this point in the history
…y option)
  • Loading branch information
Petr Chalupa committed Jan 16, 2013
1 parent 088e2b7 commit eceab31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/views/common/_footer.haml
Expand Up @@ -4,4 +4,4 @@
- else
#{_("%{app_name} Version: %{version}") % {:app_name => release_name, :version => Katello.config.katello_version}}
- if Katello.config.embed_yard_documentation
#{link_to 'YARD documentation', 'yard/docs/katello/frames'}
#{link_to 'YARD documentation', 'yard/docs/file/README.md'}
6 changes: 4 additions & 2 deletions config.ru
Expand Up @@ -18,8 +18,10 @@ if Katello.config.embed_yard_documentation
libraries = { 'katello' => [YARD::Server::LibraryVersion.new('katello', nil, "#{Rails.root}/.yardoc")] }
use YARD::Server::RackMiddleware,
:libraries => libraries,
:options => { :router => prefixed_router },
:server_options => { :incremental => true }
:options => { :router => prefixed_router, :incremental => true, :single_library => true },
:server_options => { }

YARD::Logger.instance.level = 0
end

map Katello.config.url_prefix do
Expand Down

0 comments on commit eceab31

Please sign in to comment.