Library

sourcey v3.9.2

Versionv3.9.2
Stars★ 1,376
Released2026-10-26

Precision documentation from OpenAPI, MCP, Doxygen, and Markdown guides. Static HTML you own.

Release notes

### Added

- A site's own components live in `components/`, beside its config, each file named for the component it is. An HTML file is drawn as written, with what a page puts inside it where it writes `<slot />`, and a `.tsx` or `.jsx` file is a Preact component, drawn with Sourcey's own Preact so the site installs none. A file with a built-in's name replaces the built-in. `Head`, `Banner`, `ContentEnd` and `BodyEnd` add to every page, for analytics and the like, and `Header` and `Footer` replace the theme's. `componentsDir` names another folder, or `false` for none.
- A not-found page marks its root `<html data-sourcey-page="not-found">`, so a site's analytics can count missing pages.
- `feedback: true` ends each documentation, reference and changelog page by asking "Was this page helpful?" in the page's language. An answer shows its note and dispatches a `sourcey:feedback` event, `{ value, page }`, which the site's own script sends where it keeps feedback; Sourcey sends nothing. A site can name its own title, ratings, values, icons and notes, and frontmatter `feedback: false` leaves it off a page. `sourcey migrate mkdocs` carries Material's feedback question and `hide: [feedback]`.
- Each build reports a link to a path on the site that no page, file or redirect answers, and `brokenLinks: "error"` has `sourcey build` stop on one before writing anything; the dev server reports them either way. Docusaurus's `onBrokenLinks: "throw"`, its default, and MkDocs's `strict: true` migrate to `"error"`.
- A `github` navbar link with `stats: true` shows its repository's latest release, stars and forks, read from GitHub when the site builds, with `GITHUB_TOKEN` when set. When GitHub does not answer, the build warns and draws the plain link.
- `navigation.breadcrumbs: true` opens each documentation and reference page with the way to it: the site's home, its tab and each section around it, linked where a section has a page of its own. `sourcey migrate` turns it on where Material's `navigation.path` or Docusaurus's breadcrumbs drew one.
- `lastUpdated: true` dates each documentation page and changelog by its file's last commit, beside "Edit this page" in the page's language, and in the sitemap. A shallow checkout stops the build rather than dating every page by its one commit. `sourcey migrate` carries MkDocs's git revision date plugins, Docusaurus's `showLastUpdateTime` and Starlight's `lastUpdated`.
- Git graphs (`gitGraph`) are drawn, as Mermaid reads and lays them out: a lane for each branch, merges, reverts, highlights, cherry-picks and tags, left to right, top to bottom or bottom to top. Sourcey had shown their source. They come with `@sourcey/beautiful-mermaid` 1.1.6.
- Footnotes, written as GitHub writes them (`[^label]` and `[^label]: note`), are numbered in reading order across the page and drawn at its end with a link back. They had shown as text. `sourcey migrate mkdocs` writes Material's annotations as footnotes.
- `sourcey migrate mkdocs` carries `site_author`, Material's Google or custom analytics and `extra_javascript` into the site's components, and `sourcey migrate docusaurus` carries `headTags`, `stylesheets`, `scripts` and Google Analytics. Both had listed them as not carried over.

### Changed

- "Edit this page" opens the page's file on GitHub, which anyone can read, with GitHub's editor one click away for whoever can edit. It had opened the editor itself, which sends a visitor who is not signed in, and every crawler, to GitHub's sign-in page. API source links are built the same way.

### Fixed

- A page of the site's own (`layout: page`) keeps its text to a reading measure, while HTML its author draws keeps the page's width. Its lines had run the window's width.
- A diagram's frontmatter `title`, such as a pie chart's, is drawn as its title, as Mermaid draws it. It had been left out.
- A component written in a sentence draws what it holds as part of the sentence, where a site's component had drawn it as a paragraph in…

Share this resource


Discovered 2026-10-27 Source GitHub Archive 2026-10 →