style: reformat content to match Decap CMS output - #1135
Merged
Conversation
Re-serializes frontmatter and shortcode bodies to exactly match what Decap CMS's editor would write, so future CMS saves don't produce unrelated diffs. - Frontmatter: re-serialized with the yaml package used internally by decap-cms-core (quotes removed where not required, kept where needed). - Shortcodes: ported the fromBlock/toBlock logic from static/admin/shortcodes.js to normalize indentation, quoting, and multiline wrapping for train-category, booking, highlight, float-image, dialog, etc. - Archetypes: aligned param ordering and boolean bareness in the operator archetype's fip-validity and booking shortcode examples with the same convention (frontmatter left untouched since values are Go template expressions, not literal YAML). Also fixes pre-existing content bugs surfaced along the way: - Invalid YAML in content/_index.*.md (unindented multi-line quoted strings) that would break Decap's real parser. - Missing alt text on float-image shortcodes in content/booking/traivelling-website/*.md and content/operator/sll/*.md. - Missing required id on train-category shortcodes in content/operator/stl/*.md.
|
Hi there! 👋 Thank you for your contribution to the FIP Guide! 🚀 Checklist before merging:
|
MoritzWeber0
force-pushed
the
refactor/optimize-for-decap
branch
from
August 7, 2026 17:48
b420031 to
3b0b99c
Compare
✅ Deploy Preview for fipguide ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
- Revert {{< highlight >}} shortcodes that were mistakenly changed to
{{% highlight %}} during the Decap CMS reformat
- Restore reservation_required/reservation_possible on train-category
shortcodes, ensuring reservation_possible is true whenever
reservation_required is true
MoritzWeber0
marked this pull request as ready for review
August 7, 2026 18:43
lenderom
approved these changes
Aug 7, 2026
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.
The goal is to have less changes done by Decap DMS by using a consistent style in all markdown files.
It resolved #1110 too :)
Also fixes pre-existing content bugs surfaced along the way: