Skip to content
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

Apidocs are not being built correctly #1299

Closed
2 of 3 tasks
shimks opened this issue May 2, 2018 · 9 comments
Closed
2 of 3 tasks

Apidocs are not being built correctly #1299

shimks opened this issue May 2, 2018 · 9 comments
Assignees
Labels

Comments

@shimks
Copy link
Contributor

shimks commented May 2, 2018

Description / Steps to reproduce / Feature proposal

Plenty of documentation in our apidocs is broken at the moment. Taking authentication for example:

  • No entry on AuthenticationBindings
  • docs above StrategyAdapter constructor are not generated
  • docs for PassportRequest are not generated, although the sidebar entry is
  • @description and @example (above AuthenticateActionProvider) are not honored

We should keep this issue open to address the apidocs-generation issue as a whole. Here's what I think should be done:

  • identify what areas are broken
  • fix the generation engine (easier said than done 😆)
  • verify that all intended docs for apidocs get generated correctly

IMO, this should replace #1171


UPDATED (11/27)
From the 4 problems listed in the original description, 2 are already fixed.

Acceptance Criteria

  • Fix the problem: docs for PassportRequest are not generated, although the sidebar entry is
  • Fix the problem: @description and @example (above AuthenticateActionProvider) are not honored
  • Based on the investigation/fix for the 2 problems, create a new issue to review/fix similar problems in other packages

See Reporting Issues for more tips on writing good issues

@shimks shimks added the bug label May 2, 2018
@shimks
Copy link
Contributor Author

shimks commented May 4, 2018

I'd be also ok with closing this issue if we repurpose #1171 to also address similar issues for other packages as well

@dhmlau
Copy link
Member

dhmlau commented Jun 14, 2018

@shimks , are we going to close this as fixed because of #111 or as dup of #1171?

@shimks
Copy link
Contributor Author

shimks commented Jun 14, 2018

@dhmlau I think the scope of this issue is a superset of #1171, and although I don't think it should be closed but I can see why we could since we don't know if there's anything that's blatantly amiss about the apidocs

@dhmlau
Copy link
Member

dhmlau commented Nov 29, 2018

Cross posting the comment from #1908 (comment) that there are 2 more issues in apidocs:

@dhmlau dhmlau added this to the December 2018 Milestone milestone Nov 29, 2018
@dhmlau dhmlau added the TOB label Dec 2, 2018
@raymondfeng
Copy link
Contributor

No entry on AuthenticationBindings

Fixed. See http://apidocs.loopback.io/@loopback%2fdocs/authentication.html#AuthenticationBindings

docs above StrategyAdapter constructor are not generated

Fixed. See http://apidocs.loopback.io/@loopback%2fdocs/authentication.html#StrategyAdapter.

docs for PassportRequest are not generated, although the sidebar entry is

No more PassportRequest is in code base.

@description and @example (above AuthenticateActionProvider) are not honored

TBD.

@raymondfeng
Copy link
Contributor

Sequence.md:- Request - (TBD) missing API
navigating through the apidocs of the rest package, the Request brings to this link http://apidocs.loopback.io/@loopback%2fdocs/rest.html#Request but there is no content. Need to investigate
Sequence.md:- Response - (TBD) missing API
navigating through the apidocs of the rest package, the Response brings to this link http://apidocs.loopback.io/@loopback%2fdocs/rest.html#Response but there is no content. Need to investigate

Request and Response are imported from express. I'm not sure what's the best way to link to artifacts from external modules.

@jannyHou
Copy link
Contributor

@raymondfeng the links above don't exist any more. Do you mean the "request" and "response" type in the handlerContext?
http://apidocs.loopback.io/@loopback%2fdocs/rest.html#HandlerContext
Their docs look good actually.

@dhmlau
Copy link
Member

dhmlau commented Jan 7, 2019

@hacksparrow , i believe you had investigated a bit on the outstanding items. Any updates on this? Thanks.

@dhmlau
Copy link
Member

dhmlau commented Jan 25, 2019

Talked to @raymondfeng, the "Request" and "Response" type are imported from Express but our generated apidocs have dangling links. It's a nice-to-have to fix it, but not critical.

This task covers a few issues where the critical ones are fixed. I'm closing this as done and open a new issue for this nice-to-have issue, so that we get the right priority for the task.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants