Module: YARD::Server
- Defined in:
- lib/yard/autoload.rb,
lib/yard/server.rb,
lib/yard/server/router.rb,
lib/yard/server/adapter.rb,
lib/yard/server/http_utils.rb,
lib/yard/server/rack_adapter.rb,
lib/yard/server/commands/base.rb,
lib/yard/server/static_caching.rb,
lib/yard/server/library_version.rb,
lib/yard/server/webrick_adapter.rb,
lib/yard/server/doc_server_helper.rb,
lib/yard/server/commands/list_command.rb,
lib/yard/server/doc_server_serializer.rb,
lib/yard/server/commands/frames_command.rb,
lib/yard/server/commands/search_command.rb,
lib/yard/server/commands/library_command.rb,
lib/yard/server/commands/static_file_command.rb,
lib/yard/server/commands/static_file_helpers.rb,
lib/yard/server/commands/display_file_command.rb,
lib/yard/server/commands/root_request_command.rb,
lib/yard/server/commands/library_index_command.rb,
lib/yard/server/commands/display_object_command.rb
Overview
Namespace for classes and modules that handle serving documentation over HTTP
Implementing a Custom Server
To customize the YARD server, see the Adapter and Router classes.
Rack Middleware
If you want to use the YARD server as a Rack middleware, see the documentation in RackMiddleware.
Defined Under Namespace
Modules: Commands, DocServerHelper, HTTPUtils, StaticCaching Classes: Adapter, DocServerSerializer, FinishRequest, LibraryNotPreparedError, LibraryVersion, NotFoundError, RackAdapter, RackMiddleware, Router, WebrickAdapter, WebrickServlet
Constant Summary collapse
- CR =
:nodoc:
"\x0d"
- LF =
:nodoc:
"\x0a"
- CRLF =
:nodoc:
"\x0d\x0a"
Class Method Summary collapse
-
.register_static_path(path) ⇒ void
Registers a static path to be used in static asset lookup.
Class Method Details
.register_static_path(path) ⇒ void
This method returns an undefined value.
Registers a static path to be used in static asset lookup.
8 9 10 11 |
# File 'lib/yard/server.rb', line 8 def self.register_static_path(path) static_paths = Commands::StaticFileCommand::STATIC_PATHS static_paths.push(path) unless static_paths.include?(path) end |