barodoc 8.0.1 → 8.1.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.
Files changed (2) hide show
  1. package/dist/cli.js +3 -3
  2. 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.0.1";
16
+ var version = "8.1.0";
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.0.1",
3
+ "version": "8.1.0",
4
4
  "description": "Documentation framework powered by Astro",
5
5
  "type": "module",
6
6
  "bin": {
@@ -34,17 +34,17 @@
34
34
  "picocolors": "^1.1.1",
35
35
  "zod": "^3.24.0",
36
36
  "zod-to-json-schema": "^3.25.1",
37
+ "@barodoc/theme-docs": "8.0.2",
37
38
  "@barodoc/core": "8.0.0",
38
- "@barodoc/theme-docs": "8.0.1",
39
39
  "@barodoc/plugin-analytics": "8.0.0",
40
- "@barodoc/plugin-llms-txt": "8.0.0",
41
40
  "@barodoc/plugin-docsearch": "8.0.0",
42
41
  "@barodoc/plugin-og-image": "7.0.0",
43
42
  "@barodoc/plugin-openapi": "8.0.0",
43
+ "@barodoc/plugin-llms-txt": "8.0.0",
44
44
  "@barodoc/plugin-pwa": "8.0.0",
45
+ "@barodoc/plugin-rss": "8.0.0",
45
46
  "@barodoc/plugin-sitemap": "8.0.0",
46
- "@barodoc/plugin-search": "8.0.0",
47
- "@barodoc/plugin-rss": "8.0.0"
47
+ "@barodoc/plugin-search": "8.0.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/fs-extra": "^11.0.4",