docs(superagent-wrapper): Restructure documentation as Diátaxis #1039
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR refactors the documentation for the
@api-ts/superagent-wrapper
package, migrating technical details from the main README into a dedicated, structured Reference section following the Diátaxis framework.Motivation:
Adopting the Diátaxis framework provides a standardized, clear structure for technical information, improving user experience and maintainability.
Changes Implemented:
docs/reference/superagent-wrapper/
specifically for reference material.index.mdx
: Provides an overview and entry point for the@api-ts/superagent-wrapper
reference section.superagent-request-factory.mdx
: Contains the detailed technical reference for thesuperagentRequestFactory
function.supertest-request-factory.mdx
: Contains the detailed technical reference for thesupertestRequestFactory
function.build-api-client.mdx
: Contains the detailed technical reference for thebuildApiClient
function.api-client.mdx
: Provides a comprehensive description of the structure of theApiClient
object returned bybuildApiClient
, including its operation methods, thePreparedRequest
methods (.decode()
,.decodeExpecting()
), and the structure of theApiResponse
/SpecificApiResponse
objects.ApiClient
object's structure and behavior..decode()
and.decodeExpecting()
methods and the response objects they return, including notes on type narrowing.Benefits (Impact on Users):
buildApiClient
,.decode()
).@api-ts/io-ts-http
).This restructuring significantly improves the quality and usability of the technical documentation for
@api-ts/superagent-wrapper
.