Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 39 lines (28 sloc) 0.817 kB
46ef9a8 @nex3 Change the name to "Marmalade".
authored
1 TITLE="Marmalade Documentation"
d3340c6 @nex3 Add a makefile for building docs.
authored
2
948b7d3 @nex3 Have the Makefile compile the README as well.
authored
3 default: doc
4
d3340c6 @nex3 Add a makefile for building docs.
authored
5 clean:
1082aaa @nex3 Add the manfiles to the NPM linked package.
authored
6 rm -rf man README.html
948b7d3 @nex3 Have the Makefile compile the README as well.
authored
7
ec21199 @nex3 Use the Ruby ronn.
authored
8 # This only works with the Ruby ronn at time of writing, which is really fine
9 # because the JS one is pretty bare-bones.
10 RONN=ronn --pipe
d3340c6 @nex3 Add a makefile for building docs.
authored
11
c927cdf @nex3 Clean up Makefile.
authored
12 CODE=$(shell find lib/ -name '*.js')
d3340c6 @nex3 Add a makefile for building docs.
authored
13
cde80e0 @nex3 Cleanup makefile.
authored
14 man/code.html: ${CODE}
948b7d3 @nex3 Have the Makefile compile the README as well.
authored
15 mkdir -p html
d3340c6 @nex3 Add a makefile for building docs.
authored
16 dox --title ${TITLE} $^ > $@
17
d97a4cc @nex3 Get stuff basically working with Node 0.6.
authored
18 README.html: man/man7/marmalade.7
fd044f5 @nex3 Fix doc generation.
authored
19 ln -sf $^.html $@
948b7d3 @nex3 Have the Makefile compile the README as well.
authored
20
d97a4cc @nex3 Get stuff basically working with Node 0.6.
authored
21 man/man1/%: doc/%.md
22 mkdir -p `dirname $@`
ec21199 @nex3 Use the Ruby ronn.
authored
23 ${RONN} -r $^ > $@
1082aaa @nex3 Add the manfiles to the NPM linked package.
authored
24 ${RONN} -5 $^ > $@.html
8dda596 @nex3 Convert documentation to ronn style, generate manpages.
authored
25
d97a4cc @nex3 Get stuff basically working with Node 0.6.
authored
26 man/man5/%: doc/%.md
27 mkdir -p `dirname $@`
28 ${RONN} -r $^ > $@
29 ${RONN} -5 $^ > $@.html
30
31 man/man7/%: doc/%.md
32 mkdir -p `dirname $@`
33 ${RONN} -r $^ > $@
34 ${RONN} -5 $^ > $@.html
35
36 doc: README.html man/code.html man/man7/marmalade.7 man/man1/marmalade.1 man/man7/api.7 man/man5/package.5
c6191be @nex3 Add docs pages.
authored
37 rm -rf lib/public/doc-files
38 cp -r man lib/public/doc-files
Something went wrong with that request. Please try again.