Bug 14608 – Enum members should be formatted as a table

Status
REOPENED
Severity
enhancement
Priority
P4
Component
dlang.org
Product
D
Version
D2
Platform
All
OS
All
Creation time
2015-05-19T16:12:32Z
Last change time
2024-12-15T15:22:56Z
Assigned to
No Owner
Creator
Andrei Alexandrescu
Moved to GitHub: dlang.org#4041 →

Comments

Comment #0 by andrei — 2015-05-19T16:12:32Z
Consider e.g. http://dlang.org/phobos-prerelease/std_algorithm_searching.html#.OpenRight. There, we have a lavishly laid itemization for only little content. All enum values have one-word declarations and short descriptions. It would be great if they were laid instead as a table (similar to "Params:") with two columns (name and description). There should be no "Jump to" for the values. The ddox-based documentation is actually worse - it generates one page per enum value (see e.g. http://dlang.org/library/std/algorithm/searching/open_right.no.html. Most of those pages are fluff. Enums should be compressed to one page with all values and their descriptions on it.
Comment #1 by andrei — 2015-05-19T16:13:22Z
I've assigned Sönke for now, please reassign appropriately. Thanks!
Comment #2 by andrei — 2015-06-06T06:23:35Z
Note - refer to the "display" CSS property: https://developer.mozilla.org/en-US/docs/Web/CSS/display#Values
Comment #3 by sludwig — 2015-12-18T16:52:24Z
Note that while the DDOX based documentation has a per-item page, it also has an overview table: http://dlang.org/library/std/algorithm/searching/open_right.html So it's a matter of simply skipping the generation of the per-item pages. However, sometimes there might be more than a one-liner description, so the table would have to be able to display that, too (e.g. like https://msdn.microsoft.com/en-us/library/windows/desktop/ff700543%28v=vs.85%29.aspx).
Comment #4 by sludwig — 2016-06-02T11:30:22Z
PR for the DDOX side: https://github.com/dlang/dlang.org/pull/1319 BTW, an example for a more detailed enum member documentation: http://dlang.org/phobos/core_memory.html#.GC.BlkAttr.APPENDABLE
Comment #5 by github-bugzilla — 2016-06-02T11:54:55Z
Commits pushed to master at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/926b20648ca3b6199ecdc2fbd1d2fdeef45aa280 Upgrade to DDOX 0.15.4 - Fixes the DDOX part of issue 14608. - Removes per-enum-member pages and instead displays the full enum member documentation inside of a single table - Adds template arguments and constraints display for composite types and enums https://github.com/dlang/dlang.org/commit/f806372cf2b11cc9c64eec9fa061e63c723b494c Merge pull request #1319 from s-ludwig/master Upgrade to DDOX 0.15.4 - Fixes the DDOX part of issue 14608.
Comment #6 by andrei — 2016-06-02T13:14:25Z
So should we close this?
Comment #7 by github-bugzilla — 2016-10-01T11:45:07Z
Commits pushed to stable at https://github.com/dlang/dlang.org https://github.com/dlang/dlang.org/commit/926b20648ca3b6199ecdc2fbd1d2fdeef45aa280 Upgrade to DDOX 0.15.4 - Fixes the DDOX part of issue 14608. https://github.com/dlang/dlang.org/commit/f806372cf2b11cc9c64eec9fa061e63c723b494c Merge pull request #1319 from s-ludwig/master
Comment #8 by andrei — 2016-12-23T21:27:04Z
Looks like this is fixed now, right Sönke?
Comment #9 by sludwig — 2016-12-24T10:40:56Z
Yes, fixed for /library/. I think I just didn't close this right away at the time because it still isn't fixed for /phobos/.
Comment #10 by andrei — 2016-12-24T14:59:48Z
Thanks. Yah, I'm reopening this. Looking e.g. at http://dlang.org/phobos-prerelease/std_algorithm_comparison.html#.EditOp - a table would be so much nicer.
Comment #11 by robert.schadek — 2024-12-15T15:22:56Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dlang.org/issues/4041 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB