-
Notifications
You must be signed in to change notification settings - Fork 95
Expand file tree
/
Copy pathindex.cgi
More file actions
executable file
·49 lines (47 loc) · 1.82 KB
/
index.cgi
File metadata and controls
executable file
·49 lines (47 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/usr/bin/env ruby
PAGETITLE = "Apache Whimsy Code Documentation" # Wvisible:docs
$LOAD_PATH.unshift '/srv/whimsy/lib'
require 'json'
require 'whimsy/asf'
require 'wunderbar'
require 'wunderbar/bootstrap'
_html do
_body? do
_whimsy_body(
title: PAGETITLE,
subtitle: 'About Whimsy Documentation',
relatedtitle: 'More Useful Links',
related: {
"/committers/tools" => "Listing of All Whimsy Tools",
"https://github.com/rubys/wunderbar/" => "Wunderbar Module Documentation",
"https://github.com/apache/whimsy/blob/master/www#{ENV['SCRIPT_NAME']}" => "See This Source Code"
},
helpblock: -> {
_p do
_ 'This is the homepage for the code and API documentation for the Apache Whimsy project. '
_a 'Read the mailing list', href: 'https://lists.apache.org/[email protected]'
_ ' or '
_a 'submit a bug on Whimsy.', href: 'https://lists.apache.org/[email protected]'
end
}
) do
dev = {
'https://github.com/apache/whimsy/blob/master/DEVELOPMENT.md' => "Developer Overview / How-To",
'https://github.com/apache/whimsy/blob/master/CONFIGURE.md' => "How To Configure Whimsy",
'https://github.com/apache/whimsy/blob/master/DEPLOYMENT.md' => "Deploying Whimsy On Server",
'https://github.com/apache/whimsy/blob/master/MACOS.md' => "macOS Local Setup",
'https://github.com/apache/whimsy/blob/master/README.md' => "Whimsy Intro README",
'/docs/api/' => "whimsy/asf and ASF:: module API docs",
"https://github.com/rubys/wunderbar/" => "Wunderbar Module Docs"
}
_h2 "Developer Documentation"
_ul do
dev.each do |url, desc|
_li do
_a desc, href: url
end
end
end
end
end
end