Skip to content

Commit 90d1e47

Browse files
committed
make doc improvements
1 parent 4144024 commit 90d1e47

File tree

2 files changed

+18
-16
lines changed

2 files changed

+18
-16
lines changed

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ tags
55
*.pyc
66
*.patch
77
doc/api.xml
8-
doc/api/*.html
9-
doc/changelog.html
108
tools/nodejs.pc
119
test/fixtures/hello.txt
1210
tmp/

Makefile

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,28 @@ apidoc_dirs = build/doc build/doc/api/ build/doc/api/assets
5555

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

58-
doc: build/default/node $(apidoc_dirs) $(apiassets) $(apidocs) build/doc/changelog.html
58+
website_files = \
59+
build/doc/index.html \
60+
build/doc/cla.html \
61+
build/doc/jquery.js \
62+
build/doc/sh_main.js \
63+
build/doc/sh_javascript.min.js \
64+
build/doc/sh_vim-dark.css \
65+
build/doc/logo.png \
66+
build/doc/sponsored.png \
67+
build/doc/pipe.css
68+
69+
doc: build/default/node $(apidoc_dirs) $(website_files) $(apiassets) $(apidocs) build/doc/changelog.html
5970

6071
$(apidoc_dirs):
6172
mkdir -p $@
6273

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

77+
build/doc/%: doc/%
78+
cp $< $@
79+
6680
build/doc/api/%.html: doc/api/%.markdown build/default/node $(apidoc_dirs) $(apiassets)
6781
build/default/node tools/doctool/doctool.js doc/template.html $< > $@
6882

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

7589

76-
website_files = \
77-
doc/index.html \
78-
doc/cla.html \
79-
doc/jquery.js \
80-
doc/sh_main.js \
81-
doc/sh_javascript.min.js \
82-
doc/sh_vim-dark.css \
83-
doc/logo.png \
84-
doc/sponsored.png \
85-
doc/pipe.css
90+
build/doc/%:
8691

8792
website-upload: doc
88-
scp -r build/doc/* $(web_root)
89-
scp $(website_files) $(web_root)
93+
scp -r build/* $(web_root)
9094

9195
docopen: build/doc/api/all.html
9296
-google-chrome build/doc/api/all.html
@@ -128,4 +132,4 @@ bench-idle:
128132
./node benchmark/idle_clients.js &
129133

130134

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

0 commit comments

Comments
 (0)