@neo4j-devtools/workspace-guides
Advanced tools
Comparing version 0.0.34 to 0.0.35
@@ -53,3 +53,6 @@ #!/usr/bin/env node | ||
...options, | ||
entry, | ||
entry: { | ||
...entry, | ||
imgBaseUrl: options.imgBaseUrl ?? entry.imgBaseUrl, | ||
}, | ||
guideIdList, | ||
@@ -114,2 +117,6 @@ }); | ||
}, | ||
'img-base-url': { | ||
type: 'string', | ||
short: 'u', | ||
}, | ||
}, | ||
@@ -138,2 +145,3 @@ }); | ||
watch: args.watch ?? false, | ||
imgBaseUrl: args['img-base-url'], | ||
}; | ||
@@ -148,2 +156,3 @@ const entries = await convertFiles(cliOptions); | ||
rootUrl: cliOptions.rootUrl, | ||
imgBaseUrl: cliOptions.imgBaseUrl, | ||
}); | ||
@@ -150,0 +159,0 @@ const closeServer = (0, server_1.createFileServer)({ |
@@ -54,2 +54,3 @@ "use strict"; | ||
}); | ||
entry.imgBaseUrl = options.imgBaseUrl ?? entry.imgBaseUrl; | ||
const entryIndex = entries.findIndex(({ id }) => entry.id === id); | ||
@@ -81,2 +82,3 @@ entries.splice(entryIndex, 1); | ||
}); | ||
entry.imgBaseUrl = options.imgBaseUrl ?? entry.imgBaseUrl; | ||
const entryIndex = entries.findIndex(({ id }) => entry.id === id); | ||
@@ -106,2 +108,3 @@ entries.splice(entryIndex, 1); | ||
}); | ||
entry.imgBaseUrl = options.imgBaseUrl ?? entry.imgBaseUrl; | ||
const outputFilePath = (0, manifests_1.toOutputFilePath)({ entry, outputDirPath: options.outputDirPath }); | ||
@@ -108,0 +111,0 @@ fs.rm(outputFilePath, { force: true }) |
{ | ||
"name": "@neo4j-devtools/workspace-guides", | ||
"version": "0.0.34", | ||
"version": "0.0.35", | ||
"main": "./src/index.ts", | ||
@@ -25,4 +25,4 @@ "types": "./src/index.ts", | ||
"vitest": "1.3.1", | ||
"@nx/config": "0.0.0", | ||
"@nx/scripts": "0.0.0" | ||
"@nx/scripts": "0.0.0", | ||
"@nx/config": "0.0.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "scripts": { |
@@ -37,2 +37,3 @@ # Guides Parser | ||
-m, --manifest=<value> Path to guides manifest | ||
-u, --img-base-url=<value> Base URL where images are hosted. | ||
--dry-run | ||
@@ -46,2 +47,4 @@ | ||
$ parse-guides --watch -u "https://neo4j-graph-examples.github.io/movies/documentation/img/" | ||
$ parse-guides -i path/to/guides/dir -o output/path --watch | ||
@@ -48,0 +51,0 @@ |
78612
1779
115