@ts-for-gir/generator-html-doc 3.3.0 → 4.0.0-beta.2
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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Logger } from '@ts-for-gir/lib';
|
|
2
2
|
import { Generator } from '@ts-for-gir/generator-base';
|
|
3
|
-
import type { GenerateConfig,
|
|
3
|
+
import type { GenerateConfig, GirModule, NSRegistry } from '@ts-for-gir/lib';
|
|
4
4
|
/**
|
|
5
5
|
* A template that can be used to implement an HTML Documentation Generator
|
|
6
6
|
*/
|
|
@@ -8,5 +8,7 @@ export declare class HtmlDocGenerator implements Generator {
|
|
|
8
8
|
protected readonly config: GenerateConfig;
|
|
9
9
|
protected log: Logger;
|
|
10
10
|
constructor(config: GenerateConfig);
|
|
11
|
-
start(
|
|
11
|
+
start(_registry: NSRegistry): Promise<void>;
|
|
12
|
+
generate(_registry: NSRegistry, _module: GirModule): Promise<void>;
|
|
13
|
+
finish(_registry: NSRegistry): Promise<void>;
|
|
12
14
|
}
|
|
@@ -8,10 +8,16 @@ export class HtmlDocGenerator {
|
|
|
8
8
|
log;
|
|
9
9
|
constructor(config) {
|
|
10
10
|
this.config = config;
|
|
11
|
-
this.log = new Logger(config.
|
|
11
|
+
this.log = new Logger(config.verbose, HtmlDocGenerator.name);
|
|
12
12
|
}
|
|
13
|
-
async start(
|
|
13
|
+
async start(_registry) {
|
|
14
14
|
return Promise.resolve(this.log.danger(DANGER_HTML_DOC_GENERATOR_NOT_IMPLEMENTED));
|
|
15
15
|
}
|
|
16
|
+
generate(_registry, _module) {
|
|
17
|
+
throw new Error('Method not implemented.');
|
|
18
|
+
}
|
|
19
|
+
finish(_registry) {
|
|
20
|
+
throw new Error('Method not implemented.');
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
23
|
//# sourceMappingURL=html-doc-generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"html-doc-generator.js","sourceRoot":"","sources":["../src/html-doc-generator.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,MAAM,EAAE,yCAAyC,EAAE,MAAM,iBAAiB,CAAA;AAKnF;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAEM;IADrB,GAAG,CAAQ;IACrB,YAA+B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QACjD,IAAI,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"html-doc-generator.js","sourceRoot":"","sources":["../src/html-doc-generator.ts"],"names":[],"mappings":"AAAA,sDAAsD;AACtD,OAAO,EAAE,MAAM,EAAE,yCAAyC,EAAE,MAAM,iBAAiB,CAAA;AAKnF;;GAEG;AACH,MAAM,OAAO,gBAAgB;IAEM;IADrB,GAAG,CAAQ;IACrB,YAA+B,MAAsB;QAAtB,WAAM,GAAN,MAAM,CAAgB;QACjD,IAAI,CAAC,GAAG,GAAG,IAAI,MAAM,CAAC,MAAM,CAAC,OAAO,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAA;IAChE,CAAC;IAED,KAAK,CAAC,KAAK,CAAC,SAAqB;QAC7B,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAC,CAAA;IACtF,CAAC;IAED,QAAQ,CAAC,SAAqB,EAAE,OAAkB;QAC9C,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;IAC9C,CAAC;IAED,MAAM,CAAC,SAAqB;QACxB,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAA;IAC9C,CAAC;CACJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ts-for-gir/generator-html-doc",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-beta.2",
|
|
4
4
|
"description": "HTML Documentation generator for ts-for-gir",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -34,18 +34,18 @@
|
|
|
34
34
|
"generator"
|
|
35
35
|
],
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@types/node": "^20.11.
|
|
38
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
39
|
-
"@typescript-eslint/parser": "^7.
|
|
37
|
+
"@types/node": "^20.11.27",
|
|
38
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
39
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
40
40
|
"eslint": "^8.57.0",
|
|
41
41
|
"eslint-config-prettier": "^9.1.0",
|
|
42
42
|
"eslint-plugin-prettier": "^5.1.3",
|
|
43
43
|
"prettier": "^3.2.5",
|
|
44
44
|
"rimraf": "^5.0.5",
|
|
45
|
-
"typescript": "5.
|
|
45
|
+
"typescript": "^5.4.2"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@ts-for-gir/generator-base": "^
|
|
49
|
-
"@ts-for-gir/lib": "^
|
|
48
|
+
"@ts-for-gir/generator-base": "^4.0.0-beta.2",
|
|
49
|
+
"@ts-for-gir/lib": "^4.0.0-beta.2"
|
|
50
50
|
}
|
|
51
51
|
}
|