Repository navigation
Conversation
Board pages now render the Markdown install instructions published from armbian/armbian.github.io/board-instructions (board_instructions in armbian-images.json) instead of relying only on the CMS flash guide. - schemas/api: carry board_instructions through as instructions_url - www: fetch from cache.armbian.com (1h revalidate), render with marked, sanitize, and show inline as a "How to flash" section with a link to the source file on GitHub - the CMS flash guide modal remains as a fallback for boards without repository instructions Closes armbian#67
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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 #67
Board pages now show the install instructions maintained in armbian.github.io/board-instructions instead of relying only on the CMS flash guide.
armbian-images.jsonalready publishes aboard_instructionsURL per board (e.g.https://cache.armbian.com/board-instructions/rock-5b.md); the site was ignoring it.Changes
board_instructionsfrom the upstream feed and expose it on the board detail asinstructions_url.lib/board-instructions.tsfetches the Markdown (only fromcache.armbian.com, 5 s timeout, 1 h revalidate), renders it withmarked, and runs it through the existingsanitizeCmsHtml. Any failure just omits the section.sanitizeCmsHtmlgains an opt-inexternalLinksInNewTaboption (target="_blank" rel="noopener noreferrer"on http(s) links).marked@18.1.3to@armbian/www.No new translation keys — reuses
board.flash_guideandboard.github.Screenshot
Testing
pnpm typecheckpasses for all workspaces.khadas-vim3.mdfrom the CDN through the pipeline;<script>,javascript:links and event handlers are stripped../manage.sh up(screenshot above). After deploying, run./manage.sh syncif the API was started from a disk cache that predatesinstructions_url.