-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
feat: add better documentation features and convert from Rust repo #612
Conversation
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.
Alright y'all, let's get this out.
It's looking pretty solid; lots to improve but we got most of it good enough for a first release.
There are two parts to the fuels-ts repository documentation Part One: Typedoctypedoc does the work of gathering all types, functions, classes, etc. from all of our source code. It will read through the Furthermore, I've enhanced typedoc to also build out the Guide documentation with a custom plugin called How does the
|
Closes #548
How to view these updated docs
1. Basic Viev
Browse the repo on GitHub or local using the markdown files
2. Recommended View
Browse the docs using Jekyll (
bundle exec jekyll serve
) to see how they will appear on GitHub when deployed, which matches current docs hereNotable features
The docs will always report what versions of Fuels/Sway/Fuel Core they were built with:
New Guide section:
Embedded code using real code from library and unit tests:
Notes
docs/_guide
source folder intodocs/guide
and also pulls in code samples from repo as needed using syntaxt inspired by other Doc tools in other languages (and the Typedoc code block plugin which wasn't working well enough for our needs).