Skip to content

docs: Expose raw markdown source for every page#563

Merged
JeanMertz merged 1 commit intomainfrom
prr129
Apr 16, 2026
Merged

docs: Expose raw markdown source for every page#563
JeanMertz merged 1 commit intomainfrom
prr129

Conversation

@JeanMertz
Copy link
Copy Markdown
Collaborator

Each built page now also ships its .md source file at the same URL path (e.g. /getting-started.md). A buildEnd hook in the VitePress config iterates over all pages and copies the source files into the output directory.

A new PageActions Vue component renders a subtle "View Markdown" link at the top of every non-home page, pointing directly to the raw .md file. This makes it easy for LLMs and other tools to fetch clean markdown without parsing HTML.

The RFD summary loader is also updated to detect stale summaries (where the file content has changed since the hash was recorded) in addition to missing ones, so the build will fail with a clear message for both cases.

Each built page now also ships its `.md` source file at the same URL
path (e.g. `/getting-started.md`). A `buildEnd` hook in the VitePress
config iterates over all pages and copies the source files into the
output directory.

A new `PageActions` Vue component renders a subtle "View Markdown" link
at the top of every non-home page, pointing directly to the raw `.md`
file. This makes it easy for LLMs and other tools to fetch clean
markdown without parsing HTML.

The RFD summary loader is also updated to detect stale summaries (where
the file content has changed since the hash was recorded) in addition to
missing ones, so the build will fail with a clear message for both
cases.

Signed-off-by: Jean Mertz <git@jeanmertz.com>
@JeanMertz JeanMertz merged commit b5d9e89 into main Apr 16, 2026
13 checks passed
@JeanMertz JeanMertz deleted the prr129 branch April 16, 2026 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant