docs: update embedme references and fix line numbers#107
Merged
M-jerez merged 2 commits intomion-run-typesfrom Aug 27, 2025
Merged
docs: update embedme references and fix line numbers#107M-jerez merged 2 commits intomion-run-typesfrom
M-jerez merged 2 commits intomion-run-typesfrom
Conversation
- Updated all embedme references in documentation to point to correct file paths and line numbers - Fixed line number references that were outdated due to code refactoring - Updated client documentation to use .typeErrors() instead of .validate() - Created missing extending-routes-and-hooks.routes.ts example file - Ran embedme to update all code blocks in documentation - All documentation now reflects the current state of the codebase after the run-types refactor
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.
Summary
This PR updates all embedme references in the documentation to reflect the current state of the codebase after the run-types refactor.
Changes Made
Fixed embedme references:
packages/router/src/types/definitions.ts(RouteDef, HookDef, HeaderHookDef, RawHookDef)packages/router/src/types/handlers.ts(Handler interface)packages/router/src/types/context.ts(MionRequest, MionResponse, MionHeaders)packages/core/src/types.ts(RpcErrorParams, PublicRpcError)packages/router/src/types/publicMethods.ts(PublicMethod)packages/client/src/types.ts(SubRequest, RouteSubRequest, HookSubRequest)packages/router/src/types/general.ts(RouterOptions)Updated documentation content:
.validate()to.typeErrors()in client examples to match current APIpackages/router/examples/extending-routes-and-hooks.routes.tsfileFiles updated:
website/content/1.introduction/2.quick-start.mdwebsite/content/2.docs/1.routes.mdwebsite/content/2.docs/2.hooks.mdwebsite/content/2.docs/3.call-context.mdwebsite/content/2.docs/4.client.mdwebsite/content/2.docs/5.request-and-response.mdwebsite/content/2.docs/6.error-handling.mdTesting
npm run lintpasses with no errorsnpm run formatapplied successfullynpx embedme website/content/**/*.mdruns successfully and updates code blocksNotes
package-lock.jsonfrom commit as instructedPull Request opened by Augment Code with guidance from the PR author