-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add namespace support & add extendedDescription
property & add examples
on class
#1
base: main
Are you sure you want to change the base?
Conversation
extendedDescription
property
extendedDescription
propertyextendedDescription
property & add examples
on class
Converted this to draft. I'll undraft it when I'm done with the Sapphire website just in case more ends up coming up. This way we can keep it all contained in 1 PR. Locally I can generate JSON files with a |
Hi, do you have a date when this PR might open and get merge? |
I'm sorry but no @xhyrom. I've had a bit of a burn out with Docusaurus so I haven't worked on the Sapphire rewrite since I drafted this PR. For added context, Sapphire's website uses |
Adopting this library for Sapphire and for that project we use namespaces in several places. Namespaces are essentially just a collection of nested typedefs so it's easy enough to parse.
Namespaces
Very basic example code of namespaces:
Now users can use both
MyCoolClassOptions
andMyCoolClass.Options
to get the same type.Extended Description
Just another thing I noticed while setting up the parsing. For Sapphire some of our classes have more than what typedoc puts in
shortText
such asSapphireClient
(highlighted the missing part). That part ends up intext
but it is still something we'd like on the website. So I put that inextendedDescription
.Examples on class
Another thing I noticed that was missing. Examples on class level weren't being parsed. I.e. when the code is: