Skip to content

Commit

Permalink
make doc improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ry committed Nov 16, 2010
1 parent 4144024 commit 90d1e47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 16 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ tags
*.pyc
*.patch
doc/api.xml
doc/api/*.html
doc/changelog.html
tools/nodejs.pc
test/fixtures/hello.txt
tmp/
Expand Down
32 changes: 18 additions & 14 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -55,14 +55,28 @@ apidoc_dirs = build/doc build/doc/api/ build/doc/api/assets

apiassets = $(subst api_assets,api/assets,$(addprefix build/,$(wildcard doc/api_assets/*)))

doc: build/default/node $(apidoc_dirs) $(apiassets) $(apidocs) build/doc/changelog.html
website_files = \
build/doc/index.html \
build/doc/cla.html \
build/doc/jquery.js \
build/doc/sh_main.js \
build/doc/sh_javascript.min.js \
build/doc/sh_vim-dark.css \
build/doc/logo.png \
build/doc/sponsored.png \
build/doc/pipe.css

doc: build/default/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) build/doc/changelog.html

$(apidoc_dirs):
mkdir -p $@

build/doc/api/assets/%: doc/api_assets/% build/doc/api/assets/
cp $< $@

build/doc/%: doc/%
cp $< $@

build/doc/api/%.html: doc/api/%.markdown build/default/node $(apidoc_dirs) $(apiassets)
build/default/node tools/doctool/doctool.js doc/template.html $< > $@

Expand All @@ -73,20 +87,10 @@ build/doc/changelog.html: ChangeLog build/default/node build/doc/ $(apidoc_dirs)
@echo $(apiassets)


website_files = \
doc/index.html \
doc/cla.html \
doc/jquery.js \
doc/sh_main.js \
doc/sh_javascript.min.js \
doc/sh_vim-dark.css \
doc/logo.png \
doc/sponsored.png \
doc/pipe.css
build/doc/%:

website-upload: doc
scp -r build/doc/* $(web_root)
scp $(website_files) $(web_root)
scp -r build/* $(web_root)

docopen: build/doc/api/all.html
-google-chrome build/doc/api/all.html
Expand Down Expand Up @@ -128,4 +132,4 @@ bench-idle:
./node benchmark/idle_clients.js &


.PHONY: bench clean docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload
.PHONY: bench clean docopen docclean doc dist distclean check uninstall install all program staticlib dynamiclib test test-all website-upload

0 comments on commit 90d1e47

Please sign in to comment.