Jump to page: 1 2
Thread overview
[Issue 7687] Ddoc should be able to generate "Jump to" links
Dec 24, 2014
Nick Treleaven
Dec 25, 2014
Stewart Gordon
Dec 27, 2014
Nick Treleaven
Dec 27, 2014
Stewart Gordon
Dec 30, 2014
Nick Treleaven
Jan 30, 2015
Stewart Gordon
Jan 30, 2015
Nick Treleaven
May 31, 2015
Doug Nickerson
Jun 09, 2015
Stewart Gordon
Dec 17, 2022
Iain Buclaw
December 24, 2014
https://issues.dlang.org/show_bug.cgi?id=7687

Nick Treleaven <ntrel-pub@mybtinternet.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ntrel-pub@mybtinternet.com

--- Comment #1 from Nick Treleaven <ntrel-pub@mybtinternet.com> ---
Stewart Gordon from comment #0)
> This is ridiculous.  What was the point of writing this JS code to get around a limitation of Ddoc, rather than fixing the limitation?

Using JS is much easier than extending dmd as long as dmd uses a subset of C++.

> Moreover, it would be good to give the user of Ddoc the choice of listing only module-level symbols or all documented symbols in the module.

I've made a pull for Issue 5136 which (essentially) solves this.

--
December 25, 2014
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #2 from Stewart Gordon <smjg@iname.com> ---
(In reply to Nick Treleaven from comment #1)
> Using JS is much easier than extending dmd as long as dmd uses a subset of C++.

I have trouble believing it can be this difficult, given that the compiler must rely on quite complex data structures anyway.  What particular C++ feature would make implementing this feature easier if only it were in the subset that DMD is written in?

--
December 27, 2014
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #3 from Nick Treleaven <ntrel-pub@mybtinternet.com> ---
Using JS is easier than C++, whatever the subset.

--
December 27, 2014
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #4 from Stewart Gordon <smjg@iname.com> ---
So why wasn't the whole of DMD written in JS? :)

Seriously ... so you mean that Walter couldn't be bothered at the time to spend the time working out how to improve DMD, so for the meantime he just wrote this JS hack?

--
December 30, 2014
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #5 from Nick Treleaven <ntrel-pub@mybtinternet.com> ---
I was talking about for HTML generation. At the time the JS was first added, I don't think ddoc was in a good state, it has since improved significantly.

--
January 30, 2015
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #6 from Stewart Gordon <smjg@iname.com> ---
(In reply to Nick Treleaven from comment #5)
> I was talking about for HTML generation. At the time the JS was first added, I don't think ddoc was in a good state, it has since improved significantly.

But Ddoc isn't an HTML generator.  It's a macro-based system capable of generating documentation in a variety of formats.

--
January 30, 2015
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #7 from Nick Treleaven <ntrel-pub@mybtinternet.com> ---
You asked why JS was used, I explained. Please implement this if you like.

--
May 31, 2015
https://issues.dlang.org/show_bug.cgi?id=7687

Doug Nickerson <Tachyon165@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |Tachyon165@gmail.com

--- Comment #8 from Doug Nickerson <Tachyon165@gmail.com> ---
More minor, but whenever or however "Jump to" links are updated in the future,
I noticed the ordering seems to be off:
If there are more than 9 overloads, the Jump to links read:
"10 11 2 3 4 5 6 7 8 9"
In other words, seems to be sorted lexicographically by the string value rather
than numerically by the index value.
An example of this can be seen at:
http://dlang.org/phobos/std_conv.html#.toImpl

--
June 09, 2015
https://issues.dlang.org/show_bug.cgi?id=7687

--- Comment #9 from Stewart Gordon <smjg@iname.com> ---
(In reply to Doug Nickerson from comment #8)
> More minor, but whenever or however "Jump to" links are updated in the future, I noticed the ordering seems to be off:

This bug report is about the shortcoming in Ddoc's capabilities.  Any bug in dlang.org's JS workaround is a separate issue, so I think it should have a separate bug report.  Though it's useful to have this note here to make sure that it isn't overlooked when implementing the feature in Ddoc.

Of course, once this one is implemented, the bug with the JS workaround will become a non-issue.

--
June 10, 2015
https://issues.dlang.org/show_bug.cgi?id=7687

Andrei Alexandrescu <andrei@erdani.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|D1 & D2                     |D2

--
« First   ‹ Prev
1 2