@brillout/docpress 0.6.21-commit-05759d2 → 0.6.21-commit-c920754

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PageLayout.tsx CHANGED
@@ -7,6 +7,7 @@ import { PageContextProvider, PageContextProvider2 } from './renderer/usePageCon
7
7
  import './PageLayout.css'
8
8
  import { NavigationFullscreenButton } from './navigation/navigation-fullscreen/NavigationFullscreenButton'
9
9
  import type { PageContext } from 'vike/types'
10
+ import { parseTitle } from './parseTitle'
10
11
 
11
12
  export { PageLayout }
12
13
 
@@ -16,6 +17,7 @@ function PageLayout({
16
17
  pageContext2,
17
18
  }: { pageContext: PageContextResolved; children: React.ReactNode; pageContext2: PageContext }) {
18
19
  const { isLandingPage, pageTitle, navigationData } = pageContext
20
+ const pageTitleParsed = pageTitle && parseTitle(pageTitle)
19
21
  const { globalNote } = pageContext.config
20
22
  return (
21
23
  <React.StrictMode>
@@ -31,7 +33,7 @@ function PageLayout({
31
33
  <MobileHeader />
32
34
  <div className="page-content">
33
35
  {globalNote}
34
- {pageTitle && <h1 id={`${navigationData.currentUrl.replace('/', '')}`}>{pageTitle}</h1>}
36
+ {pageTitleParsed && <h1 id={`${navigationData.currentUrl.replace('/', '')}`}>{pageTitleParsed}</h1>}
35
37
  {children}
36
38
  {!isLandingPage && <EditPageNote pageContext={pageContext} />}
37
39
  </div>
@@ -24,7 +24,7 @@ var config = {
24
24
  }),
25
25
  ],
26
26
  optimizeDeps: {
27
- include: ['react', 'react-dom', 'react-dom/client', '@docsearch/react', 'vike-contributors'],
27
+ include: ['react', 'react-dom', 'react-dom/client'],
28
28
  exclude: ['@brillout/docpress'],
29
29
  },
30
30
  ssr: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.6.21-commit-05759d2",
3
+ "version": "0.6.21-commit-c920754",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "// Build vite.config.ts and +config.ts": "",
package/vite.config.ts CHANGED
@@ -27,7 +27,7 @@ const config: UserConfig = {
27
27
  }),
28
28
  ],
29
29
  optimizeDeps: {
30
- include: ['react', 'react-dom', 'react-dom/client', '@docsearch/react', 'vike-contributors'],
30
+ include: ['react', 'react-dom', 'react-dom/client'],
31
31
  exclude: ['@brillout/docpress'],
32
32
  },
33
33
  ssr: {