diff --git a/scripts/make-egg-index.scm b/scripts/make-egg-index.scm
index 055b987..5afb9d1 100644
a
|
b
|
|
61 | 61 | (let ((title (sprintf "Eggs Unlimited (release branch ~a)" *major-version*)) |
62 | 62 | (eggs (gather-egg-information dir))) |
63 | 63 | (sxml->html |
64 | | `((literal "<?xml version=\"1.0\" encoding=\"utf-8\"?>\n") |
65 | | (literal "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">") |
66 | | (html |
| 64 | `((literal "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Strict//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd\">") |
| 65 | (html (@ (xmlns "http://www.w3.org/1999/xhtml")) |
67 | 66 | ,(header title) |
68 | 67 | (body |
69 | | ,(titlebar title) |
70 | | ,(sidebar) |
| 68 | ,(menu) |
71 | 69 | ,(content (prelude title) |
72 | 70 | (emit-egg-information eggs)) |
73 | 71 | ,(trailer))))))) |
74 | 72 | |
75 | 73 | (define (wiki-link path desc) |
76 | | `(a (@ (href "http://chicken.wiki.br/" ,path)) |
77 | | ,desc)) |
78 | | |
79 | | (define (sidebar) |
80 | | `(div (@ (id "toc-links")) |
81 | | (div (@ (id "toc")) |
82 | | (p ,(wiki-link "" "Home") (br) |
83 | | ,(wiki-link "manual/index" "Manual") (br) |
84 | | ,(wiki-link "eggs" "Eggs") (br) |
85 | | ,(wiki-link "users" "Users") (br) |
86 | | )))) |
| 74 | `(a (@ (href "http://wiki.call-cc.org/" ,path)) ,desc)) |
| 75 | |
| 76 | (define (menu) |
| 77 | `(div (@ (id "menu")) |
| 78 | (ul (li ,(wiki-link "" "Home")) |
| 79 | (li (a (@ (href "http://code.call-cc.org")) "Download")) |
| 80 | (li ,(wiki-link "manual/index" "Manual")) |
| 81 | (li ,(wiki-link "eggs" "Eggs")) |
| 82 | (li (a (@ (href "http://chickadee.call-cc.org")) "API Browser")) |
| 83 | (li (a (@ (href "http://bugs.call-cc.org")) "Bugs")) |
| 84 | ))) |
87 | 85 | |
88 | 86 | (define (content . body) |
89 | | `(div (@ (id "content-box")) |
90 | | (div (@ (class "content")) |
91 | | ,body))) |
| 87 | `(div (@ (id "content")) |
| 88 | ,body)) |
92 | 89 | |
93 | 90 | (define (header title) |
94 | 91 | `(head |
… |
… |
|
96 | 93 | ;; ,+stylesheet+) |
97 | 94 | (link (@ (rel "stylesheet") |
98 | 95 | (type "text/css") |
99 | | (href "http://chicken.wiki.br/common-css"))) |
| 96 | (href "http://wiki.call-cc.org/chicken.css"))) |
100 | 97 | (title ,title))) |
101 | 98 | |
102 | | (define (titlebar title) |
103 | | `(div (@ (id "header")) |
104 | | (h1 (a (@ (href "http://chicken.wiki.br/eggs")) |
105 | | ,title)))) |
106 | | |
107 | 99 | (define (prelude title) |
108 | | `((p (img (@ |
109 | | (style "float: right;") |
110 | | (src "http://www.call-with-current-continuation.org/eggs/3/egg.jpg")))) |
| 100 | `((h2 "Eggs Unlimited (release branch 4)") |
111 | 101 | (p (b "Last updated: " ,(seconds->string (current-seconds)))) |
112 | 102 | (p "A library of extensions for the Chicken Scheme system.") |
113 | 103 | (h2 "Installation") |
… |
… |
|
129 | 119 | (p "For more information, enter") |
130 | 120 | (pre " chicken-install -help\n") |
131 | 121 | (p "If you would like to access the subversion repository, see the " |
132 | | (a (@ (href "http://chicken.wiki.br/eggs tutorial")) |
| 122 | (a (@ (href "http://wiki.call-cc.org/eggs tutorial")) |
133 | 123 | "Egg tutorial") ".") |
134 | 124 | (p "If you are looking for 3rd party libraries used by one of the extensions, " |
135 | 125 | "check out the CHICKEN " |
… |
… |
|
177 | 167 | (h3 (a (@ (href "#category-list")) |
178 | 168 | ,catname)) |
179 | 169 | (table |
180 | | (tr (th "Name") (th "Description") (th "License") (th "author") (th "maintainer") (th "version")) |
| 170 | (tr (th "Name") (th "Description") (th "License") (th "Author") (th "Maintainer") (th "Version")) |
181 | 171 | ,@eggs))))))) |
182 | 172 | +categories+)) |
183 | 173 | |
… |
… |
|
193 | 183 | (warning "extension has .meta entry of incorrect type and will not be listed" (car egg) p x) |
194 | 184 | (return '())))) |
195 | 185 | (d " ~a ~a" (car egg) (prop 'version "HEAD" any?)) |
196 | | `((tr (td (a (@ (href ,(sprintf "http://chicken.wiki.br/eggref/~a/~a" *major-version* (car egg)))) |
| 186 | `((tr (td (a (@ (href ,(sprintf "http://wiki.call-cc.org/eggref/~a/~a" *major-version* (car egg)))) |
197 | 187 | ,(symbol->string (car egg)))) |
198 | 188 | (td ,(prop 'synopsis "unknown" string?)) |
199 | 189 | (td ,(prop 'license "unknown" name?)) |
… |
… |
|
240 | 230 | +link-regexp+ |
241 | 231 | str |
242 | 232 | (lambda (name) ;; wiki username |
243 | | `(a (@ (href ,(string-append "http://chicken.wiki.br/users/" |
| 233 | `(a (@ (href ,(string-append "http://wiki.call-cc.org/users/" |
244 | 234 | (string-substitute " " "-" name 'global)))) |
245 | 235 | ,name)) |
246 | 236 | (lambda (x) ;; raw HTML chunk |