@brillout/docpress 0.16.22 → 0.16.24
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/css/code/highlight.css +3 -0
- package/css/code.css +1 -0
- package/dist/vite.config.js +2 -2
- package/icons/eyes.svg +46 -1
- package/package.json +1 -1
- package/vite.config.ts +2 -2
package/css/code.css
CHANGED
package/dist/vite.config.js
CHANGED
|
@@ -5,7 +5,7 @@ import { parsePageSections } from './parsePageSections.js';
|
|
|
5
5
|
import rehypePrettyCode from 'rehype-pretty-code';
|
|
6
6
|
import remarkGfm from 'remark-gfm';
|
|
7
7
|
import remarkDirective from 'remark-directive';
|
|
8
|
-
import { transformerNotationDiff } from '@shikijs/transformers';
|
|
8
|
+
import { transformerNotationDiff, transformerNotationHighlight } from '@shikijs/transformers';
|
|
9
9
|
import { rehypeMetaToProps } from './code-blocks/rehypeMetaToProps.js';
|
|
10
10
|
import { remarkDetype } from './code-blocks/remarkDetype.js';
|
|
11
11
|
import { shikiTransformerAutoLinks } from './code-blocks/shikiTransformerAutoLinks.js';
|
|
@@ -17,7 +17,7 @@ const prettyCode = [
|
|
|
17
17
|
{
|
|
18
18
|
theme: 'github-light',
|
|
19
19
|
keepBackground: false,
|
|
20
|
-
transformers: [transformerNotationDiff(), shikiTransformerAutoLinks()],
|
|
20
|
+
transformers: [transformerNotationDiff(), transformerNotationHighlight(), shikiTransformerAutoLinks()],
|
|
21
21
|
},
|
|
22
22
|
];
|
|
23
23
|
const rehypePlugins = [prettyCode, [rehypeMetaToProps]];
|
package/icons/eyes.svg
CHANGED
|
@@ -1 +1,46 @@
|
|
|
1
|
-
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
|
2
|
+
<!-- Generator: Adobe Illustrator 24.1.2, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
|
|
3
|
+
<svg version="1.1" id="eyes" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
|
|
4
|
+
viewBox="0 0 128 128" style="enable-background:new 0 0 128 128;" xml:space="preserve">
|
|
5
|
+
<g>
|
|
6
|
+
<g>
|
|
7
|
+
<g>
|
|
8
|
+
<g>
|
|
9
|
+
<path style="fill:#FAFAFA;" d="M34.16,106.51C18.73,106.51,6.19,87.44,6.19,64c0-23.44,12.55-42.51,27.97-42.51
|
|
10
|
+
c15.42,0,27.97,19.07,27.97,42.51C62.13,87.44,49.58,106.51,34.16,106.51z"/>
|
|
11
|
+
<path style="fill:#B0BEC5;" d="M34.16,23.49c6.63,0,12.98,4,17.87,11.27c5.22,7.75,8.1,18.14,8.1,29.24s-2.88,21.49-8.1,29.24
|
|
12
|
+
c-4.89,7.27-11.24,11.27-17.87,11.27s-12.98-4-17.87-11.27C11.06,85.49,8.19,75.1,8.19,64s2.88-21.49,8.1-29.24
|
|
13
|
+
C21.18,27.49,27.52,23.49,34.16,23.49 M34.16,19.49C17.61,19.49,4.19,39.42,4.19,64s13.42,44.51,29.97,44.51
|
|
14
|
+
S64.13,88.58,64.13,64S50.71,19.49,34.16,19.49L34.16,19.49z"/>
|
|
15
|
+
</g>
|
|
16
|
+
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="22.5233" y1="46.6759" x2="22.5233" y2="82.0828">
|
|
17
|
+
<stop offset="0" style="stop-color:#424242"/>
|
|
18
|
+
<stop offset="1" style="stop-color:#212121"/>
|
|
19
|
+
</linearGradient>
|
|
20
|
+
<path style="fill:url(#SVGID_1_);" d="M25.63,59.84c-2.7-2.54-2.1-7.58,1.36-11.26c0.18-0.19,0.36-0.37,0.55-0.54
|
|
21
|
+
c-1.54-0.87-3.23-1.36-5.01-1.36c-7.19,0-13.02,7.93-13.02,17.7s5.83,17.7,13.02,17.7s13.02-7.93,13.02-17.7
|
|
22
|
+
c0-1.75-0.19-3.45-0.54-5.05C31.77,61.66,27.9,61.97,25.63,59.84z"/>
|
|
23
|
+
</g>
|
|
24
|
+
</g>
|
|
25
|
+
<g>
|
|
26
|
+
<g>
|
|
27
|
+
<ellipse style="fill:#EEEEEE;" cx="93.84" cy="64" rx="29.97" ry="44.51"/>
|
|
28
|
+
<g>
|
|
29
|
+
<path style="fill:#FAFAFA;" d="M93.84,106.51c-15.42,0-27.97-19.07-27.97-42.51c0-23.44,12.55-42.51,27.97-42.51
|
|
30
|
+
c15.42,0,27.97,19.07,27.97,42.51C121.81,87.44,109.27,106.51,93.84,106.51z"/>
|
|
31
|
+
<path style="fill:#B0BEC5;" d="M93.84,23.49c6.63,0,12.98,4,17.87,11.27c5.22,7.75,8.1,18.14,8.1,29.24s-2.88,21.49-8.1,29.24
|
|
32
|
+
c-4.89,7.27-11.24,11.27-17.87,11.27s-12.98-4-17.87-11.27c-5.22-7.75-8.1-18.14-8.1-29.24s2.88-21.49,8.1-29.24
|
|
33
|
+
C80.86,27.49,87.21,23.49,93.84,23.49 M93.84,19.49c-16.55,0-29.97,19.93-29.97,44.51s13.42,44.51,29.97,44.51
|
|
34
|
+
S123.81,88.58,123.81,64S110.39,19.49,93.84,19.49L93.84,19.49z"/>
|
|
35
|
+
</g>
|
|
36
|
+
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="82.2093" y1="46.6759" x2="82.2093" y2="82.0828">
|
|
37
|
+
<stop offset="0" style="stop-color:#424242"/>
|
|
38
|
+
<stop offset="1" style="stop-color:#212121"/>
|
|
39
|
+
</linearGradient>
|
|
40
|
+
<path style="fill:url(#SVGID_2_);" d="M85.31,59.84c-2.7-2.54-2.1-7.58,1.36-11.26c0.18-0.19,0.36-0.37,0.55-0.54
|
|
41
|
+
c-1.54-0.87-3.23-1.36-5.01-1.36c-7.19,0-13.02,7.93-13.02,17.7s5.83,17.7,13.02,17.7c7.19,0,13.02-7.93,13.02-17.7
|
|
42
|
+
c0-1.75-0.19-3.45-0.54-5.05C91.46,61.66,87.58,61.97,85.31,59.84z"/>
|
|
43
|
+
</g>
|
|
44
|
+
</g>
|
|
45
|
+
</g>
|
|
46
|
+
</svg>
|
package/package.json
CHANGED
package/vite.config.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { parsePageSections } from './parsePageSections.js'
|
|
|
7
7
|
import rehypePrettyCode from 'rehype-pretty-code'
|
|
8
8
|
import remarkGfm from 'remark-gfm'
|
|
9
9
|
import remarkDirective from 'remark-directive'
|
|
10
|
-
import { transformerNotationDiff } from '@shikijs/transformers'
|
|
10
|
+
import { transformerNotationDiff, transformerNotationHighlight } from '@shikijs/transformers'
|
|
11
11
|
import { rehypeMetaToProps } from './code-blocks/rehypeMetaToProps.js'
|
|
12
12
|
import { remarkDetype } from './code-blocks/remarkDetype.js'
|
|
13
13
|
import { shikiTransformerAutoLinks } from './code-blocks/shikiTransformerAutoLinks.js'
|
|
@@ -20,7 +20,7 @@ const prettyCode = [
|
|
|
20
20
|
{
|
|
21
21
|
theme: 'github-light',
|
|
22
22
|
keepBackground: false,
|
|
23
|
-
transformers: [transformerNotationDiff(), shikiTransformerAutoLinks()],
|
|
23
|
+
transformers: [transformerNotationDiff(), transformerNotationHighlight(), shikiTransformerAutoLinks()],
|
|
24
24
|
},
|
|
25
25
|
]
|
|
26
26
|
const rehypePlugins: any = [prettyCode, [rehypeMetaToProps]]
|