Yeah, I guess that's the first part to figure out then. I am not sure how
acceptable <a name="..."> is going to be in Elixir's repo.



*José Valim*
www.plataformatec.com.br
Skype: jv.ptec
Founder and Director of R&D

On Wed, Oct 26, 2016 at 5:40 PM, Wojtek Mach <[email protected]> wrote:

> In `Typespecs.md` I changed the row to be:
>
> [`timeout()`](#t:timeout/0) <a name="#t:timeout/0"></a> | `:infinity` \|
> `non_neg_integer()`
>
> and used it to generate the shown html. The <a name=""> piece is obviously
> pretty hacky, but I couldn't find a standard markdown way of inserting
> anchors. As far as ex_doc changes, I imagine it would be similar to how we
> link String.t, and/or keep a whitelist of built-in types; not exactly
> sure yet.
>
> W dniu środa, 26 października 2016 17:22:56 UTC+2 użytkownik José Valim
> napisał:
>>
>> I think it would be nice but I am not sure how the links would work.
>> Thoughts?
>>
>>
>>
>> *José Valim*
>> www.plataformatec.com.br
>> Skype: jv.ptec
>> Founder and Director of R&D
>>
>> On Wed, Oct 26, 2016 at 5:12 PM, Wojtek Mach <[email protected]>
>> wrote:
>>
>>> Hello,
>>> I think it would be useful to add anchors to built-in types and the main
>>> benefit would be improving "discoverability" of the typespecs page.
>>> Demo: http://wojtekmach.pl/elixir-lang-docs/elixir/Agent.html#get/3
>>> (click `timeout` type) (diff
>>> <https://github.com/wojtekmach/elixir-lang-docs/commit/ee655d6d890db0d60177c827279834f0126252ea?diff=unified>
>>> )
>>> It might also make sense to anchor basic types later on.
>>>
>>> Please let me know if this sounds like a good idea, and I'd be happy to
>>> provide PRs.
>>>
>>> Wojtek
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "elixir-lang-core" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>> gid/elixir-lang-core/cceb6883-3dfc-479a-bb85-bc6ecae1bb56%
>>> 40googlegroups.com
>>> <https://groups.google.com/d/msgid/elixir-lang-core/cceb6883-3dfc-479a-bb85-bc6ecae1bb56%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/elixir-lang-core/bfb01971-a463-498f-a197-
> b6b6ff82d44f%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/bfb01971-a463-498f-a197-b6b6ff82d44f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BOVxK2spRZFqs2amXd6L7E6Li3qHHBr7XzQLj0uej6Dw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to