Two questions on documentation
RTFM in 3... 2... 🙂
Question 1:
How do i hide documentation for specific exports, i do not want to document exports of dependencies, like https://deno.land/x/entsoe_api_client@0.5.1/deps.ts . I tried /** @ignore */ to no avail
Question 2:
Is it possible to get some sort of generic description for a file, like: https://deno.land/x/entsoe_api_client@0.5.1/mod.ts , similar to the docs that appear if i click on a function, like https://deno.land/x/entsoe_api_client@0.5.1/mod.ts?s=Query
13 Replies
For number 2: I recommend looking at the docs for other modules to see how they look. I discovered that https://deno.land/std@0.176.0/archive/mod.ts has the generic description you were looking for and discovered that it did
to show that description.
I haven't looked at #1 yet but that sounds like it would be solvable, I just haven't found a solution yet.
I'm not sure if I understand #1, why do you want to hide the documentation for dependencies?
Oh, cool. Will have a look at the archive module
I don't think documenting the dependencies add any value (as they're not exported to be used by a third party). It just become a duplicate of the original packages documentation.
we currently dont have a way to disable documentation for a file
I think the question was
How do i hide documentation for specific exportsWhich is subtly different. I feel like I remember seeing this functionality at some point but I may be completely wrong. Also this is definitely an XY problem type of question
ok let me be more generic: there is no way to hide documentation of any kind at all currently as far as i remember
Ah okay, I guess my intuition was wrong. Thanks for clarifying.
Cool guys, question #2 solved, turned out pretty awesome (grammar excluded 🥸 )
What standard do deno doc use for typescript, is it tsdoc? I notice that types are extracted just fine when writing jsdoc without types.
With that info, i could figure out a decent feature request for exclusion 🙂
yea, it is mostly based on tsdoc, but with additional features taken from jsdoc (as tsdoc is quite feature-lacking)
its just a matter of implementing an ignore tag; should be fairly easy
@iobdas maybe something you'd wanna do :P?
Fine. I'll look into it.
lol, if you dont want, dont have to
😅 Thanks guys!
It's too late... you put me on the spot <:blob_confounded_face:1040664030001508372>
lol
if you need any pointers, let me know