Repository navigation
feat: add 'Use Variables to Personalize Your Tutorials' meta tutorial (#2819) - #10
Merged
Merged
Conversation
Content (1)
Checked e08e3fc • notify-only, does not block merge |
Contributor
Author
|
Canonical authoring/QA source PR: sap-tutorials/meta-tutorials-Contribution#13 |
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.
Closes sap-tutorials/tutorials-ims#2819.
Public-catalog mirror of sap-tutorials/meta-tutorials-Contribution#13.
Adds a new meta tutorial teaching authors the tutorial variables feature shipped in tutorials-ims#2818 (implements tutorials-ims#2811): the
variables:frontmatter block and{{var:NAME}}body tokens that let a reader type a per-person value once and have it substituted live into prose, inline code, and copy-pasteable fenced code blocks.Slug:
use-variables-in-tutorialsWhat it covers
XXX-everywhere problem) and when not to use onevariables:block — every field and the hard-fail validation rules{{var:<name>}}in prose, inline code, and fenced code blocksdefault: { from, pattern }identity-regex pre-fill (allowlist:email,id,givenName,familyName)Self-demonstrating
Declares one real variable,
groupNumber, and uses{{var:groupNumber}}throughout prose, inline code, and abashblock — the reader sees their own value substituted live while learning the feature.Validation
Ran through the actual
composeTutorialparser (the real build path): accepts cleanly, 7 steps, 1 variable parsed with correct schema, 0 unwrapped live tokens; the 6 literal{{var:<name>}}occurrences are intentional syntax examples (non-matching metavariable). Single H1, 7 H3 steps,<!-- description -->present, LF line endings.🤖 Generated with Claude Code