I figured the <a name=""> thing would limited to just Typespecs.md so
perhaps an exception could be made (famous last words) but I agree it's
suboptimal. I'll update this thread if I find a cleaner solution. Thanks
for considering it!

2016-10-26 17:50 GMT+02:00 José Valim <[email protected]>:

> 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%40
>>>> googlegroups.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/ms
>> gid/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%2BOVxK2spRZFqs2amXd6L7E6Li3qHH
> Br7XzQLj0uej6Dw%40mail.gmail.com
> <https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4%2BOVxK2spRZFqs2amXd6L7E6Li3qHHBr7XzQLj0uej6Dw%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Wojtek Mach

-- 
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/CADmQCnpOJ1J0RASDXqHA8LHDwAFLTiYWTJ8ND_BZ995eX0fAjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to