Skip to content

Site: Add version URL alias hook for docs#16496

Merged
kevinjqliu merged 1 commit into
apache:mainfrom
kevinjqliu:kevinjqliu/fix-site-version-alias
May 21, 2026
Merged

Site: Add version URL alias hook for docs#16496
kevinjqliu merged 1 commit into
apache:mainfrom
kevinjqliu:kevinjqliu/fix-site-version-alias

Conversation

@kevinjqliu
Copy link
Copy Markdown
Contributor

When running the site locally, /docs/latest/ works but /docs/1.11.0/ does not.
This adds an mkdocs on_post_build hook that creates a symlink from docs/<version>/ to docs/latest/ in the built site output, so both URLs resolve to the same content without duplicating the navigation entry.

Tested locally with (cd site && make serve-dev)

@github-actions github-actions Bot added the docs label May 20, 2026
Copy link
Copy Markdown
Contributor

@huaxingao huaxingao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@kevinjqliu kevinjqliu merged commit d0a4954 into apache:main May 21, 2026
19 checks passed
@kevinjqliu kevinjqliu deleted the kevinjqliu/fix-site-version-alias branch May 21, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants