Skip to content

Commit d969d42

Browse files
author
José Valim
committed
Compile docs to doc/
Signed-off-by: José Valim <[email protected]>
1 parent 17c4c4d commit d969d42

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/.eunit
22
/.release
3-
/docs
3+
/doc
44
/ebin
55
/lib/*/ebin/*
66
/lib/*/tmp

Makefile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,10 @@ clean_exbeam:
126126
#==> Release tasks
127127

128128
SOURCE_REF = $(shell head="$$(git rev-parse HEAD)" tag="$$(git tag --points-at $$head | tail -1)" ; echo "$${tag:-$$head}\c")
129-
COMPILE_DOCS = bin/elixir ../ex_doc/bin/ex_doc "$(1)" "$(VERSION)" "lib/$(2)/ebin" -m "$(3)" -u "https://github.com/elixir-lang/elixir" --source-ref "$(call SOURCE_REF)" -o docs/$(2) -p http://elixir-lang.org/docs.html
129+
COMPILE_DOCS = bin/elixir ../ex_doc/bin/ex_doc "$(1)" "$(VERSION)" "lib/$(2)/ebin" -m "$(3)" -u "https://github.com/elixir-lang/elixir" --source-ref "$(call SOURCE_REF)" -o doc/$(2) -p http://elixir-lang.org/docs.html
130130

131131
docs: compile ../ex_doc/bin/ex_doc
132-
$(Q) rm -rf docs
132+
$(Q) rm -rf doc
133133
$(call COMPILE_DOCS,Elixir,elixir,Kernel)
134134
$(call COMPILE_DOCS,EEx,eex,EEx)
135135
$(call COMPILE_DOCS,Mix,mix,Mix)
@@ -146,9 +146,8 @@ release_zip: compile
146146
zip -9 -r v$(VERSION).zip bin CHANGELOG.md LEGAL lib/*/ebin LICENSE Makefile README.md VERSION
147147

148148
release_docs: docs
149-
cd ../docs
150-
rm -rf ../docs/$(DOCS)
151-
mv docs ../docs/$(DOCS)
149+
rm -rf ../docs/$(DOCS)/*/
150+
mv doc/* ../docs/$(DOCS)
152151

153152
# This task requires aws-cli to be installed and set up for access to s3.hex.pm
154153
# See: http://docs.aws.amazon.com/cli/latest/userguide/cli-chap-getting-set-up.html

0 commit comments

Comments
 (0)