Add video links to patterns#32
Merged
Merged
Conversation
Patterns, anti-patterns, and obstacles can now declare a single video URL in their YAML frontmatter, rendered on the detail page as a "Watch video" link that opens in a new tab. YouTube timestamps live in the URL itself (e.g. `?t=412s`), so no separate schema is needed. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Adds video frontmatter to patterns explained in: - Lada Kesseler's deep-dive talk (37 entries: 21 patterns, 10 obstacles, 6 anti-patterns) - Ivett Ördög's Habit Hooks talk (4 entries: habit-hooks, constrained-tests, approved-scenarios, approved-logs) - Ivett Ördög's legacy migration story (1 entry: show-the-agent) Each timestamp anchors to the point where a viewer can start watching and get enough background to understand the pattern — usually before the term itself is introduced, when the motivating story or foundational concepts begin. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Replace the plain "Watch video" link with a polished thumbnail card showing the YouTube preview image and the video title underneath, on both the pattern detail page and the complete catalog detail view. Also surface alternative titles and synonyms in the catalog detail. Video titles are sourced via YouTube oEmbed at edit time through a new scripts/fetch-video-titles.mjs script (npm run fetch:videos), which writes website/lib/video-titles.json so the build stays network-free and reproducible.
Owner
|
Thanks @devill! I was actually thinking about the same thing for a long time. Either timestamps like that or actually recording mini-videos for everything. This is an awesome start <3 |
Collaborator
Author
|
I'm glad you like it. Yes, recording mini videos could be a next step. I was actually considering doing some of them on NextIncrement. |
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.
I'd like to suggest adding links to each pattern that is discussed in a talk or video. It can serve a double duty of making the patterns more accessible to people (they can watch the video instead of reading) and promoting the videos and the patterns within them