forked from racket/racket-lang-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
52 lines (35 loc) · 1.58 KB
/
README
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
50
51
52
Sources:
========
* www: actual content of main site.
* blog: actual content of blog.
* download: content of download site (only installer pages and such)
* */all.rkt: files that just require all the necessary modules to build
the whole site or sub-sites
* */resources.rkt: files that define the resources for a site (icon,
css, logo)
* minis: smaller one-source-file sites
* stubs: template "sites" that are intended to be hooked into other
systems to get the racket look.
To build:
=========
* Run "./all.rkt" to build all pages.
* Run any "*.rkt" to build a page and things that it references.
(Use `-h' as usual.)
* You can choose `-w' (the default) for web mode, `-l' for local using
"file://" references, or `-r` for' local mode using relative
references. Normally, you'll want to use `-l' for testing, and then
use `-w' for deployment.
* Use `-o <dir>' to specify a directory where the built contents is
placed, otherwise the content will be placed in the current
directory. As a safety measure, the target directory must not
overlap with any installed directory. (Use `-f' in scripts to avoid
answering the question about deleting existing files.)
* Set the $GIT_DIR environment variable to point to the ".git"
directory of a Racket repository if you want to extract release
information from a repository other than the enclosing one.
To upload:
==========
* You'll need credentials to upload to S3, and those credentials
should be in "~/.aws-keys".
* You'll need the "s3-sync" Racket package installed.
* Run the "sync.rkt" script: racket -l racket-lang-org/sync