source: project/release/4/chickadee/trunk/chickadee-config-nginx.scm @ 26104

Last change on this file since 26104 was 26104, checked in by Jim Ursetto, 10 years ago

chickadee 0.10.0: CSS columns, source reorg, responsive design, better cache busting

Move contents bar to end of HTML source
CSS3 column support for contents and TOC, width-dependent
Contents bar placement depends on page width
Use modernizr and respond.js
Upgrade jQuery to 1.4.4 and use native metadata
SHA1 fingerprint for static files in config-nginx
Browser rendering bugfixes
CSS improvements
Optional prettify-js highlighter

git dc6672c5af59ffa5d0717f3eac54c44bf77ae422

File size: 1.5 KB
Line 
1(use chickadee spiffy uri-common simple-sha1)
2(use (only chicken-doc-html syntax-highlighter colorize prettify-js))
3
4;; Helpers
5(define uri uri-reference)
6(define (fingerprint fn)
7  ;; alternative: (number->string (file-modification-time fn))
8  (substring (or (sha1sum fn) (error "file not found" fn))
9             0 8))
10(define cache-bust ;; Fingerprint FN (relative to cdoc) and return cache-busting URI.
11  (lambda (fn)
12    (let ((cdoc (uri->string (cdoc-uri))))
13      (uri (string-append cdoc "/" fn "?"
14                          (fingerprint (make-pathname (list (root-path) cdoc)
15                                                      fn)))))))
16
17(root-path "root")
18(server-port 8388)
19(max-connections 8)
20
21(access-log "logs/access.log")
22(error-log "logs/error.log")
23(debug-log (current-error-port))
24(ajax-log #f)   ;; Slow; not recommended for production.
25
26(cdoc-uri (uri "/cdoc"))
27(chickadee-uri (uri "/doc"))
28(incremental-search-uri (uri "/cdoc/ajax/prefix"))
29
30(chickadee-css-files (list (cache-bust "chickadee.css")))
31(chickadee-early-js-files (list (uri "/cdoc/modernizr.respond.93248.js")))
32(chickadee-js-files (list (uri "http://code.jquery.com/jquery-1.4.4.min.js")
33                          (cache-bust "chickadee-jquery.js")
34                          (cache-bust "prettify-bundle.js")))
35
36(maximum-match-results 250)
37(maximum-match-signatures 100)
38(incremental-search 15)
39(incremental-search-delay 50)
40(cache-nodes-for 600)
41(cache-static-content-for #t)
42
43(syntax-highlighter prettify-js)
44
45(last-modified (current-seconds))
Note: See TracBrowser for help on using the repository browser.