Commit Graph
144 Commits
Author SHA1 Message Date
Roman Smirnov 4bdc4e4050 Fix parsing Markdown links for h function (fix #8629) (#8641) 2019-01-16 22:39:14 +01:00
Gustavo Saiani c6c788f1e1 Add verb to IO.ANSI.format/2 doc (#8586)
[CI skip]
2019-01-02 13:42:01 +01:00
Eksperimental ca1bc6c3da IO.ANSI.Docs: Make regex in escape_underlines_in_link/1 handle all schemes (#8497)
It follows the same rules as URI.parse/1

Related to #8494
2018-12-10 09:48:37 +01:00
HUANG Wei a6139bc2c0 Stricter link check in IO.ANSI.Docs module (#8494)
Closes #8449
2018-12-09 18:06:25 +01:00
José Valim b8e71290d3 Ignore escape characters inside markdown backticks (#8384) 2018-11-12 13:14:55 +01:00
Eksperimental 9e8c4f472b Add backticks around "set of options" (#8297) 2018-10-20 10:02:56 +02:00
Gabe Jackson 97ac0e6a9f Link docs for defdelegate functions (#8228)
Add :delegate_to @doc metadata tag
to enable linking to delegatee's docs from delegator's docs

Associated issue: elixir-lang/ex_doc#902
2018-09-28 08:41:23 +02:00
László Bácsi 205204d04b Annotate @doc metadata when something is a guard (#7893) 2018-07-15 09:37:56 +02:00
László Bácsi 7ba5d1c0a0 Show documentation metadata in IEx (only since and deprecated for now) (#7886)
Signed-off-by: José Valim <jose.valim@plataformatec.com.br>
2018-07-12 20:15:22 +02:00
Eksperimental f2ff2c8c8c General corrections (#7870)
* Modules/types are mentioned in singular, not plural

* General improvements in the documentation
2018-07-11 09:56:47 +02:00
Wojtek Mach daf5ed3d5c Add "@impl true" to Exception callbacks (#7681) 2018-05-16 09:28:58 +02:00
José Valim 91e8a76bfb Fix swapped cursor_left and cursor_right
Closes #7496.
2018-03-27 10:46:59 +02:00
Eric Meadows-Jönsson d8dbc6f2cb Fix table column alignment with ANSI escapes (#7415) 2018-03-04 18:34:33 +01:00
Max Veytsman d94a9ccf33 Add cursor movement to IO.ANSI (#7396) 2018-02-28 01:44:34 +01:00
Devon Estes 7e76ece1c8 Add missing typespecs and fix error in docs (#7259) 2018-01-26 13:14:32 -02:00
José Valim de311ae84b Update codebase with latest formatter rules 2017-10-25 19:39:25 +02:00
José Valim e2720924da Add Enumerable.slice/1 and use it in Enum (#6958)
We have reimplemented Enum.at/3, Enum.fetch/2, Enum.fetch!/2,
Enum.random/1, Enum.slice/2, and Enum.slice/3 to be more
efficient by using the new protocol function.

This partially implements #6955. We have decided to not replace
`count/1` by an `aggregate/2` callback because it became clear
we cannot implement `min/1` for date ranges since `Enum.min/1`
does a structural comparison. Given ranges are still the only case
that requires custom aggregations, we have decided to inline those
in Enum until we have more evidence that such callback is necessary.
2017-10-21 16:17:04 +02:00
José Valim e120a212ad Improvements to formatted code 2017-10-10 22:05:55 +02:00
Jean Matheus Souto 7b79b43778 run code fomatter on lib/elixir/lib/io/ansi/docs (#6838) 2017-10-10 21:58:04 +02:00
José Valim fbf429749a Format more low hanging fruit files 2017-10-10 18:09:59 +02:00
Petr Stepchenko 6ca2fd10c8 Run the code formatter on IO.ANSI (#6798) 2017-10-10 12:22:44 +02:00
Ivan Kozik d7d697db39 Use "number" instead of "amount" for count nouns (#6528) 2017-09-01 10:17:26 +02:00
Aleksei Magusev 03dfb84937 Improve table column alignment logic in IO.ANSI.Docs 2017-07-13 23:08:36 +02:00
Gary Rennie a6ed2bf811 Add table column alignment in IO.ANSI.Docs (#6230)
This commit adds table alignment in markdown which allows the following
for tables:

    right aligned | center aligned | left aligned
    -: | :-: | :-
    a | b | c

This will output a table in the following format:

    right aligned | center aligned  | left aligned
                a |        b        | c

If headings are set, the header line (the line immediately below the
headings is ignored when calculating the max width for the columns.
All lines are trimmed of additional whitespace leading and trailing
whitespace to prevent tables that look like:

    right aligned | center aligned | left aligned
    ------------: | :------------: | :-
         a        |        b       | c

    right aligned | center aligned  | left aligned
         a        |      b          | c
2017-06-18 16:29:24 +01:00
José Valim a961bbaab9 Remove unnecessary regexes in IO.ANSI.Docs 2017-05-07 18:38:27 +02:00
Andrew Summers 240520ce5a Made ansicode and ansilist public types. (#5706)
The public type for ansidata references ansilist and ansicode, so
dialyzer complains about missing type for them when referencing
ansidata.
2017-01-27 12:50:55 +00:00
Steven Blowers 87234bd578 Fix whitespace inconsistencies in stdlib (#5559) 2016-12-14 01:07:12 +01:00
ToadJamb 2cd5506fba Add light foreground and background colors to IO.ANSI (#5231) 2016-09-20 11:09:24 +02:00
José Valim 50293b46f1 Keep markdown formatting on IO.ANSI.Docs
The previous format would use | before code blocks
and would remove # from headings, we have reverted
those changes to make the printed documentation and
help be closer to what it would look on source while
providing more information (in the case of headings).
2016-09-13 22:05:49 +02:00
Aleksei Magusev 50e662a6f1 Tidy up docs for ANSI sequences 2016-07-16 13:30:56 +02:00
Nils Jonsson e96f305a3a Add ANSI escape sequence 27 for turning off reverse video (#4995) 2016-07-12 09:49:47 +02:00
Aleksei Magusev 96da837136 Emit warning when variable is being expanded to function call (#3517) 2016-06-11 22:31:03 +02:00
Aleksei Magusev 07d52034cb Replace *just with pad_* calls and optimize around 2016-05-30 02:04:26 +02:00
Aleksei Magusev 10967f2865 Replace *strip with trim* calls and optimize around 2016-05-30 02:04:17 +02:00
Aleksei Magusev 4bb40b2e36 Improve format helper definition in IO.ANSI 2016-05-29 16:40:18 +02:00
eksperimental a70effd4b4 IO: Several improvements (#4560)
IO Module:
  * Impoves wording in documentation, particularly in the use of :all, :line, count
  * Standardizes arg names to be `line_*`.
  * Adds function guards to check for integers.
  * Unicode is a proper noun, so it should be always capitalized.
  * Adds backticks to args suchs as `device`, `item`, `count`.
  * When functions are "Unicode unsafe", they are indicated in the first paragraph of docs.
  * IO.puts: code simplified removing unnecessary variable.
  * Adds \n to example in IO.gets/2
  * Adds example in IO.chardata_to_string/1 when dealing with strings
  * Renames args in IO.each_stream/2 and IO.each_binstream/2
  * Adds tests for IO.getn/2-3 calling functions with different arities

IO.Steam Module:
  * Adds a note about side effects when dealing with IO streams.
2016-04-28 13:18:32 +02:00
eksperimental 4ceb41e71b Formmating: Add white space around vertical bar (#4507) 2016-04-25 00:55:49 +02:00
José Valim a84933a52e Merge pull request #4281 from eksperimental/remove_parenthesis_spec
Removes the use of () in built in typespecs
2016-02-09 10:00:38 +01:00
José Valim 173686a2e1 Get rid of more imperative conditional uses 2016-02-07 11:08:14 +01:00
eksperimental 36160c093a Removes the use of () in built in typespecs
...making it consistent with the rest of the typespecs
2016-02-02 12:05:38 +07:00
José Valim 45619f1a6c Remove io ansi macro 2015-12-08 12:27:48 +01:00
Eric Budd 0131d0281c Add helper methods and macro to IO.ANSI for rgb216 color
- valid_rgb216/3
- color/3
- color_background/3
2015-12-07 20:29:43 -05:00
Joe Yates 05e426248c Fix typos in Elixir moduledocs 2015-12-01 13:45:33 +01:00
Aleksei Magusev 40096e0ff1 Eliminate spaces in bitstring definitions 2015-11-28 23:48:48 +01:00
Aleksei Magusev 26fe2fe71d Improve code style 2015-11-26 21:21:50 +01:00
José Valim a48686c303 Check for link label without using regular expressions 2015-11-26 12:00:24 +01:00
Milton Mazzarri c1b2a9048d One reference link label per line 2015-11-25 22:12:47 -06:00
Martin Svalin 424998828b Don't escape underlines outside url in docs. 2015-11-18 23:18:29 +01:00
Victor Rodrigues dc17f37292 Add ANSI escape sequences for extended colors 2015-11-12 11:55:36 +01:00
Eric Meadows-Jönsson 4bbd3b0bbb inspect invalid ANSI sequences 2015-10-05 17:34:15 -05:00