Skip to content

Deploy markdown source files as well - #6717

Open
muuki88 wants to merge 1 commit into
masterfrom
markdown-sources
Open

Deploy markdown source files as well#6717
muuki88 wants to merge 1 commit into
masterfrom
markdown-sources

Conversation

@muuki88

@muuki88 muuki88 commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

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 .md at the URL should be sufficient. ( accept headers 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.

@netlify

netlify Bot commented Aug 25, 2026

Copy link
Copy Markdown

Deploy Preview for prebid-docs-preview ready!

Name Link
🔨 Latest commit e721d57
🔍 Latest deploy log https://app.netlify.com/projects/prebid-docs-preview/deploys/6a8d65f003154a0008ec599a
😎 Deploy Preview https://deploy-preview-6717--prebid-docs-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@muuki88 muuki88 added the enhancement site formatting suggestions label Aug 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement site formatting suggestions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant