-
Notifications
You must be signed in to change notification settings - Fork 482
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
@see tag contents not parsed as expected #673
Comments
Thanks for the report! As far as I can see, we're correctly parsing link syntax in |
Thanks, Tom. I'm curious if there's someplace where discussion about the direction of documentation takes place? Having documented a reasonably sized framework I find myself fighting against documentation on a fairly regular basis. I went in to fix some of the problems I was having and I found test cases that enforce what I consider to be bad behavior. Given someone explicitly added these cases, I abandoned my work. I also see that a number of tickets that touch on these areas are not being picked up. |
Hey Roy, This is the main place where discussion around documentation happens. I try to reply to as many issues as possible, balancing with my more work-related tasks - unfortunately I have to prioritize work as a result and some issues I don't reply to within weeks or even months. Additional contribution energy would be hugely appreciated, and I'm happy to review whether tests for potentially bad behavior are intentional or the result of mistakes or incorrectly regenerated test fixtures.
|
And since there isn't a single place for the current direction of the project:
Given more contributors or more time, this list could be more exciting, but alas it's a big project and the first priority for me is robustness, so that's where I'm spending time. |
Tom, thanks for the information. I think what might be very useful is a 'philosophy' doc that explains a bit about what is expected from the documentation process and how it might apply to some common scenarios. In part, I feel like maybe I chose the wrong path and am having to fight against the tool rather than figure out how to work with it. I understand that a general-purpose tool like documentation by necessity will not be a perfect fit for everyone. Maybe a 'cookbook' would be helpful? |
Oh, I should mention that we're using the json output, not markdown or html. So, the |
Are you sure? I just tested with the [
{
"description": "",
"tags": [
{
"title": "see",
"description": "{@link http://github.com/|github}",
"lineNumber": 1
}
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 3,
"column": 3
}
},
"context": {
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 17
}
},
"file": "/Users/tmcw/src/documentation/test.js"
},
"sees": [
{
"type": "root",
"children": [
{
"type": "paragraph",
"children": [
{
"type": "link",
"url": "http://github.com/",
"title": null,
"jsdoc": true,
"children": [
{
"type": "text",
"value": "github"
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 34,
"offset": 33
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 34,
"offset": 33
},
"indent": []
}
}
],
"position": {
"start": {
"line": 1,
"column": 1,
"offset": 0
},
"end": {
"line": 1,
"column": 34,
"offset": 33
}
}
}
],
"name": "add",
"kind": "function",
"members": {
"instance": [],
"static": [],
"events": []
},
"path": [
{
"name": "add",
"kind": "function"
}
],
"namespace": "add"
}
] |
|
Oh... I see, the |
Alrighty then, this was just a case of user error. I found the output. And I wrote such a nice regex to parse that |
The
@see
tag (http://usejsdoc.org/tags-see.html) is supposed to support@link
s as well as free-form text. Unfortunately, documentation does not produce proper link-type output.Example:
@see {@link http://github.com|GitHub}
The text was updated successfully, but these errors were encountered: