diff --git a/clients/ruby/visualci.gemspec b/clients/ruby/visualci.gemspec index 11e808d07..9e1929ca2 100644 --- a/clients/ruby/visualci.gemspec +++ b/clients/ruby/visualci.gemspec @@ -16,7 +16,7 @@ Gem::Specification.new do |s| s.files = Dir['lib/**/*.rb'] + ['README.md'] s.metadata = { 'homepage_uri' => 'https://visualci.com', - 'documentation_uri' => 'https://visualci.com/docs/screenshots/#ruby-and-rspec', + 'documentation_uri' => 'https://visualci.com/docs/screenshots/rspec/', 'source_code_uri' => 'https://github.com/DocSpring/visualci', 'bug_tracker_uri' => 'https://github.com/DocSpring/visualci/issues', 'rubygems_mfa_required' => 'true' diff --git a/frontend/content/changelog.md b/frontend/content/changelog.md index 27f750f6a..11c86f531 100644 --- a/frontend/content/changelog.md +++ b/frontend/content/changelog.md @@ -7,6 +7,7 @@ What changed in VisualCI for the people and agents using it, newest first. Dates ## 2026-12-05 +- Docs links to headings with an apostrophe work: a heading like "Choose what's public" is at `#choose-whats-public`, where the page used to give it `#choose-what-39-s-public`. The Ruby gem's documentation link goes to the RSpec screenshots page. - **Gallery libraries 0.2.2, for React, Next.js, Docusaurus, VitePress and MkDocs:** `visualci-gallery-react` (a server component for Next.js's app router), `visualci-gallery-docusaurus`, `visualci-gallery-vitepress`, and an MkDocs plugin in the `visualci-gallery` Python package. Each renders the gallery into the page when the site builds, and fails the build when the manifest can't be read. [Gallery guides](/docs/gallery/#show-it-on-your-site) - **CLI 0.2.29: a gallery without CI.** `visualci publish ` pushes a full set of screenshots from your laptop (or any machine) as a build in the builds list; once it's approved on the default branch, the gallery serves it. `gallery.environment` in visualci.yml names the environment a gallery shows, and `build create --environment` sets a build's. [Publish from your laptop](/docs/gallery/without-ci/) - **Gallery thumbnails:** each published screenshot wider than 640 px gets a 640 px WebP thumbnail at a stable URL beside it (`.thumb.webp`), and the manifest lists it with each screenshot's size in bytes, so a page can show small cards and preload by size. [Gallery](/docs/gallery/) diff --git a/frontend/scripts/prerender.mjs b/frontend/scripts/prerender.mjs index 6855ca644..13eff0547 100644 --- a/frontend/scripts/prerender.mjs +++ b/frontend/scripts/prerender.mjs @@ -82,7 +82,7 @@ const headingId = (text) => text .toLowerCase() .replace(/<[^>]+>/g, '') - .replace(/&[a-z]+;/g, '') + .replace(/&(?:[a-z]+|#\d+|#x[0-9a-f]+);/g, '') // entities, named or numeric: "what's" is "whats" .replace(/[^a-z0-9]+/g, '-') .replace(/^-|-$/g, '') const marked = new Marked({