Deploy markdown source files as well - #6717
Open
muuki88 wants to merge 1 commit into
Open
Conversation
✅ Deploy Preview for prebid-docs-preview ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
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.
Goal
AIs consume markdown a lot more efficient than HTML. Users shouldn't check out the repository to get markdown or fetch github URLs. Instead adding
.mdat the URL should be sufficient. (acceptheaders would be even better, but hey... )Claude Summary
_plugins/raw_markdown_generator.rb— Jekyll generator. For every page/doc whose source is .md/.markdown, emits a sibling static page at +".md" (e.g. /dev-docs/foo.html → /dev-docs/foo.html.md) containing the raw source content verbatim — no Liquid/Markdown conversion, no layout. Skips redirect_to pages and published: false, excludes generated pages from jekyll-sitemap..github/workflows/pages-deploy.yml— Actions-based Pages build: bundle exec jekyll build → upload-pages-artifact → deploy-pages. Needed because plain jekyll build isn't safe-mode-restricted the way GitHub's legacy Jekyll build is, so _plugins/*.rb actually runs.Verified the path/permalink math against a stub of Jekyll's PageWithoutAFile (real gem won't install here — system ruby 2.6, too old for current jekyll deps) — root/dir-index/nested cases all resolve correctly.
Manual step required, admin-only, I can't do it: repo Settings → Pages → Source → switch from "Deploy from a branch" to "GitHub Actions". Until that flips, this new workflow won't be the thing serving docs.prebid.org, and the legacy build will keep silently ignoring the plugin.