Sha256: 33dfe8bed056491677e25446bc5d3db397ca6effd5999ea8ee6065c7f7665a9b
Contents?: true
Size: 669 Bytes
Versions: 3
Compression:
Stored size: 669 Bytes
Contents
module YARD module Server module Commands # Serves static content when no other router matches a request class StaticFileCommand < LibraryCommand include StaticFileHelpers DefaultMimeTypes['js'] = 'text/javascript' # Defines the paths used to search for static assets. To define an # extra path, use {YARD::Server.register_static_path} rather than # modifying this constant directly. Also note that files in the # document root will always take precedence over these paths. STATIC_PATHS = [] def run static_template_file? || not_found end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
yard-0.9.5 | lib/yard/server/commands/static_file_command.rb |
yard-0.9.4 | lib/yard/server/commands/static_file_command.rb |
yard-0.9.3 | lib/yard/server/commands/static_file_command.rb |