Skip to content

fix: do not render <link rel=alternate on versioned API reference pages#2292

Merged
barjin merged 3 commits intomasterfrom
fix/respect-typedoc-plugin-versions
Feb 27, 2026
Merged

fix: do not render <link rel=alternate on versioned API reference pages#2292
barjin merged 3 commits intomasterfrom
fix/respect-typedoc-plugin-versions

Conversation

@barjin
Copy link
Copy Markdown
Member

@barjin barjin commented Feb 27, 2026

Checks the docusaurus-plugin-typedoc-api global data for available versions and only adds the markdown alternate link to "current" latest versions.

Check e.g. lychee check for 404 links on the /next pages in apify-client-js (link)

image

Note

Low Risk
Low risk: a small change to link-tag rendering that only broadens the versioned-page detection to include Typedoc plugin data, with minimal impact outside SEO/link metadata.

Overview
Prevents rendering the markdown rel="alternate" link on versioned API reference routes by expanding the versioned-page check to also consider docusaurus-plugin-typedoc-api global data (in addition to regular docs versions).

This consolidates docs + typedoc plugin version metadata and uses optional chaining when checking pluginData.versions, avoiding 404 markdown alternate links on non-latest version pages.

Written by Cursor Bugbot for commit 875061d. Configure here.

@barjin barjin requested review from janbuchar and katzino February 27, 2026 10:00
@barjin barjin self-assigned this Feb 27, 2026
@barjin barjin added the adhoc Ad-hoc unplanned task added during the sprint. label Feb 27, 2026
@github-actions github-actions Bot added this to the 135th sprint - Tooling team milestone Feb 27, 2026
@github-actions github-actions Bot added the t-tooling Issues with this label are in the ownership of the tooling team. label Feb 27, 2026
@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit 875061d and is ready at https://pr-2292.preview.docs.apify.com!

@apify-service-account
Copy link
Copy Markdown

Preview for this PR was built for commit f68d8152 and is ready at https://pr-2292.preview.docs.apify.com!

@barjin barjin merged commit 2b39751 into master Feb 27, 2026
14 checks passed
@barjin barjin deleted the fix/respect-typedoc-plugin-versions branch February 27, 2026 12:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants