@brillout/docpress 0.15.0 → 0.15.1
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/Layout.tsx +2 -3
- package/dist/types/Config.d.ts +1 -1
- package/package.json +1 -1
- package/types/Config.ts +1 -1
package/Layout.tsx
CHANGED
|
@@ -18,7 +18,6 @@ import { autoScrollNav_SSR } from './autoScrollNav'
|
|
|
18
18
|
import { SearchLink } from './docsearch/SearchLink'
|
|
19
19
|
import { navigate } from 'vike/client/router'
|
|
20
20
|
import { css } from './utils/css'
|
|
21
|
-
import { PassThrough } from './utils/PassTrough'
|
|
22
21
|
import { Style } from './utils/Style'
|
|
23
22
|
import { cls } from './utils/cls'
|
|
24
23
|
import { iconBooks } from './icons'
|
|
@@ -282,7 +281,7 @@ const menuLinkStyle: React.CSSProperties = {
|
|
|
282
281
|
function NavHead({ isNavLeft }: { isNavLeft?: true }) {
|
|
283
282
|
const pageContext = usePageContext()
|
|
284
283
|
const { isLandingPage } = pageContext.conf
|
|
285
|
-
const { navMaxWidth, name } = pageContext.globalContext.config.docpress
|
|
284
|
+
const { navMaxWidth, name, algolia } = pageContext.globalContext.config.docpress
|
|
286
285
|
|
|
287
286
|
const navSecondaryContent = (
|
|
288
287
|
<div
|
|
@@ -351,7 +350,7 @@ function NavHead({ isNavLeft }: { isNavLeft?: true }) {
|
|
|
351
350
|
>
|
|
352
351
|
<NavLogo className="grow-half" />
|
|
353
352
|
{!isNavLeft && <div className="desktop-grow" />}
|
|
354
|
-
<SearchLink className="grow-half" style={menuLinkStyle} />
|
|
353
|
+
{algolia && <SearchLink className="grow-half" style={menuLinkStyle} />}
|
|
355
354
|
<MenuToggleMain className="grow-full" style={menuLinkStyle} />
|
|
356
355
|
{navSecondaryContent}
|
|
357
356
|
</div>
|
package/dist/types/Config.d.ts
CHANGED
|
@@ -24,8 +24,8 @@ type Config = {
|
|
|
24
24
|
i18n?: true;
|
|
25
25
|
pressKit?: true;
|
|
26
26
|
docsDir?: string;
|
|
27
|
-
globalNote?: React.ReactNode;
|
|
28
27
|
topNavigation?: React.ReactNode;
|
|
28
|
+
globalNote?: React.ReactNode;
|
|
29
29
|
navMaxWidth?: number;
|
|
30
30
|
navLogoSize?: number;
|
|
31
31
|
navLogoStyle?: React.CSSProperties;
|
package/package.json
CHANGED
package/types/Config.ts
CHANGED