milesj / docusaurus-plugin-typedoc-api

Docusaurus plugin that provides source code API documentation powered by TypeDoc.
69 stars 25 forks source link

feat: Support for Page Options - Hide Inherited [#150] #151

Closed rash805115 closed 1 week ago

rash805115 commented 1 month ago

This PR is to add support for page options, the first one including Hide Inherited as explained in #150 .

As shown in screenshot, at the top of the page you can see a new option - Page Options.


When unchecked (default), the page would show normally.

Screenshot 2024-08-03 at 2 15 51 PM



When checked, all attributes that were inherited, in sidebar and in page content, are hidden.

Screenshot 2024-08-03 at 2 15 59 PM
milesj commented 1 month ago

The functionality is nice but the placement of the UI needs work. Adds too much space.

rash805115 commented 1 month ago

Hmm I agree. What would you suggest? Maybe keep the Page Options div but make the actual options (next div) collapsible? I was thinking if more options are ever added, they would be in line with the other options, so the height you see should not be more than what it is today.

milesj commented 1 month ago

Maybe in the sidebar somewhere? Not sure if possible.

rash805115 commented 1 month ago

That was my first try, in the right sidebar. But the UI was looking ugly, especially in mobile.

rash805115 commented 1 month ago

I think I made it to sidebar, and it looks better than before for sure.

Look on mobile,

Screenshot 2024-08-04 at 10 25 48 AM

Look on desktop,

Screenshot 2024-08-04 at 10 26 06 AM
rash805115 commented 1 month ago

Hi @milesj Can you take a look when you have a chance?

milesj commented 1 month ago

I'm out of town for the new few weeks.

rash805115 commented 2 weeks ago

Hello @milesj Just checking again if you are back in town, and if you can review this PR.