Compare commits

...

3 Commits

Author SHA1 Message Date
Claire Chabas a620aafe2c Update to use publishedTitle for the page title instead of linkTitle 2025-11-10 15:29:24 +00:00
Claire Chabas 8fe0be2d5e Merge branch 'main' into claire/RND-8419-support-new-sidebartitle-page-option
* main: (48 commits)
  Edgeless Assistant window on `depth: flat` sites (#3788)
  Add heredoc support for cURL JSON body (#3790)
  Update site layout and blocks with container queries (#3780)
  Rework OpenAPI Authorizations + scopes (#3786)
  Support custom cover heights (#3779)
  Update `DropdownMenu` styling (#3787)
  Treat pages without visible TOC items as `no-toc` (#3783)
  Implement unique title tags for sections & variants (#3768)
  Add page breadcrumbs to search results (#3784)
  Expand code block when printing (#3782)
  Disable Workers Observability (#3781)
  Reword "Everywhere" search scope to "All docs" (#3776)
  Add padding to TOC page group items (#3777)
  Improve OAuth2 scopes handling in OpenAPI (#3775)
  Support translations and generic variants together (#3772)
  Initialize hash on mount and improve navigation handling (#3774)
  Revert "Support cover image heights and positioning changes" (#3771)
  Fix search container shadow (#3770)
  Redirect to space base path on fallback true (#3745)
  Add isRoot prop to PagesList for root header offset (#3759)
  ...
2025-11-10 15:23:12 +00:00
Claire Chabas 69732c6339 Support new sidebar title page option 2025-10-17 19:04:28 +02:00
2 changed files with 5 additions and 3 deletions
@@ -212,7 +212,9 @@ async function PDFPageGroup(props: { space: Space; page: RevisionPageGroup }) {
'py-12'
)}
>
<h1 className={tcls('text-5xl', 'font-bold')}>{page.title}</h1>
<h1 className={tcls('text-5xl', 'font-bold')}>
{page.publishedTitle || page.title}
</h1>
</div>
</PrintPage>
);
@@ -227,7 +229,7 @@ async function PDFPageDocument(props: {
return (
<PrintPage id={getPagePDFContainerId(page)}>
<h1 className={tcls('text-4xl', 'font-bold')}>{page.title}</h1>
<h1 className={tcls('text-4xl', 'font-bold')}>{page.publishedTitle || page.title}</h1>
{page.description ? (
<p className={tcls('decoration-primary/6', 'mt-2', 'mb-3')}>{page.description}</p>
) : null}
@@ -115,7 +115,7 @@ export async function PageHeader(props: {
)}
>
<PageIcon page={page} style={['text-tint-subtle ', 'shrink-0']} />
{page.title}
{page.publishedTitle || page.title}
</h1>
) : null}
{page.description && page.layout.description ? (