Repository navigation
docs: fix the invalid YAML in the regex activation and sync exec examples - #3364
Open
rida-ghreizy wants to merge 1 commit into
Open
rida-ghreizy wants to merge 1 commit into
rida-ghreizy wants to merge 1 commit into
Conversation
…ples The regular expression activation example wrote ENV: "prod-\d+". In a double-quoted YAML string \d is an invalid escape, so the config does not load; single quotes keep the backslash for the regex. The sync.onUpload.exec example indented three keys with tabs. Signed-off-by: rida <ghreizyrida1@gmail.com>
✅ Deploy Preview for devspace-docs ready!Built without sensitive environment variables
To edit notification comments on pull requests, go to your Netlify project configuration. |
This branch has not been deployed
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.
What this PR does
Two
devspace.yamlexamples in the current docs don't load: the YAML parser rejects them.configuration/profiles/activation.mdx, "Example: Regular Expression Activation".In a double-quoted YAML scalar,
\starts an escape sequence, and\dis not a valid one ("found unknown escape character"), so the whole config fails to parse. With single quotes,'prod-\d+', the backslash reaches DevSpace as written, and the value is the regexprod-\d+that the text below the example describes.configuration/dev/connections/file-sync.mdx, the fullonUpload.execreference. Thelocal,onChangeandnamekeys of the last exec entry were indented with a tab, which YAML forbids. They are now indented with spaces, aligned withfailOnErrorabove them.How it was tested
I parsed every YAML code block in
docs/pages/with a YAML parser. These two were the only ones that failed, apart from blocks with Docusaurus// highlight-*markers, and both parse after the change. Onlydocs/pages/changes;versioned_docs/version-5.xhas the same activation example if you want it updated as well.