|
1 | 1 | # frozen_string_literal: true
|
2 |
| -require_relative '../rdoc' |
| 2 | +require_relative '../../rdoc' |
3 | 3 | require 'erb'
|
4 | 4 | require 'time'
|
5 | 5 | require 'json'
|
|
24 | 24 | #
|
25 | 25 | # server = WEBrick::HTTPServer.new Port: 8000
|
26 | 26 | #
|
27 |
| -# server.mount '/', RDoc::Servlet |
| 27 | +# server.mount '/', RDoc::RI::Servlet |
28 | 28 | #
|
29 | 29 | # If you want to mount the servlet some other place than the root, provide the
|
30 | 30 | # base path when mounting:
|
31 | 31 | #
|
32 |
| -# server.mount '/rdoc', RDoc::Servlet, '/rdoc' |
| 32 | +# server.mount '/rdoc', RDoc::RI::Servlet, '/rdoc' |
33 | 33 |
|
34 |
| -class RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet |
| 34 | +class RDoc::RI::Servlet < WEBrick::HTTPServlet::AbstractServlet |
35 | 35 |
|
36 | 36 | @server_stores = Hash.new { |hash, server| hash[server] = {} }
|
37 | 37 | @cache = Hash.new { |hash, store| hash[store] = {} }
|
@@ -146,7 +146,7 @@ def do_GET req, res
|
146 | 146 | # Fills in +res+ with the class, module or page for +req+ from +store+.
|
147 | 147 | #
|
148 | 148 | # +path+ is relative to the mount_path and is used to determine the class,
|
149 |
| - # module or page name (/RDoc/Servlet.html becomes RDoc::Servlet). |
| 149 | + # module or page name (/RDoc/RI.html becomes RDoc::RI). |
150 | 150 | # +generator+ is used to create the page.
|
151 | 151 |
|
152 | 152 | def documentation_page store, generator, path, req, res
|
|
0 commit comments