@brillout/docpress 0.7.6 → 0.7.8
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 +2 -2
- package/Layout.tsx +2 -2
- package/components/Contributors.tsx +9 -3
- package/components/Sponsors/label.svg +1 -1
- package/components/Sponsors.tsx +4 -4
- package/components/Supporters.tsx +0 -1
- package/css/block-design.css +4 -0
- package/css/index.css +1 -0
- package/dist/components/Contributors.js +6 -2
- package/dist/components/Sponsors.js +4 -4
- package/dist/components/Supporters.js +0 -1
- package/dist/config/resolvePageContext.d.ts +1 -1
- package/dist/types/Config.d.ts +1 -1
- package/package.json +1 -1
- package/types/Config.ts +1 -1
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
|
@@ -31,8 +31,8 @@ function Layout({ children }: { children: React.ReactNode }) {
|
|
|
31
31
|
alignItems: 'center',
|
|
32
32
|
justifyContent: noSideNavigation === 'no-logo' ? 'center' : 'space-between',
|
|
33
33
|
textDecoration: 'none',
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
marginBottom: 'var(--block-margin)',
|
|
35
|
+
backgroundColor: 'var(--bg-color)',
|
|
36
36
|
...topNavigationStyle,
|
|
37
37
|
}}
|
|
38
38
|
>
|
|
@@ -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,
|
|
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,15 @@ function Contributors() {
|
|
|
11
11
|
const { projectInfo } = pageContext.config
|
|
12
12
|
return (
|
|
13
13
|
<SupporterSection>
|
|
14
|
-
<
|
|
14
|
+
<p
|
|
15
|
+
style={{
|
|
16
|
+
maxWidth: 400,
|
|
17
|
+
display: 'inline-block',
|
|
18
|
+
fontSize: '1.2em',
|
|
19
|
+
}}
|
|
20
|
+
>
|
|
15
21
|
{projectInfo.projectName} is built and maintained by passionate contributors.
|
|
16
|
-
</
|
|
22
|
+
</p>
|
|
17
23
|
<div style={{ display: 'flex', flexWrap: 'wrap', justifyContent: 'space-evenly', alignItems: 'end' }}>
|
|
18
24
|
{maintainers.map((maintainer, i) => (
|
|
19
25
|
<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="#
|
|
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>
|
package/components/Sponsors.tsx
CHANGED
|
@@ -84,7 +84,7 @@ function CompanyDiv({ sponsor }: { sponsor: Sponsor }) {
|
|
|
84
84
|
<Label sponsor={sponsor} />
|
|
85
85
|
<div
|
|
86
86
|
style={{
|
|
87
|
-
backgroundColor: '#
|
|
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
|
|
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'
|
|
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') {
|
package/css/index.css
CHANGED
|
@@ -1,14 +1,18 @@
|
|
|
1
1
|
export { Contributors, Maintainer };
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { usePageContext } from '../renderer/usePageContext';
|
|
4
|
-
import { Supporter, SupporterSection,
|
|
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(
|
|
11
|
+
React.createElement("p", { style: {
|
|
12
|
+
maxWidth: 400,
|
|
13
|
+
display: 'inline-block',
|
|
14
|
+
fontSize: '1.2em',
|
|
15
|
+
} },
|
|
12
16
|
projectInfo.projectName,
|
|
13
17
|
" is built and maintained by passionate contributors."),
|
|
14
18
|
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: '#
|
|
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
|
|
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'
|
|
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;
|
|
@@ -39,6 +39,6 @@ declare function resolvePageContext(pageContext: PageContextOriginal): {
|
|
|
39
39
|
indexName: string;
|
|
40
40
|
} | null;
|
|
41
41
|
};
|
|
42
|
-
topNavigationStyle: import("react").CSSProperties;
|
|
42
|
+
topNavigationStyle: import("react").CSSProperties | undefined;
|
|
43
43
|
config: import("../types/Config").Config;
|
|
44
44
|
};
|
package/dist/types/Config.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type Config = {
|
|
|
18
18
|
};
|
|
19
19
|
headings: HeadingDefinition[];
|
|
20
20
|
headingsDetached: HeadingDetachedDefinition[];
|
|
21
|
-
topNavigationStyle
|
|
21
|
+
topNavigationStyle?: React.CSSProperties;
|
|
22
22
|
/** Sets `<meta name="description" content="${tagline}" />` */
|
|
23
23
|
tagline: string;
|
|
24
24
|
websiteUrl: string;
|
package/package.json
CHANGED
package/types/Config.ts
CHANGED
|
@@ -20,7 +20,7 @@ type Config = {
|
|
|
20
20
|
}
|
|
21
21
|
headings: HeadingDefinition[]
|
|
22
22
|
headingsDetached: HeadingDetachedDefinition[]
|
|
23
|
-
topNavigationStyle
|
|
23
|
+
topNavigationStyle?: React.CSSProperties
|
|
24
24
|
|
|
25
25
|
/** Sets `<meta name="description" content="${tagline}" />` */
|
|
26
26
|
tagline: string
|