question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add expand/collapse all to sections of dottydoc

See original GitHub issue

We currently have [+] to expand items with longer comments. I want to have an “expand/collapse all” button at the top left of each category where this is relevant. So for example if you look here: http://dotty.epfl.ch/api/dotty/tools/dotc/transform/IsInstanceOfEvaluator.html You can see that the member phaseName has an expand button. I would like its category (i.e. “Members”) to have a collapse all button.

So before this change you would have: screen shot 2017-04-10 at 10 45 53

And after you’d have: screen shot 2017-04-10 at 10 47 15

But with the [+] on “Members” having the same style as the one inside the categories This would be the first superficial change - which means just changing the HTML

After this, I want one more change: collapsed comments should contain nothing. Currently they contain an abbreviated version of the docstring, I don’t think it is beneficial. It clutters a lot and in the end you know roughly what you’re looking for if you’re browsing the API.

In summary:

  • Give each relevant category (e.g. “Members”, “Constructors”) a “expand/collapse all” [+]-button
  • Remove the summary on collapsed
  • Remove summary-related code in the dottydoc scala codebase

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
Varunramcommented, May 17, 2017

@felixmulder I’m kinda new here so pardon me but is @hhandoko still working on this? If not, can I work on this? Thanks

1reaction
felixmuldercommented, Apr 10, 2017

Assigned to @hhandoko

Read more comments on GitHub >

github_iconTop Results From Across the Web

Collapse or expand parts of a document
To collapse or expand all the headings in your document, right-click the heading and click Expand/Collapse > Expand All Headings or Collapse All...
Read more >
Video: Collapsible headings - Microsoft Support
You can quickly add an outline level and make part of your document collapsible by adding a heading using Word's built-in styles. Collapse...
Read more >
How to Implement Expand All/Collapse All for Drill-Down in ...
Right-click the Parameters folder in the Report Data pane and select Add Parameter… · Name the parameter, change its Data type to Integer,...
Read more >
Visual studio code - keyboard shortcuts - expand/collapse all
Go to 'Keyboard Shortcuts' and type in search input: "fold all regions". You see fold/ ...
Read more >
Expand/Collapse Items
The expand/collapse functionality is recommended for pages that contain frequently asked questions or topics followed by lengthy explanations of each.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found