-
Notifications
You must be signed in to change notification settings - Fork 512
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
fix: make docs not output confusing information in xrpl client #2337
Conversation
Closes #2337 |
I will add a separate PR to generate the docs |
Hmm I'm not sure if this is the only way to generate better docs but this solution will make a long index files (most of functions in this file are abstraction, with exception for making a request and connect/disconnect) and also it would be a bit confusing imo to have the fundWallet or autofill files in sugar folder without the fundWallet and autofill function (seems more like utils files for me) |
I’m fairly sure this is the only way, but open to another solution if you have one. Aside from that, I tried to balance making it smaller by refactoring certain internal details to a separate file. |
I'm not familiar with docs generation so if that's the only way to output desired output, please go ahead with it. |
Can you add a before and after image of the documentation? |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
Notes on what I did during the merge to resolve the trickier conflicts:
|
I've become a contributor, so can't review myself
package-lock.json
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What caused this to remove many entries? The only dependency change was "run-s": "^0.0.0",
which I would think might add entries and not remove.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I may have chosen the wrong version to merge then - there was a package-lock conflict and I assumed the 3.0 version would be shorter.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why it still changed - but I used the 3.0 version and ran npm i
- does that new result look sensible, or is there something I accidentally changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try copying the 3.0 version of the file and run npm i
again and see what happens
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ckniffen Just did that again, and this was still the result. I think it's the correct updates now as it's mostly updating things to 'dev' dependencies or updating the 'integrity' line, which seems minor. (Along with adding run-s
)
* Fix assertion * Add a test
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
* fix: make docs not output confusing information in xrpl client --------- Co-authored-by: Jackson Mills <jmills@ripple.com> Co-authored-by: Caleb Kniffen <ckniffen@ripple.com>
High Level Overview of Change
Docs are super confusing today. They don't output the correct information due to how functions are assigned to the class. We're also missing docs for several function. Additionally, there's overuse over overloaded functions which get output as separate functions in the docs page making it cluttered and difficult to follow.
TODO
Context of Change
requestNextPage
Type of Change
Test Plan
Before
After (properly marked as member functions and not variable constants)
Before (submit bare documentation)
After (documentation and examples are shown)
Before (request has a bajillion overloads and is missing an example)
After (request is clean and has example)
Before (multiple client methods missing examples)
After (all client methods have examples)