@docubook/create 2.2.0 → 2.3.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/package.json +1 -1
- package/src/dist/app/docs/[[...slug]]/page.tsx +1 -1
- package/src/dist/app/page.tsx +2 -2
- package/src/dist/{contents/docs/changelog/version-1 → docs/changelog}/index.mdx +6 -6
- package/src/dist/docu.json +1 -6
- package/src/dist/lib/markdown.ts +2 -2
- package/src/dist/package.json +1 -1
- package/src/dist/contents/docs/changelog/version-2/index.mdx +0 -49
- package/src/dist/contents/docs/changelog/version-3/index.mdx +0 -49
- /package/src/dist/{contents/docs → docs}/api-reference/delete/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/api-reference/fetch/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/api-reference/get/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/api-reference/post/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/getting-started/development/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/getting-started/introduction/index.mdx +0 -0
- /package/src/dist/{contents/docs → docs}/getting-started/quick-start-guide/index.mdx +0 -0
package/package.json
CHANGED
|
@@ -83,7 +83,7 @@ export default async function DocsPage(props: PageProps) {
|
|
|
83
83
|
const { title, description, image: _image, date } = res.frontmatter;
|
|
84
84
|
|
|
85
85
|
// File path for edit link
|
|
86
|
-
const filePath = `
|
|
86
|
+
const filePath = `docs/${slug.join("/") || ""}/index.mdx`;
|
|
87
87
|
|
|
88
88
|
const tocs = await getDocsTocs(pathName);
|
|
89
89
|
|
package/src/dist/app/page.tsx
CHANGED
|
@@ -15,7 +15,7 @@ export default function Home() {
|
|
|
15
15
|
return (
|
|
16
16
|
<div className="flex flex-col items-center justify-center px-2 py-8 text-center sm:py-36">
|
|
17
17
|
<Link
|
|
18
|
-
href="/docs/changelog
|
|
18
|
+
href="/docs/changelog"
|
|
19
19
|
className="mb-5 sm:text-lg flex items-center gap-2 underline underline-offset-4 sm:-mt-12"
|
|
20
20
|
>
|
|
21
21
|
<div className="z-10 flex min-h-10 items-center justify-center max-[800px]:mt-10">
|
|
@@ -25,7 +25,7 @@ export default function Home() {
|
|
|
25
25
|
)}
|
|
26
26
|
>
|
|
27
27
|
<AnimatedShinyText className="inline-flex items-center justify-center px-4 py-1 transition ease-out hover:text-neutral-100 hover:duration-300 hover:dark:text-neutral-200">
|
|
28
|
-
<span>🚀 Release v2.
|
|
28
|
+
<span>🚀 Release v2.3.0</span>
|
|
29
29
|
<ArrowRightIcon className="ml-1 size-3 transition-transform duration-300 ease-in-out group-hover:translate-x-0.5" />
|
|
30
30
|
</AnimatedShinyText>
|
|
31
31
|
</div>
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
---
|
|
2
|
-
title :
|
|
2
|
+
title : Changelog
|
|
3
3
|
description : changelog version
|
|
4
4
|
date : 10-12-2024
|
|
5
5
|
---
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Output Markdown
|
|
8
8
|
|
|
9
|
+
```
|
|
9
10
|
<Release version="1.0.0" date="2025-08-10" title="Release version 1.0.0">
|
|
10
11
|
<Changes type="added">
|
|
11
12
|
- add components
|
|
@@ -24,10 +25,10 @@ date : 10-12-2024
|
|
|
24
25
|
- removed unused hooks
|
|
25
26
|
</Changes>
|
|
26
27
|
</Release>
|
|
28
|
+
```
|
|
27
29
|
|
|
28
|
-
##
|
|
30
|
+
## Render as
|
|
29
31
|
|
|
30
|
-
```
|
|
31
32
|
<Release version="1.0.0" date="2025-08-10" title="Release version 1.0.0">
|
|
32
33
|
<Changes type="added">
|
|
33
34
|
- add components
|
|
@@ -45,5 +46,4 @@ date : 10-12-2024
|
|
|
45
46
|
- removed utility class
|
|
46
47
|
- removed unused hooks
|
|
47
48
|
</Changes>
|
|
48
|
-
</Release>
|
|
49
|
-
```
|
|
49
|
+
</Release>
|
package/src/dist/docu.json
CHANGED
|
@@ -97,12 +97,7 @@
|
|
|
97
97
|
"icon": "History",
|
|
98
98
|
"description": "Update and Changes",
|
|
99
99
|
"title": "Release"
|
|
100
|
-
}
|
|
101
|
-
"items": [
|
|
102
|
-
{ "title": "version 1", "href": "/version-1" },
|
|
103
|
-
{ "title": "version 2", "href": "/version-2" },
|
|
104
|
-
{ "title": "version 3", "href": "/version-3" }
|
|
105
|
-
]
|
|
100
|
+
}
|
|
106
101
|
}
|
|
107
102
|
]
|
|
108
103
|
}
|
package/src/dist/lib/markdown.ts
CHANGED
|
@@ -223,7 +223,7 @@ function sluggify(text: string) {
|
|
|
223
223
|
}
|
|
224
224
|
|
|
225
225
|
function getDocsContentPath(slug: string) {
|
|
226
|
-
return path.join(process.cwd(), "/
|
|
226
|
+
return path.join(process.cwd(), "/docs/", `${slug}/index.mdx`);
|
|
227
227
|
}
|
|
228
228
|
|
|
229
229
|
function justGetFrontmatterFromMD<Frontmatter>(rawMd: string): Frontmatter {
|
|
@@ -247,7 +247,7 @@ export async function getAllChilds(pathString: string) {
|
|
|
247
247
|
page_routes_copy.map(async (it) => {
|
|
248
248
|
const totalPath = path.join(
|
|
249
249
|
process.cwd(),
|
|
250
|
-
"/
|
|
250
|
+
"/docs/",
|
|
251
251
|
prevHref,
|
|
252
252
|
it.href,
|
|
253
253
|
"index.mdx"
|
package/src/dist/package.json
CHANGED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title : Version 2
|
|
3
|
-
description : changelog version
|
|
4
|
-
date : 10-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Render as
|
|
8
|
-
|
|
9
|
-
<Release version="2.0.0" date="2025-08-10" title="Release version 2.0.0">
|
|
10
|
-
<Changes type="added">
|
|
11
|
-
- add components
|
|
12
|
-
</Changes>
|
|
13
|
-
<Changes type="fixed">
|
|
14
|
-
- fix globals.css
|
|
15
|
-
</Changes>
|
|
16
|
-
<Changes type="improved">
|
|
17
|
-
- improved search components
|
|
18
|
-
</Changes>
|
|
19
|
-
<Changes type="deprecated">
|
|
20
|
-
- deprecated footer components
|
|
21
|
-
</Changes>
|
|
22
|
-
<Changes type="removed">
|
|
23
|
-
- removed utility class
|
|
24
|
-
- removed unused hooks
|
|
25
|
-
</Changes>
|
|
26
|
-
</Release>
|
|
27
|
-
|
|
28
|
-
## Output Markdown
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
<Release version="2.0.0" date="2025-08-10" title="Release version 2.0.0">
|
|
32
|
-
<Changes type="added">
|
|
33
|
-
- add components
|
|
34
|
-
</Changes>
|
|
35
|
-
<Changes type="fixed">
|
|
36
|
-
- fix globals.css
|
|
37
|
-
</Changes>
|
|
38
|
-
<Changes type="improved">
|
|
39
|
-
- improved search components
|
|
40
|
-
</Changes>
|
|
41
|
-
<Changes type="deprecated">
|
|
42
|
-
- deprecated footer components
|
|
43
|
-
</Changes>
|
|
44
|
-
<Changes type="removed">
|
|
45
|
-
- removed utility class
|
|
46
|
-
- removed unused hooks
|
|
47
|
-
</Changes>
|
|
48
|
-
</Release>
|
|
49
|
-
```
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title : Version 3
|
|
3
|
-
description : changelog version
|
|
4
|
-
date : 10-12-2024
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Render as
|
|
8
|
-
|
|
9
|
-
<Release version="3.0.0" date="2025-08-10" title="Release version 3.0.0">
|
|
10
|
-
<Changes type="added">
|
|
11
|
-
- add components
|
|
12
|
-
</Changes>
|
|
13
|
-
<Changes type="fixed">
|
|
14
|
-
- fix globals.css
|
|
15
|
-
</Changes>
|
|
16
|
-
<Changes type="improved">
|
|
17
|
-
- improved search components
|
|
18
|
-
</Changes>
|
|
19
|
-
<Changes type="deprecated">
|
|
20
|
-
- deprecated footer components
|
|
21
|
-
</Changes>
|
|
22
|
-
<Changes type="removed">
|
|
23
|
-
- removed utility class
|
|
24
|
-
- removed unused hooks
|
|
25
|
-
</Changes>
|
|
26
|
-
</Release>
|
|
27
|
-
|
|
28
|
-
## Output Markdown
|
|
29
|
-
|
|
30
|
-
```
|
|
31
|
-
<Release version="3.0.0" date="2025-08-10" title="Release version 3.0.0">
|
|
32
|
-
<Changes type="added">
|
|
33
|
-
- add components
|
|
34
|
-
</Changes>
|
|
35
|
-
<Changes type="fixed">
|
|
36
|
-
- fix globals.css
|
|
37
|
-
</Changes>
|
|
38
|
-
<Changes type="improved">
|
|
39
|
-
- improved search components
|
|
40
|
-
</Changes>
|
|
41
|
-
<Changes type="deprecated">
|
|
42
|
-
- deprecated footer components
|
|
43
|
-
</Changes>
|
|
44
|
-
<Changes type="removed">
|
|
45
|
-
- removed utility class
|
|
46
|
-
- removed unused hooks
|
|
47
|
-
</Changes>
|
|
48
|
-
</Release>
|
|
49
|
-
```
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|