Commit Graph
133 Commits
Author SHA1 Message Date
наб 0b1d3fcaf9 Improve Application.get_env/2 docs for dependencies
Followup-for: #15095
Signed-off-by: José Valim <jose.valim@gmail.com>
2026-02-06 20:42:12 +01:00
Eksperimental 9ae79d1385 Format numbers with underscores to improve readability (#14735) 2025-08-30 19:25:48 +02:00
Eksperimental b5885a6f33 Add guards to functions in Application module (#14687) 2025-08-01 13:45:14 +02:00
Eksperimental 2a71415c65 Fix link to type in Application docs (#14688) 2025-08-01 06:53:01 +09:00
Dmitry Kleymenov 945c057bf9 Enum scan improvements (#14486) 2025-05-20 15:19:07 +02:00
Jonatan Männchen 980500551c Inline Licence Info & Copyright for non-test files (#14256) 2025-02-07 21:11:09 +01:00
José Valim ef7c11814f Require Erlang/OTP 26+ (#14045) 2024-12-10 15:38:02 +01:00
Mayel de Borniol c887a8ab2a Update doc link to anti-pattern (#13729) 2024-07-22 07:58:47 -03:00
José Valim bd99dcc6f8 Add warning around runtime modification of compile env 2024-07-01 11:59:29 +02:00
Theodor Fiedler bc5cf4c4db Consolidate spelling of life cycle (#13541) 2024-05-06 11:56:13 +02:00
Gonzalo 75ac733bb5 docs: minor wording and typo fixes (#13281) 2024-01-24 16:25:10 +01:00
Andrea Leopardi 01fd433990 Improve docs for Application.put_all_env/2 2023-12-12 11:14:09 +01:00
Wojtek Mach 7d04c40fc0 Update Application.ensure_all_started/2 docs (#13144) 2023-11-24 23:56:21 +08:00
José Valim 2f43c8cc47 Warn on map.field() and mod.function 2023-10-30 21:43:27 +01:00
José Valim 331e565c64 Add a link to Erlang application specification, closes #13042 2023-10-29 08:31:37 +01:00
José Valim 3b77086073 Define "nutrition facts" for "use SomeModule" (#12613)
One common concern about using Elixir libraries
is that "use SomeModule" does not make clear how
it impacts the caller. Most of the time those
changes are minor but it is impossible to know
without traversing the source code.

This pull request suggests defining a summary
alongside each module that succintly explains
the impact of using it.

This is documented as best practice in our guides
and we added the note to all of Elixir modules.
2023-05-29 09:33:21 +02:00
José Valim 1932c89e5a Do not deprecate type-based Application.start signatures 2023-05-21 14:48:23 +02:00
José Valim 9cebac5786 Allow applications to be started concurrently on Erlang/OTP 26+ 2023-04-13 14:07:42 +02:00
Andrea leopardi 9c5c6f1949 Replace more quotes with admonition blocks in docs 2023-03-05 07:46:57 -06:00
Andrea Leopardi 7d210def9f Use ex_doc admonition blocks more often (#12445) 2023-03-05 07:44:13 -06:00
José Valim a2d57cb48a expand_literal -> expand_literals 2022-10-07 11:57:12 +02:00
sabiwara 29bf449f3f Evaluate formating charlists as ~c sigils (#12064) 2022-08-10 06:47:00 +02:00
José Valim 658bceee63 Track dbg callback inside Mix projects 2022-07-16 20:48:16 +02:00
José Valim 98d7ed55c9 Use Macro.expand_literal/2 were possible 2022-07-11 09:09:54 +02:00
Eksperimental 9279000dc3 Correct use of "who" (#11925) 2022-06-16 08:21:24 +02:00
José Valim 54bfa6bc9c Add Application.compile_env/4 and Application.compile_env!/3 2022-06-15 21:13:38 +02:00
Michał DolataandAndrea Leopardi 284ccd17c4 Small fix in docs for Application.ensure_loaded/1 (#11895)
Co-authored-by: Andrea Leopardi <an.leopardi@gmail.com>
2022-06-02 12:30:12 +02:00
José Valim 94ee17f482 Improve docs for Application to mention new warning 2022-02-02 09:12:08 +01:00
José Valim 5f2fc08ce8 Normalize important notes 2021-12-10 11:37:14 +01:00
José Valim a559b5709b Track environment changes from compile_env 2021-12-10 09:49:47 +01:00
José Valim f78421c3a5 erlang.org -> www.erlang.org 2021-11-21 16:28:21 +01:00
Eksperimental 9ed60b73e9 Allow Application.compile_env* to accept attributes (#11383) 2021-11-11 22:04:20 +01:00
José Valim 293a1ae27b Deprecate features pending for v1.14 2021-11-09 18:34:01 +01:00
José Valim 693446b795 Handle optional_applications field in .app (#11301) 2021-10-06 22:18:59 +02:00
José Valim 8fd2c2e7e9 Improve config docs 2021-08-29 15:22:40 +02:00
José Valim f9883d3f85 Warn if Application.compile_env is called without a require 2021-08-22 17:11:41 +02:00
José Valim b70b0b5a0e Do not add compile time deps on args to Application.compile_env/2, closes #11052 2021-06-08 08:56:10 +02:00
Nick Janetakis a9ac4741d7 Improve docs for using Application.get_env/3 (#10903) 2021-04-14 15:31:34 +02:00
José Valim 176a693ef8 Require Erlang/OTP 22+ 2021-03-29 20:15:39 +02:00
Eksperimental 85cda56a4a Update erlang.org links (#10737)
Consistently use https://erlang.org
See also ExDoc PR: https://github.com/elixir-lang/ex_doc/pull/1335
2021-02-18 13:18:43 +01:00
Eksperimental e82b917a73 Migrate Erlang module URLs to Erlang module links (#10736) 2021-02-18 06:43:13 +01:00
José Valim e657c05200 Add TODOs 2020-11-01 18:49:56 +01:00
José Valim 51b0c43df5 Update fetch_env application feedback, closes #10225 2020-07-27 09:50:59 +02:00
José Valim 729e5dc81c Add config_env() and allow imports to be disabled in config files
Also used new functionality throughout Mix, including releases,
which will now prefer to load a config/runtime.exs file over
config/releases.exs.
2020-07-06 21:09:02 +02:00
José Valim 0b6421a7cd Update TODOs 2020-06-30 15:51:33 +02:00
Ioannis Pinakoulakis 43cc29c5ef Fixes typos in comments and documentation (#10117) 2020-06-20 15:19:57 +02:00
indi 37aa8790a6 Fix a typo in the Application docs (#9971) 2020-04-26 12:55:33 +02:00
Andrea Leopardi 8c0de060bf Fix formatting in Application.compile_env!/3 docs 2020-04-12 14:23:02 +02:00
Wojtek Mach 62530d89fd Deprecate non-atom keys on put_env, get_env, fetch_env*, delete_env (#9915)
Typespecs already required an atom key but it was never enforced by
code. We're doing this because we eventually would like to support
passing a _path_ like:

    Application.get_env(:myapp, [:key, :foo, :bar])

and this way we will be consistent with recently added
`Application.compile_env/3`.
2020-03-28 13:02:23 +01:00
Wojtek Mach e922211913 Use new ExDoc extras auto-links (#9912) 2020-03-27 00:05:48 +01:00