File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -176,7 +176,9 @@ clean_elixir:
176176
177177# ==> Documentation tasks
178178
179- SOURCE_REF = $(shell tag="$(call GIT_TAG) " revision="$(call GIT_REVISION) "; echo "$${tag:-$$revision}")
179+ SOURCE_REF = $(shell tag="$(call GIT_TAG) "; revision="$(call GIT_REVISION) "; \
180+ if echo "$$tag" | grep -Eq -- '-latest$$'; then tag=""; fi; \
181+ echo "$${tag:-$$revision}")
180182DOCS_COMPILE = CANONICAL=$(CANONICAL ) bin/elixir ../ex_doc/bin/ex_doc "$(1 ) " "$(VERSION ) " "lib/$(2 ) /ebin" --main "$(3 ) " --source-url "https://github.com/elixir-lang/elixir" --source-ref "$(call SOURCE_REF) " --logo lib/elixir/pages/images/logo.png --output doc/$(2 ) --canonical "https://hexdocs.pm/$(2 ) /$(CANONICAL ) " --homepage-url "https://elixir-lang.org/docs.html" $(4 )
181183DOCS_CONFIG = bin/elixir lib/elixir/scripts/docs_config.exs "$(1 ) "
182184
You can’t perform that action at this time.
0 commit comments