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
docs: add information on using a custom regexp in definePageMeta
#25073
Merged
Conversation
This file contains 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
โฆeMeta Adds an example of using a path matcher and links to more information on the matching syntax
Run & review this pull request in StackBlitz Codeflow. |
โ Live Preview ready!
|
L422Y
changed the title
docs: add information on/example of using a path matcher in definePagโฆ
docs: add information on/example of using a path matcher in definePageMeta
Jan 6, 2024
danielroe
reviewed
Jan 16, 2024
danielroe
reviewed
Jan 16, 2024
danielroe
reviewed
Jan 16, 2024
danielroe
approved these changes
Jan 16, 2024
danielroe
changed the title
docs: add information on/example of using a path matcher in definePageMeta
docs: add information on using a custom regexp in Jan 16, 2024
definePageMeta
danielroe
reviewed
Jan 16, 2024
@@ -60,7 +60,7 @@ interface PageMeta { | |||
|
|||
- **Type**: `string` | |||
|
|||
You may define a path matcher, if you have a more complex pattern than can be expressed with the file name. | |||
You may define a [custom regular expression](#using-a-custom-regular-expression), if you have a more complex pattern than can be expressed with the file name. |
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've changed 'path matcher' here to match Vue Router docs which talk about 'custom regex': https://router.vuejs.org/guide/essentials/route-matching-syntax.html#Custom-regex-in-params.
DamianGlowala
requested changes
Jan 16, 2024
Co-authored-by: Damian Gลowala <damian.glowala.rebkow@gmail.com>
DamianGlowala
approved these changes
Jan 16, 2024
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.
Adds an example of using a path matcher and links to more information on the matching syntax
โ Type of change
๐ Description
Adds extended information for using a path matcher and links to more information on the matching syntax, links to the example from the
path
configuration option definition. Allows devs without previous knowledge of advanced path matching syntax to preview what is possible with thepath
option indefinePageMeta
๐ Checklist