diff options
author | Wojtek Mach <wojtekmach@users.noreply.github.com> | 2021-04-04 08:35:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-04 08:35:30 +0200 |
commit | 8f8822535af85860fb57e616e81e11f280d31433 (patch) | |
tree | e515ecc309f2de6a82bdba609ff6acd1b9992a94 /Makefile | |
parent | 784b881b7670e82a9999ded0942dc8cb531b63eb (diff) | |
download | elixir-8f8822535af85860fb57e616e81e11f280d31433.tar.gz |
Use docs canonical version in all built-in apps (#10872)
Before:
https://hexdocs.pm/elixir/1.12.0-rc.0/changelog.html contains links like:
- [`Mix.install/2`](https://hexdocs.pm/mix/Mix.html#install/2)
which currently 404.
After:
https://hexdocs.pm/elixir/1.12.0-rc.0/changelog.html would contain:
- [`Mix.install/2`](https://hexdocs.pm/mix/1.12/Mix.html#install/2)
See demo: http://wojtekmach.pl/docs/elixir/1.12/elixir/changelog.html
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -180,7 +180,7 @@ clean_residual_files: LOGO_PATH = $(shell test -f ../docs/logo.png && echo "--logo ../docs/logo.png") SOURCE_REF = $(shell tag="$(call GIT_TAG)" revision="$(call GIT_REVISION)"; echo "$${tag:-$$revision}") DOCS_FORMAT = html -COMPILE_DOCS = 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)" $(call LOGO_PATH) --output doc/$(2) --canonical "https://hexdocs.pm/$(2)/$(CANONICAL)" --homepage-url "https://elixir-lang.org/docs.html" --formatter "$(DOCS_FORMAT)" $(4) +COMPILE_DOCS = 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)" $(call LOGO_PATH) --output doc/$(2) --canonical "https://hexdocs.pm/$(2)/$(CANONICAL)" --homepage-url "https://elixir-lang.org/docs.html" --formatter "$(DOCS_FORMAT)" $(4) docs: compile ../ex_doc/bin/ex_doc docs_elixir docs_eex docs_mix docs_iex docs_ex_unit docs_logger @@ -192,27 +192,27 @@ docs_elixir: compile ../ex_doc/bin/ex_doc docs_eex: compile ../ex_doc/bin/ex_doc @ echo "==> ex_doc (eex)" $(Q) rm -rf doc/eex - $(call COMPILE_DOCS,EEx,eex,EEx) + $(call COMPILE_DOCS,EEx,eex,EEx,--config "lib/mix/docs.exs") docs_mix: compile ../ex_doc/bin/ex_doc @ echo "==> ex_doc (mix)" $(Q) rm -rf doc/mix - $(call COMPILE_DOCS,Mix,mix,Mix) + $(call COMPILE_DOCS,Mix,mix,Mix,--config "lib/mix/docs.exs") docs_iex: compile ../ex_doc/bin/ex_doc @ echo "==> ex_doc (iex)" $(Q) rm -rf doc/iex - $(call COMPILE_DOCS,IEx,iex,IEx) + $(call COMPILE_DOCS,IEx,iex,IEx,--config "lib/mix/docs.exs") docs_ex_unit: compile ../ex_doc/bin/ex_doc @ echo "==> ex_doc (ex_unit)" $(Q) rm -rf doc/ex_unit - $(call COMPILE_DOCS,ExUnit,ex_unit,ExUnit) + $(call COMPILE_DOCS,ExUnit,ex_unit,ExUnit,--config "lib/mix/docs.exs") docs_logger: compile ../ex_doc/bin/ex_doc @ echo "==> ex_doc (logger)" $(Q) rm -rf doc/logger - $(call COMPILE_DOCS,Logger,logger,Logger) + $(call COMPILE_DOCS,Logger,logger,Logger,--config "lib/mix/docs.exs") ../ex_doc/bin/ex_doc: @ echo "ex_doc is not found in ../ex_doc as expected. See README for more information." |