-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for JS global objects documentation linking #54
Comments
What do you think about references to Node.js classes? |
I think it should be MDN by default. Here's some extra points that should be considered:
I propose to have argument named
According to above:
So it should allow us specify multiple well-known names: |
|
Sorry - I have updated my proposal. I might agree about
|
I have idea about some usage of |
I thought about |
Why not just use file with simple words mapping?
File content:
We can attach some default files, or user can use custom one. Also, that can be added in .ndocrc (1 line per link), since argparse supports appendeable params. |
I like the idea of reference maps. |
+1 from me too. |
I have done this in my fork already: https://github.com/gjtorikian/panino-docs/blob/master/additionalObjs.json I am in the process of updating Panino to the ndoc 2.0 rewrite. I can come back here and paste the relevant code changes if interested. It's just a few updates to the |
It should recognize global objects in the returned values
The above, should replace
Array
with link to Array documentation.It should recognize global objects in the arguments definition
The above should replace
RegExp
with link to RegExp documentationIt should recognize global objects in links
The above should replace
[[Object]]
with link to Object documentationBy default links to global objects should point MDN. But there should be an option to provide custom URL for global objects documentation (e.g. node.js documentation page).
The text was updated successfully, but these errors were encountered: