Skip to content

Commit b5d20d3

Browse files
author
José Valim
committed
Merge pull request #1078 from alco/custom-doc-rev
Retrieve the most suitable revision for source links in the docs
2 parents 911eb23 + b082897 commit b5d20d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ docs: compile
9898
mkdir -p ebin
9999
rm -rf docs
100100
cp -R -f lib/*/ebin/*.beam ./ebin
101-
bin/elixir ../exdoc/bin/exdoc "Elixir" "$(VERSION)" -m Kernel -u "https://github.com/elixir-lang/elixir"
101+
bin/elixir ../exdoc/bin/exdoc "Elixir" "$(VERSION)" -m Kernel -u "https://github.com/elixir-lang/elixir" --source-ref "$(shell head="$$(git rev-parse HEAD)" tag="$$(git tag --points-at $$head | tail -1)" ; echo "$${tag:-$$head}\c")"
102102
rm -rf ebin
103103

104104
release_zip: compile

0 commit comments

Comments
 (0)