@marlinjai/clearify 1.6.5 → 1.7.0
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/dist/node/{chunk-WT5W333R.js → chunk-BCKH7LNY.js} +1 -1
- package/dist/node/{chunk-WAWXVHUA.js → chunk-NJHE2AWL.js} +1 -1
- package/dist/node/{chunk-E3KDK3VB.js → chunk-SY7KZD5Z.js} +2 -2
- package/dist/node/core/navigation.js +1 -1
- package/dist/node/node/build.js +3 -3
- package/dist/node/node/check.js +2 -2
- package/dist/node/node/index.js +4 -4
- package/dist/node/vite-plugin/index.js +2 -2
- package/package.json +3 -1
- package/src/theme/Header.tsx +30 -0
- package/dist/node/{chunk-L24ILRSX.js → chunk-6PUBRHS7.js} +1 -1
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from "./chunk-SCZZB7OE.js";
|
|
9
9
|
import {
|
|
10
10
|
clearifyPlugin
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NJHE2AWL.js";
|
|
12
12
|
import {
|
|
13
13
|
loadUserConfig,
|
|
14
14
|
resolveConfig,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
} from "./chunk-IBK35HZR.js";
|
|
17
17
|
import {
|
|
18
18
|
buildSectionData
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-6PUBRHS7.js";
|
|
20
20
|
|
|
21
21
|
// src/node/build.ts
|
|
22
22
|
import { build as viteBuild } from "vite";
|
package/dist/node/node/build.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSite
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SY7KZD5Z.js";
|
|
4
4
|
import "../chunk-PRTER35L.js";
|
|
5
5
|
import "../chunk-SCZZB7OE.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-NJHE2AWL.js";
|
|
7
7
|
import "../chunk-B2Q23JW3.js";
|
|
8
8
|
import "../chunk-IBK35HZR.js";
|
|
9
9
|
import "../chunk-V7LLYIRO.js";
|
|
10
|
-
import "../chunk-
|
|
10
|
+
import "../chunk-6PUBRHS7.js";
|
|
11
11
|
import "../chunk-5TD7NQIW.js";
|
|
12
12
|
export {
|
|
13
13
|
buildSite
|
package/dist/node/node/check.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
checkLinks
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BCKH7LNY.js";
|
|
4
4
|
import "../chunk-IBK35HZR.js";
|
|
5
5
|
import "../chunk-V7LLYIRO.js";
|
|
6
|
-
import "../chunk-
|
|
6
|
+
import "../chunk-6PUBRHS7.js";
|
|
7
7
|
import "../chunk-5TD7NQIW.js";
|
|
8
8
|
export {
|
|
9
9
|
checkLinks
|
package/dist/node/node/index.js
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
buildSite
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-SY7KZD5Z.js";
|
|
4
4
|
import {
|
|
5
5
|
remarkMermaidToComponent
|
|
6
6
|
} from "../chunk-PRTER35L.js";
|
|
7
7
|
import "../chunk-SCZZB7OE.js";
|
|
8
8
|
import {
|
|
9
9
|
clearifyPlugin
|
|
10
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-NJHE2AWL.js";
|
|
11
11
|
import "../chunk-B2Q23JW3.js";
|
|
12
12
|
import {
|
|
13
13
|
init
|
|
14
14
|
} from "../chunk-MWUXPDQK.js";
|
|
15
15
|
import {
|
|
16
16
|
checkLinks
|
|
17
|
-
} from "../chunk-
|
|
17
|
+
} from "../chunk-BCKH7LNY.js";
|
|
18
18
|
import {
|
|
19
19
|
loadUserConfig,
|
|
20
20
|
resolveConfig
|
|
21
21
|
} from "../chunk-IBK35HZR.js";
|
|
22
22
|
import "../chunk-V7LLYIRO.js";
|
|
23
|
-
import "../chunk-
|
|
23
|
+
import "../chunk-6PUBRHS7.js";
|
|
24
24
|
import "../chunk-5TD7NQIW.js";
|
|
25
25
|
|
|
26
26
|
// src/node/index.ts
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
clearifyPlugin
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NJHE2AWL.js";
|
|
4
4
|
import "../chunk-B2Q23JW3.js";
|
|
5
5
|
import "../chunk-IBK35HZR.js";
|
|
6
6
|
import "../chunk-V7LLYIRO.js";
|
|
7
|
-
import "../chunk-
|
|
7
|
+
import "../chunk-6PUBRHS7.js";
|
|
8
8
|
import "../chunk-5TD7NQIW.js";
|
|
9
9
|
export {
|
|
10
10
|
clearifyPlugin
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marlinjai/clearify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "An open-source documentation site generator. Turn markdown into beautiful docs.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -63,9 +63,11 @@
|
|
|
63
63
|
}
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
+
"@types/mdast": "^4.0.4",
|
|
66
67
|
"@types/node": "^25.2.2",
|
|
67
68
|
"@types/react": "^18.3.18",
|
|
68
69
|
"@types/react-dom": "^18.3.5",
|
|
70
|
+
"esbuild": "^0.27.3",
|
|
69
71
|
"puppeteer": "^24.37.2",
|
|
70
72
|
"tsup": "^8.3.6",
|
|
71
73
|
"typescript": "^5.7.3"
|
package/src/theme/Header.tsx
CHANGED
|
@@ -97,6 +97,36 @@ export function Header({ name, links, logo, onMenuToggle }: HeaderProps) {
|
|
|
97
97
|
<div style={{ display: 'flex', alignItems: 'center', gap: '0.375rem' }}>
|
|
98
98
|
<Search />
|
|
99
99
|
|
|
100
|
+
{links?.app && (
|
|
101
|
+
<a
|
|
102
|
+
href={links.app}
|
|
103
|
+
target="_blank"
|
|
104
|
+
rel="noopener noreferrer"
|
|
105
|
+
style={{
|
|
106
|
+
display: 'inline-flex',
|
|
107
|
+
alignItems: 'center',
|
|
108
|
+
gap: '0.375rem',
|
|
109
|
+
padding: '0.375rem 0.75rem',
|
|
110
|
+
borderRadius: 'var(--clearify-radius-sm)',
|
|
111
|
+
background: 'var(--clearify-gradient)',
|
|
112
|
+
color: '#fff',
|
|
113
|
+
fontSize: '0.8125rem',
|
|
114
|
+
fontWeight: 600,
|
|
115
|
+
textDecoration: 'none',
|
|
116
|
+
transition: 'opacity 0.15s',
|
|
117
|
+
}}
|
|
118
|
+
onMouseEnter={(e) => (e.currentTarget.style.opacity = '0.85')}
|
|
119
|
+
onMouseLeave={(e) => (e.currentTarget.style.opacity = '1')}
|
|
120
|
+
>
|
|
121
|
+
<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round">
|
|
122
|
+
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
|
|
123
|
+
<polyline points="15 3 21 3 21 9" />
|
|
124
|
+
<line x1="10" y1="14" x2="21" y2="3" />
|
|
125
|
+
</svg>
|
|
126
|
+
Open App
|
|
127
|
+
</a>
|
|
128
|
+
)}
|
|
129
|
+
|
|
100
130
|
{links?.github && (
|
|
101
131
|
<a
|
|
102
132
|
href={links.github}
|
|
@@ -49,6 +49,7 @@ function buildNavigation(docs, basePath = "/") {
|
|
|
49
49
|
const rootDir = basePath === "/" ? "/" : basePath.replace(/\/$/, "");
|
|
50
50
|
const groups = /* @__PURE__ */ new Map();
|
|
51
51
|
for (const doc of docs) {
|
|
52
|
+
if (doc.routePath === rootDir || doc.routePath === "/") continue;
|
|
52
53
|
const dir = dirname(doc.routePath);
|
|
53
54
|
if (!groups.has(dir)) groups.set(dir, []);
|
|
54
55
|
groups.get(dir).push(doc);
|
|
@@ -64,7 +65,6 @@ function buildNavigation(docs, basePath = "/") {
|
|
|
64
65
|
const nav = [];
|
|
65
66
|
const rootFiles = groups.get(rootDir) ?? [];
|
|
66
67
|
for (const doc of rootFiles) {
|
|
67
|
-
if (doc.routePath === rootDir || doc.routePath === "/") continue;
|
|
68
68
|
const item = { label: doc.frontmatter.title, path: doc.routePath };
|
|
69
69
|
if (doc.frontmatter.icon) item.icon = doc.frontmatter.icon;
|
|
70
70
|
nav.push(item);
|