Skip to content

Commit 9dcc0e1

Browse files
author
José Valim
committed
Support canonical URLs
Signed-off-by: José Valim <[email protected]>
1 parent e4e5481 commit 9dcc0e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
REBAR ?= "$(CURDIR)/rebar"
22
PREFIX ?= /usr/local
33
DOCS := v1.2
4+
CANONICAL := stable
45
ELIXIRC := bin/elixirc --verbose --ignore-module-conflict
56
ERLC := erlc -I lib/elixir/include
67
ERL := erl -I lib/elixir/include -noshell -pa lib/elixir/ebin
@@ -128,7 +129,7 @@ clean_exbeam:
128129

129130
LOGO_PATH = $(shell test -f ../docs/logo.png && echo "--logo ../docs/logo.png")
130131
SOURCE_REF = $(shell head="$$(git rev-parse HEAD)" tag="$$(git tag --points-at $$head | tail -1)" ; echo "$${tag:-$$head}\c")
131-
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)" $(call LOGO_PATH) -o doc/$(2) -p http://elixir-lang.org/docs.html $(4)
132+
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 "v$(VERSION)" $(call LOGO_PATH) -o doc/$(2) -a http://elixir-lang.org/docs/$(CANONICAL)/$(2)/ -p http://elixir-lang.org/docs.html $(4)
132133

133134
docs: compile ../ex_doc/bin/ex_doc docs_elixir docs_eex docs_mix docs_iex docs_ex_unit docs_logger
134135

0 commit comments

Comments
 (0)