-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
41 lines (36 loc) · 1.21 KB
/
Makefile
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
MANUAL_FONTS = "$(shell racket -e '(display (collection-file-path "manual-fonts.css" "scribble"))')"
all: docs
docs:
racket run.rkt \
++style $(MANUAL_FONTS) \
++style ./node_modules/codemirror/lib/codemirror.css \
++extra ./node_modules/codemirror/lib/codemirror.js \
++extra ./node_modules/codemirror/addon/runmode/runmode.js \
\
++extra ./node_modules/pyret-codemirror-mode/mode/pyret.js \
++style ./node_modules/pyret-codemirror-mode/css/pyret.css \
++extra src/hilite.js \
++extra src/Pyret-Tutorial/airplane-small.png \
++extra src/trove/brush.svg \
++extra src/trove/paint.svg \
++extra src/trove/checkers.svg \
++extra src/search.js \
\
++style src/styles.css \
--prefix src/myprefix.html \
\
--dest build/ \
--dest-name docs \
++arg "$(VERSION)" \
--htmls-search src/index.scrbl
mkdir -p build/docs/search
cp src/search.html build/docs/search/index.html
patch build/docs/scribble-common.js src/scribble-common.patch
release-docs: docs
scp -r build/docs/* $(DOCS_TARGET)/$(VERSION)/
chmod -R a+rx $(DOCS_TARGET)/$(VERSION)/
cd $(DOCS_TARGET) && unlink latest && ln -s $(VERSION) latest
install:
npm install
clean:
rm -rf build/docs