Module: YARD::Server
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
.
Constant Summary
-
CR =
Internal use only
"\x0d"
-
CRLF =
Internal use only
"\x0d\x0a"
-
LF =
Internal use only
"\x0a"
Class Method Summary
-
.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.
# 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