@travetto/doc 4.0.3 → 4.0.5
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 +4 -4
- package/src/render/renderer.ts +1 -1
- package/support/cli.doc.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/doc",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.5",
|
|
4
4
|
"description": "Documentation support for the Travetto framework",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"docs",
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
"directory": "module/doc"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@travetto/base": "^4.0.
|
|
28
|
-
"@travetto/terminal": "^4.0.
|
|
27
|
+
"@travetto/base": "^4.0.5",
|
|
28
|
+
"@travetto/terminal": "^4.0.5",
|
|
29
29
|
"@types/prismjs": "^1.26.3",
|
|
30
30
|
"prismjs": "^1.29.0"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@travetto/cli": "^4.0.
|
|
33
|
+
"@travetto/cli": "^4.0.7"
|
|
34
34
|
},
|
|
35
35
|
"peerDependenciesMeta": {
|
|
36
36
|
"@travetto/cli": {
|
package/src/render/renderer.ts
CHANGED
|
@@ -17,7 +17,7 @@ const providers = { [Html.ext]: Html, [Markdown.ext]: Markdown };
|
|
|
17
17
|
*/
|
|
18
18
|
export class DocRenderer {
|
|
19
19
|
|
|
20
|
-
static async get(file: string, manifest: ManifestContext): Promise<DocRenderer> {
|
|
20
|
+
static async get(file: string, manifest: Pick<ManifestContext, 'workspace'>): Promise<DocRenderer> {
|
|
21
21
|
const mod = RuntimeIndex.getFromSource(file)?.import;
|
|
22
22
|
if (!mod) {
|
|
23
23
|
throw new Error(`Unable to render ${file}, not in the manifest`);
|
package/support/cli.doc.ts
CHANGED
|
@@ -66,7 +66,7 @@ export class DocCommand implements CliCommandShape {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
async render(): Promise<void> {
|
|
69
|
-
const { DocRenderer } = await import('../src/render/renderer
|
|
69
|
+
const { DocRenderer } = await import('../src/render/renderer');
|
|
70
70
|
const ctx = await DocRenderer.get(this.input, RuntimeContext);
|
|
71
71
|
const outputs = this.outputs.map(output =>
|
|
72
72
|
output.includes('.') ? [path.extname(output).replace('.', ''), path.resolve(output)] :
|