@patternfly/patternfly-doc-core 1.0.7 → 1.0.9

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/README.md CHANGED
@@ -8,7 +8,7 @@ Patternfly documentation core contains the base packages needed to build and rel
8
8
 
9
9
  Using this package for your documentation is accomplished in just a few simple steps:
10
10
 
11
- 1. Run `npx patternfly-doc-core@latest setup` from the root of your repo. This will:
11
+ 1. Run `npx @patternfly/patternfly-doc-core@latest setup` from the root of your repo. This will:
12
12
  - add the documentation core as a dependency in your package
13
13
  - add the relevant scripts for using the documentation core to your package scripts
14
14
  - create the configuration file for customizing the documentation core
package/cli/cli.ts CHANGED
@@ -24,7 +24,7 @@ function updateContent(program: Command) {
24
24
  }
25
25
 
26
26
  const astroRoot = import.meta
27
- .resolve('patternfly-doc-core')
27
+ .resolve('@patternfly/patternfly-doc-core')
28
28
  .replace('dist/cli/cli.js', '')
29
29
  .replace('file://', '')
30
30
  const currentDir = process.cwd()
@@ -66,6 +66,12 @@ program.command('build').action(async () => {
66
66
  )
67
67
  return
68
68
  }
69
+
70
+ if (!config.outputDir) {
71
+ console.error("No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'")
72
+ return
73
+ }
74
+
69
75
  build({ root: astroRoot, outDir: join(currentDir, config.outputDir) })
70
76
  })
71
77
 
package/dist/cli/cli.js CHANGED
@@ -16,7 +16,7 @@ function updateContent(program) {
16
16
  createCollectionContent(astroRoot, `${process.cwd()}/pf-docs.config.mjs`, verbose);
17
17
  }
18
18
  const astroRoot = import.meta
19
- .resolve('patternfly-doc-core')
19
+ .resolve('@patternfly/patternfly-doc-core')
20
20
  .replace('dist/cli/cli.js', '')
21
21
  .replace('file://', '');
22
22
  const currentDir = process.cwd();
@@ -45,6 +45,10 @@ program.command('build').action(async () => {
45
45
  console.error('No config found, please run the `setup` command or manually create a pf-docs.config.mjs file');
46
46
  return;
47
47
  }
48
+ if (!config.outputDir) {
49
+ console.error("No outputDir found in config file, an output directory must be defined in your config file e.g. 'dist'");
50
+ return;
51
+ }
48
52
  build({ root: astroRoot, outDir: join(currentDir, config.outputDir) });
49
53
  });
50
54
  program.command('serve').action(async () => {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@patternfly/patternfly-doc-core",
3
3
  "type": "module",
4
- "version": "1.0.7",
4
+ "version": "1.0.9",
5
5
  "description": "PatternFly Core Documentation",
6
6
  "publishConfig": {
7
7
  "access": "public"