Repository navigation
Docs/redesign - #14
Merged
Merged
Conversation
Set one Effetch call's signature at display size in Recursive, with the call's options and the client's plugins as switches; each of its 16 combinations is a compiled Twoslash result. Follow it with the HttpClient comparison, typed paths (the parameter names TypeScript reads from a path, and the compiler's error for a wrong call), the narrowing slider, a specifications table, and DESIGN.md.
- Put the landing masthead over the docs and restyle the pages in docs.css - Set code blocks and type tables in the landing's grey code roles - Replace the callout, previous/next and 404 page, and refresh DESIGN.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Redesign the docs site: landing page and docs pages
Landing page (
/)The page is laid out like a type foundry's specimen sheet. Instead of a font, it shows one Effetch call's inferred type,
Effect<value, errors, never>, at display size.output,error,retry,timeout) and four preset instances change the type live. Members that leave thin out and members that join thicken in. A caption explains what each change did, and the compiled call is shown underneath.HttpClientalone next to Effetch, with each type's errors explained.site/landing/*.ts, andsrc/lib/landing.tsfails the build if an example stops matching.Docs pages (
/docs/*)src/styles/docs.cssrestyles Fumadocs' parts without changing their layout. It gives:effetch-inkinmdx-options.ts). Code blocks show in full height, so long examples aren't clipped.components/docs/callout.tsx).components/docs/footer.tsx).