Skip to content

Conversation

@clairechabas
Copy link
Member

Support new page option to set a custom link title to be used for the table of contents and mention entries.

Useful for users to set a longer SEO-friendly title for their site while keeping the page title short in the app's UI.

⚠️ Pending API update: this PR is awaiting for the API update PR to be merged and for the API to be bumped. That's it's not building correctly for now. It'll be merged after all this is done.

@linear
Copy link

linear bot commented Nov 12, 2025

@changeset-bot
Copy link

changeset-bot bot commented Nov 12, 2025

⚠️ No Changeset found

Latest commit: b33a01a

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@github-actions
Copy link
Contributor

Summary of the deployments:

Version URL Status
Vercel
Cloudflare

Test content

Site 2v 2c
GitBook /url/gitbook.com/docs /url/gitbook.com/docs
E2E /url/gitbook.gitbook.io/test-gitbook-open /url/gitbook.gitbook.io/test-gitbook-open


export function PageDocumentItem(props: { page: ClientTOCPageDocument }) {
const { page } = props;
const title = page.linkTitle || page.title;
Copy link
Member

Choose a reason for hiding this comment

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

You don't need to this here since in packages/gitbook/src/components/TableOfContents/encodeClientTableOfContents.ts you already encode the title properly

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.

3 participants