@brillout/docpress 0.7.5 → 0.7.7

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.css CHANGED
@@ -22,10 +22,10 @@
22
22
  .landing-page .page-wrapper {
23
23
  --main-view-max-width: 1010px;
24
24
  }
25
- .page-wrapper {
25
+ .page-layout:not(.noSideNavigation) .page-wrapper {
26
26
  max-width: calc(var(--main-view-max-width) + 80px);
27
27
  }
28
- .page-content {
28
+ .page-layout:not(.noSideNavigation) .page-content {
29
29
  box-sizing: content-box;
30
30
  max-width: var(--main-view-max-width);
31
31
  padding: 20px var(--main-view-padding);
package/Layout.tsx CHANGED
@@ -9,11 +9,13 @@ import { NavigationFullscreenButton } from './navigation/navigation-fullscreen/N
9
9
  import { parseTitle } from './parseTitle'
10
10
  import { usePageContext, usePageContext2 } from './renderer/usePageContext'
11
11
  import { Links } from './navigation/NavigationHeader'
12
+ import { hotkeyLabel } from './navigation/navigation-fullscreen/hotkeyLabel'
12
13
 
13
14
  function Layout({ children }: { children: React.ReactNode }) {
14
15
  const pageContext = usePageContext()
15
16
  const pageContext2 = usePageContext2()
16
- const { isLandingPage, pageTitle, navigationData, noSideNavigation, topNavigationList } = pageContext
17
+ const { isLandingPage, pageTitle, navigationData, noSideNavigation, topNavigationList, topNavigationStyle } =
18
+ pageContext
17
19
  const pageTitleParsed = pageTitle && parseTitle(pageTitle)
18
20
  const { globalNote } = pageContext.config
19
21
  const { NavHeader } = pageContext2.config.NavHeader!
@@ -27,23 +29,28 @@ function Layout({ children }: { children: React.ReactNode }) {
27
29
  display: 'flex',
28
30
  color: 'inherit',
29
31
  alignItems: 'center',
30
- justifyContent: 'space-between',
32
+ justifyContent: noSideNavigation === 'no-logo' ? 'center' : 'space-between',
31
33
  textDecoration: 'none',
32
- maxWidth: 1024,
33
- margin: 'auto',
34
+ marginBottom: 'var(--block-margin)',
35
+ backgroundColor: 'var(--bg-color)',
36
+ ...topNavigationStyle,
34
37
  }}
35
38
  >
36
- <a href="/" style={{ display: 'flex', alignItems: 'center', color: 'inherit' }}>
37
- <NavHeader />
38
- </a>
39
+ {noSideNavigation !== 'no-logo' && (
40
+ <a href="/" style={{ display: 'flex', alignItems: 'center', color: 'inherit' }}>
41
+ <NavHeader />
42
+ </a>
43
+ )}
39
44
  <div style={{ display: 'flex', alignItems: 'center' }}>
40
- <TopNavigationLink id="doclink">Documentation</TopNavigationLink>
45
+ <TopNavigationLink id="doclink" aria-label={hotkeyLabel} data-balloon-pos="left">
46
+ Documentation
47
+ </TopNavigationLink>
41
48
  {topNavigationList.map(({ title, url }) => (
42
49
  <TopNavigationLink href={url!} key={url}>
43
50
  {title}
44
51
  </TopNavigationLink>
45
52
  ))}
46
- <Links style={{ display: 'inline-flex', marginLeft: 10 }} />
53
+ <Links style={{ display: 'inline-flex', marginLeft: 5 }} />
47
54
  </div>
48
55
  </div>
49
56
  )}
@@ -14,7 +14,7 @@
14
14
  }
15
15
  .DocSearch-Button {
16
16
  background: transparent !important;
17
- padding: 3px !important;
17
+ padding: 5px !important;
18
18
  outline: none !important;
19
19
  border: none !important;
20
20
  box-shadow: none !important;
@@ -2,7 +2,7 @@ export { Contributors, Maintainer }
2
2
 
3
3
  import React from 'react'
4
4
  import { usePageContext } from '../renderer/usePageContext'
5
- import { Supporter, SupporterSection, SectionDescription, Individuals, SupporterImg } from './Supporters'
5
+ import { Supporter, SupporterSection, Individuals, SupporterImg } from './Supporters'
6
6
  import { maintainers } from '../data/maintainersList'
7
7
  import { contributors } from 'vike-contributors' // sorted by number of contributions
8
8
 
@@ -11,9 +11,14 @@ function Contributors() {
11
11
  const { projectInfo } = pageContext.config
12
12
  return (
13
13
  <SupporterSection>
14
- <SectionDescription>
14
+ <p
15
+ style={{
16
+ maxWidth: 400,
17
+ display: 'inline-block',
18
+ }}
19
+ >
15
20
  {projectInfo.projectName} is built and maintained by passionate contributors.
16
- </SectionDescription>
21
+ </p>
17
22
  <div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'space-evenly', alignItems: 'end' }}>
18
23
  {maintainers.map((maintainer, i) => (
19
24
  <Maintainer maintainer={maintainer} key={i} />
@@ -1,5 +1,5 @@
1
1
  <svg width="59.641mm" height="13.076mm" version="1.1" viewBox="0 0 59.641 13.076" xmlns="http://www.w3.org/2000/svg">
2
2
  <g transform="translate(-91.006 -265.33)">
3
- <path d="m103.72 265.33s-2.2571 0.0965-2.6687 0.40101c-0.9913 0.76735-1.5833 2.111-1.5833 2.111l-3.6393 7.2347c-0.28736 0.57132-1.024 2.1272-1.3956 2.4918-0.55117 0.83221-2.8381 0.81625-3.4273 0.83715h59.641c-0.5892-0.0209-2.8761-5e-3 -3.4273-0.83715-0.37156-0.36462-1.1082-1.9205-1.3956-2.4918l-3.6393-7.2347s-0.59202-1.3436-1.5833-2.111c-0.41164-0.30452-2.6683-0.40101-2.6683-0.40101h-28.632z" fill="#f0f0f0"/>
3
+ <path d="m103.72 265.33s-2.2571 0.0965-2.6687 0.40101c-0.9913 0.76735-1.5833 2.111-1.5833 2.111l-3.6393 7.2347c-0.28736 0.57132-1.024 2.1272-1.3956 2.4918-0.55117 0.83221-2.8381 0.81625-3.4273 0.83715h59.641c-0.5892-0.0209-2.8761-5e-3 -3.4273-0.83715-0.37156-0.36462-1.1082-1.9205-1.3956-2.4918l-3.6393-7.2347s-0.59202-1.3436-1.5833-2.111c-0.41164-0.30452-2.6683-0.40101-2.6683-0.40101h-28.632z" fill="#ebebeb"/>
4
4
  </g>
5
5
  </svg>
@@ -84,7 +84,7 @@ function CompanyDiv({ sponsor }: { sponsor: Sponsor }) {
84
84
  <Label sponsor={sponsor} />
85
85
  <div
86
86
  style={{
87
- backgroundColor: '#f0f0f0',
87
+ backgroundColor: '#ebebeb',
88
88
  borderRadius: 7,
89
89
  overflow: 'hidden',
90
90
  width,
@@ -127,7 +127,7 @@ function Label({ sponsor }: { sponsor: Sponsor }) {
127
127
 
128
128
  function getLabelBg(sponsor: SponsorCompany) {
129
129
  const height = sponsor.plan === 'platinum' ? 32 : 24
130
- return <img src={labelBgImg} style={{ height, position: 'absolute', bottom: 0, zIndex: -1 }} />
130
+ return <img src={labelBgImg} style={{ height, position: 'absolute', bottom: 0 }} />
131
131
  }
132
132
 
133
133
  function getLabelText(sponsor: SponsorCompany) {
@@ -166,9 +166,9 @@ function getLabelText(sponsor: SponsorCompany) {
166
166
  function getLabelIcon(sponsor: SponsorCompany) {
167
167
  let medalSrc: string
168
168
  if (sponsor.plan === 'platinum') {
169
- return <Emoji name="trophy" style={{ fontSize: '1.3em' }} />
169
+ return <Emoji name="trophy" style={{ fontSize: '1.3em', position: 'relative' }} />
170
170
  } else if (sponsor.plan === 'indie') {
171
- return <Emoji name="ribbon" style={{ fontSize: '0.9em' /*, position: 'relative', top: -1*/ }} />
171
+ return <Emoji name="ribbon" style={{ fontSize: '0.9em', position: 'relative', top: 1 }} />
172
172
  } else if (sponsor.plan === 'gold') {
173
173
  medalSrc = medalGold
174
174
  } else if (sponsor.plan === 'silver') {
@@ -11,7 +11,6 @@ function SupporterSection({ children }: { children?: Children }) {
11
11
  <div
12
12
  style={{
13
13
  textAlign: 'center',
14
- marginTop: 19,
15
14
  }}
16
15
  >
17
16
  {children}
@@ -23,7 +23,7 @@ function resolvePageContext(pageContext: PageContextOriginal) {
23
23
  objectAssign(pageContextResolved, resolveHeadingsData(pageContext))
24
24
 
25
25
  const config = getConfig()
26
- const { faviconUrl, algolia, tagline, twitterHandle, bannerUrl, websiteUrl } = config
26
+ const { faviconUrl, algolia, tagline, twitterHandle, bannerUrl, websiteUrl, topNavigationStyle } = config
27
27
  objectAssign(pageContextResolved, {
28
28
  urlPathname: pageContext.urlPathname, // TODO: remove
29
29
  meta: {
@@ -34,6 +34,7 @@ function resolvePageContext(pageContext: PageContextOriginal) {
34
34
  tagline,
35
35
  algolia,
36
36
  },
37
+ topNavigationStyle,
37
38
  config,
38
39
  })
39
40
 
@@ -0,0 +1,4 @@
1
+ html {
2
+ --bg-color: #f5f5f7;
3
+ --block-margin: 5px;
4
+ }
package/css/index.css CHANGED
@@ -1,4 +1,5 @@
1
1
  @import './reset.css';
2
+ @import './block-design.css';
2
3
  @import './colorize-on-hover.css';
3
4
  @import './heading.css';
4
5
  @import './button.css';
@@ -1,14 +1,17 @@
1
1
  export { Contributors, Maintainer };
2
2
  import React from 'react';
3
3
  import { usePageContext } from '../renderer/usePageContext';
4
- import { Supporter, SupporterSection, SectionDescription, Individuals, SupporterImg } from './Supporters';
4
+ import { Supporter, SupporterSection, Individuals, SupporterImg } from './Supporters';
5
5
  import { maintainers } from '../data/maintainersList';
6
6
  import { contributors } from 'vike-contributors'; // sorted by number of contributions
7
7
  function Contributors() {
8
8
  var pageContext = usePageContext();
9
9
  var projectInfo = pageContext.config.projectInfo;
10
10
  return (React.createElement(SupporterSection, null,
11
- React.createElement(SectionDescription, null,
11
+ React.createElement("p", { style: {
12
+ maxWidth: 400,
13
+ display: 'inline-block',
14
+ } },
12
15
  projectInfo.projectName,
13
16
  " is built and maintained by passionate contributors."),
14
17
  React.createElement("div", { style: { display: 'flex', flexWrap: 'wrap', justifyContent: 'space-evenly', alignItems: 'end' } }, maintainers.map(function (maintainer, i) { return (React.createElement(Maintainer, { maintainer: maintainer, key: i })); })),
@@ -44,7 +44,7 @@ function CompanyDiv(_a) {
44
44
  } },
45
45
  React.createElement(Label, { sponsor: sponsor }),
46
46
  React.createElement("div", { style: {
47
- backgroundColor: '#f0f0f0',
47
+ backgroundColor: '#ebebeb',
48
48
  borderRadius: 7,
49
49
  overflow: 'hidden',
50
50
  width: width,
@@ -77,7 +77,7 @@ function Label(_a) {
77
77
  }
78
78
  function getLabelBg(sponsor) {
79
79
  var height = sponsor.plan === 'platinum' ? 32 : 24;
80
- return React.createElement("img", { src: labelBgImg, style: { height: height, position: 'absolute', bottom: 0, zIndex: -1 } });
80
+ return React.createElement("img", { src: labelBgImg, style: { height: height, position: 'absolute', bottom: 0 } });
81
81
  }
82
82
  function getLabelText(sponsor) {
83
83
  if (sponsor.plan === 'platinum') {
@@ -107,10 +107,10 @@ function getLabelText(sponsor) {
107
107
  function getLabelIcon(sponsor) {
108
108
  var medalSrc;
109
109
  if (sponsor.plan === 'platinum') {
110
- return React.createElement(Emoji, { name: "trophy", style: { fontSize: '1.3em' } });
110
+ return React.createElement(Emoji, { name: "trophy", style: { fontSize: '1.3em', position: 'relative' } });
111
111
  }
112
112
  else if (sponsor.plan === 'indie') {
113
- return React.createElement(Emoji, { name: "ribbon", style: { fontSize: '0.9em' /*, position: 'relative', top: -1*/ } });
113
+ return React.createElement(Emoji, { name: "ribbon", style: { fontSize: '0.9em', position: 'relative', top: 1 } });
114
114
  }
115
115
  else if (sponsor.plan === 'gold') {
116
116
  medalSrc = medalGold;
@@ -5,7 +5,6 @@ function SupporterSection(_a) {
5
5
  var children = _a.children;
6
6
  return (React.createElement("div", { style: {
7
7
  textAlign: 'center',
8
- marginTop: 19,
9
8
  } }, children));
10
9
  }
11
10
  function SectionDescription(_a) {
@@ -13,7 +13,7 @@ declare function resolveHeadingsData(pageContext: PageContextOriginal): {
13
13
  isLandingPage: boolean;
14
14
  pageTitle: string | null;
15
15
  documentTitle: string;
16
- noSideNavigation: true | undefined;
16
+ noSideNavigation: (true | "no-logo") | undefined;
17
17
  topNavigationList: {
18
18
  title: string;
19
19
  url: string | null | undefined;
@@ -20,7 +20,7 @@ declare function resolvePageContext(pageContext: PageContextOriginal): {
20
20
  isLandingPage: boolean;
21
21
  pageTitle: string | null;
22
22
  documentTitle: string;
23
- noSideNavigation: true | undefined;
23
+ noSideNavigation: (true | "no-logo") | undefined;
24
24
  topNavigationList: {
25
25
  title: string;
26
26
  url: string | null | undefined;
@@ -39,5 +39,6 @@ declare function resolvePageContext(pageContext: PageContextOriginal): {
39
39
  indexName: string;
40
40
  } | null;
41
41
  };
42
+ topNavigationStyle: import("react").CSSProperties | undefined;
42
43
  config: import("../types/Config").Config;
43
44
  };
@@ -6,7 +6,7 @@ function resolvePageContext(pageContext) {
6
6
  var pageContextResolved = {};
7
7
  objectAssign(pageContextResolved, resolveHeadingsData(pageContext));
8
8
  var config = getConfig();
9
- var faviconUrl = config.faviconUrl, algolia = config.algolia, tagline = config.tagline, twitterHandle = config.twitterHandle, bannerUrl = config.bannerUrl, websiteUrl = config.websiteUrl;
9
+ var faviconUrl = config.faviconUrl, algolia = config.algolia, tagline = config.tagline, twitterHandle = config.twitterHandle, bannerUrl = config.bannerUrl, websiteUrl = config.websiteUrl, topNavigationStyle = config.topNavigationStyle;
10
10
  objectAssign(pageContextResolved, {
11
11
  urlPathname: pageContext.urlPathname, // TODO: remove
12
12
  meta: {
@@ -17,6 +17,7 @@ function resolvePageContext(pageContext) {
17
17
  tagline: tagline,
18
18
  algolia: algolia,
19
19
  },
20
+ topNavigationStyle: topNavigationStyle,
20
21
  config: config,
21
22
  });
22
23
  return pageContextResolved;
@@ -45,10 +45,10 @@ function Links(_a) {
45
45
  return (React.createElement("div", { style: __assign({ display: 'flex', alignItems: 'center', paddingTop: 0, justifyContent: 'left' }, style) },
46
46
  algolia && (React.createElement("div", { className: "decolorize-6 colorize-on-hover" },
47
47
  React.createElement(DocSearch, { appId: algolia.appId, indexName: algolia.indexName, apiKey: algolia.apiKey, insights: true, hitComponent: Hit }))),
48
- React.createElement(LinkIcon, { className: "decolorize-4", icon: iconGithub, href: projectInfo.githubRepository }),
48
+ iconI18n,
49
49
  projectInfo.discordInvite && (React.createElement(LinkIcon, { className: "decolorize-6", icon: iconDiscord, href: projectInfo.discordInvite })),
50
50
  React.createElement(LinkIcon, { className: "decolorize-4", icon: iconTwitter, href: projectInfo.twitterProfile }),
51
- iconI18n,
51
+ React.createElement(LinkIcon, { className: "decolorize-4", icon: iconGithub, href: projectInfo.githubRepository }),
52
52
  React.createElement(ChangelogButton, null)));
53
53
  }
54
54
  function ChangelogButton() {
@@ -58,7 +58,7 @@ function ChangelogButton() {
58
58
  display: 'flex',
59
59
  alignItems: 'center',
60
60
  padding: '1px 7px',
61
- marginLeft: 2,
61
+ marginLeft: 5,
62
62
  fontSize: '0.97em',
63
63
  color: 'inherit',
64
64
  } },
@@ -70,6 +70,6 @@ function ChangelogButton() {
70
70
  function LinkIcon(_a) {
71
71
  var className = _a.className, icon = _a.icon, href = _a.href, style = _a.style;
72
72
  return (React.createElement(React.Fragment, null,
73
- React.createElement("a", { className: 'colorize-on-hover ' + className, href: href, style: { padding: 3, display: 'inline-block', lineHeight: 0 } },
73
+ React.createElement("a", { className: 'colorize-on-hover ' + className, href: href, style: { padding: 5, display: 'inline-block', lineHeight: 0 } },
74
74
  React.createElement("img", { src: icon, height: "20", style: style }))));
75
75
  }
@@ -3,6 +3,7 @@ export { NavigationFullscreenClose };
3
3
  import React from 'react';
4
4
  import './NavigationFullscreenButton.css';
5
5
  import closeIcon from './close.svg';
6
+ import { hotkeyLabel } from './hotkeyLabel';
6
7
  function NavigationFullscreenButton() {
7
8
  return (React.createElement(React.Fragment, null,
8
9
  React.createElement("a", { id: "navigation-fullscreen-button" },
@@ -14,9 +15,9 @@ function NavigationFullscreenButton() {
14
15
  overflow: 'hidden',
15
16
  } },
16
17
  React.createElement("div", null)),
17
- React.createElement("div", { style: { position: 'fixed', height: '100vh', width: 20 }, "aria-label": "Press <Esc>", "data-balloon-pos": "right" }))));
18
+ React.createElement("div", { style: { position: 'fixed', height: '100vh', width: 20 }, "aria-label": hotkeyLabel, "data-balloon-pos": "right" }))));
18
19
  }
19
20
  function NavigationFullscreenClose() {
20
- return (React.createElement("a", { id: "navigation-fullscreen-close", style: { position: 'absolute', top: 11, right: 11, zIndex: 10 }, "aria-label": "Press <Esc>", "data-balloon-pos": "left" },
21
+ return (React.createElement("a", { id: "navigation-fullscreen-close", style: { position: 'absolute', top: 11, right: 11, zIndex: 10 }, "aria-label": hotkeyLabel, "data-balloon-pos": "left" },
21
22
  React.createElement("img", { src: closeIcon, height: 50, width: 50, style: { display: 'block' } })));
22
23
  }
@@ -0,0 +1 @@
1
+ export declare const hotkeyLabel = "Hotkey <Esc>";
@@ -0,0 +1 @@
1
+ export var hotkeyLabel = 'Hotkey <Esc>';
@@ -18,6 +18,7 @@ type Config = {
18
18
  };
19
19
  headings: HeadingDefinition[];
20
20
  headingsDetached: HeadingDetachedDefinition[];
21
+ topNavigationStyle?: React.CSSProperties;
21
22
  /** Sets `<meta name="description" content="${tagline}" />` */
22
23
  tagline: string;
23
24
  websiteUrl: string;
@@ -7,7 +7,7 @@ type HeadingResolved = {
7
7
  level: number;
8
8
  title: string;
9
9
  titleInNav: string;
10
- noSideNavigation?: true;
10
+ noSideNavigation?: NoSideNavigation;
11
11
  topNavigation?: true | string;
12
12
  linkBreadcrumb: string[];
13
13
  sectionTitles?: string[];
@@ -27,7 +27,7 @@ type HeadingDetachedDefinition = HeadingDefinitionCommon & {
27
27
  type HeadingDefinition = HeadingDefinitionCommon & {
28
28
  url?: null | string;
29
29
  titleInNav?: string;
30
- noSideNavigation?: true;
30
+ noSideNavigation?: NoSideNavigation;
31
31
  } & HeadingDefinitionLevel & Tmp;
32
32
  type IsCategory = {
33
33
  url?: undefined;
@@ -47,3 +47,4 @@ type HeadingDefinitionLevel = ({
47
47
  type Tmp = {
48
48
  titleDocument?: string;
49
49
  };
50
+ type NoSideNavigation = true | 'no-logo';
@@ -81,12 +81,12 @@ function Links({ style }: { style?: React.CSSProperties }) {
81
81
  />
82
82
  </div>
83
83
  )}
84
- <LinkIcon className="decolorize-4" icon={iconGithub} href={projectInfo.githubRepository} />
84
+ {iconI18n}
85
85
  {projectInfo.discordInvite && (
86
86
  <LinkIcon className="decolorize-6" icon={iconDiscord} href={projectInfo.discordInvite} />
87
87
  )}
88
88
  <LinkIcon className="decolorize-4" icon={iconTwitter} href={projectInfo.twitterProfile} />
89
- {iconI18n}
89
+ <LinkIcon className="decolorize-4" icon={iconGithub} href={projectInfo.githubRepository} />
90
90
  <ChangelogButton />
91
91
  </div>
92
92
  )
@@ -103,7 +103,7 @@ function ChangelogButton() {
103
103
  display: 'flex',
104
104
  alignItems: 'center',
105
105
  padding: '1px 7px',
106
- marginLeft: 2,
106
+ marginLeft: 5,
107
107
  fontSize: '0.97em',
108
108
  color: 'inherit',
109
109
  }}
@@ -122,7 +122,7 @@ function LinkIcon({ className, icon, href, style }: { className: string; icon: s
122
122
  <a
123
123
  className={'colorize-on-hover ' + className}
124
124
  href={href}
125
- style={{ padding: 3, display: 'inline-block', lineHeight: 0 }}
125
+ style={{ padding: 5, display: 'inline-block', lineHeight: 0 }}
126
126
  >
127
127
  <img src={icon} height="20" style={style} />
128
128
  </a>
@@ -4,6 +4,7 @@ export { NavigationFullscreenClose }
4
4
  import React from 'react'
5
5
  import './NavigationFullscreenButton.css'
6
6
  import closeIcon from './close.svg'
7
+ import { hotkeyLabel } from './hotkeyLabel'
7
8
 
8
9
  function NavigationFullscreenButton() {
9
10
  return (
@@ -22,7 +23,7 @@ function NavigationFullscreenButton() {
22
23
  </div>
23
24
  <div
24
25
  style={{ position: 'fixed', height: '100vh', width: 20 }}
25
- aria-label="Press <Esc>"
26
+ aria-label={hotkeyLabel}
26
27
  data-balloon-pos="right"
27
28
  ></div>
28
29
  </a>
@@ -35,7 +36,7 @@ function NavigationFullscreenClose() {
35
36
  <a
36
37
  id="navigation-fullscreen-close"
37
38
  style={{ position: 'absolute', top: 11, right: 11, zIndex: 10 }}
38
- aria-label="Press <Esc>"
39
+ aria-label={hotkeyLabel}
39
40
  data-balloon-pos="left"
40
41
  >
41
42
  <img src={closeIcon} height={50} width={50} style={{ display: 'block' }} />
@@ -0,0 +1 @@
1
+ export const hotkeyLabel = 'Hotkey <Esc>'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@brillout/docpress",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "type": "module",
5
5
  "dependencies": {
6
6
  "@brillout/picocolors": "^1.0.10",
package/types/Config.ts CHANGED
@@ -20,6 +20,7 @@ type Config = {
20
20
  }
21
21
  headings: HeadingDefinition[]
22
22
  headingsDetached: HeadingDetachedDefinition[]
23
+ topNavigationStyle?: React.CSSProperties
23
24
 
24
25
  /** Sets `<meta name="description" content="${tagline}" />` */
25
26
  tagline: string
package/types/Heading.ts CHANGED
@@ -8,7 +8,7 @@ type HeadingResolved = {
8
8
  level: number
9
9
  title: string
10
10
  titleInNav: string
11
- noSideNavigation?: true
11
+ noSideNavigation?: NoSideNavigation
12
12
  topNavigation?: true | string
13
13
  linkBreadcrumb: string[]
14
14
  sectionTitles?: string[]
@@ -32,7 +32,7 @@ type HeadingDetachedDefinition = HeadingDefinitionCommon & {
32
32
  type HeadingDefinition = HeadingDefinitionCommon & {
33
33
  url?: null | string
34
34
  titleInNav?: string
35
- noSideNavigation?: true
35
+ noSideNavigation?: NoSideNavigation
36
36
  } & HeadingDefinitionLevel &
37
37
  Tmp
38
38
  type IsCategory = {
@@ -54,3 +54,5 @@ type Tmp = {
54
54
  // TODO: remove? Both Vike and Telefunc set it to the same value than docpress.config.js#projectInfo.projectName
55
55
  titleDocument?: string
56
56
  }
57
+
58
+ type NoSideNavigation = true | 'no-logo'