barodoc 8.0.2 → 8.1.1
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/cli.js +3 -3
- package/package.json +5 -5
package/dist/cli.js
CHANGED
|
@@ -13,7 +13,7 @@ import cac from "cac";
|
|
|
13
13
|
import pc10 from "picocolors";
|
|
14
14
|
|
|
15
15
|
// package.json
|
|
16
|
-
var version = "8.
|
|
16
|
+
var version = "8.1.1";
|
|
17
17
|
|
|
18
18
|
// src/commands/serve.ts
|
|
19
19
|
import path from "path";
|
|
@@ -39,7 +39,7 @@ async function serve(dir, options) {
|
|
|
39
39
|
return;
|
|
40
40
|
}
|
|
41
41
|
console.log(pc.dim("Quick mode - creating temporary project..."));
|
|
42
|
-
const docsDir = dir || findDocsDir(root);
|
|
42
|
+
const docsDir = !dir || dir === "." ? findDocsDir(root) : path.resolve(root, dir);
|
|
43
43
|
const { config } = await loadProjectConfig(root, options.config);
|
|
44
44
|
const projectDir = await createProject({
|
|
45
45
|
root,
|
|
@@ -103,7 +103,7 @@ async function build(dir, options) {
|
|
|
103
103
|
return;
|
|
104
104
|
}
|
|
105
105
|
console.log(pc2.dim("Quick mode - creating temporary project..."));
|
|
106
|
-
const docsDir = dir || findDocsDir(root);
|
|
106
|
+
const docsDir = !dir || dir === "." ? findDocsDir(root) : path2.resolve(root, dir);
|
|
107
107
|
const { config } = await loadProjectConfig(root, options.config);
|
|
108
108
|
const projectDir = await createProject({
|
|
109
109
|
root,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "barodoc",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.1.1",
|
|
4
4
|
"description": "Documentation framework powered by Astro",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
"@barodoc/plugin-analytics": "8.0.0",
|
|
39
39
|
"@barodoc/plugin-docsearch": "8.0.0",
|
|
40
40
|
"@barodoc/plugin-llms-txt": "8.0.0",
|
|
41
|
-
"@barodoc/theme-docs": "8.
|
|
42
|
-
"@barodoc/plugin-pwa": "8.0.0",
|
|
41
|
+
"@barodoc/theme-docs": "8.1.1",
|
|
43
42
|
"@barodoc/plugin-og-image": "7.0.0",
|
|
44
43
|
"@barodoc/plugin-openapi": "8.0.0",
|
|
44
|
+
"@barodoc/plugin-pwa": "8.0.0",
|
|
45
45
|
"@barodoc/plugin-search": "8.0.0",
|
|
46
|
-
"@barodoc/plugin-
|
|
47
|
-
"@barodoc/plugin-
|
|
46
|
+
"@barodoc/plugin-rss": "8.0.1",
|
|
47
|
+
"@barodoc/plugin-sitemap": "8.0.0"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/fs-extra": "^11.0.4",
|