Skip to content

Commit bdedfc5

Browse files
committed
chore: doc update
1 parent 66ea80e commit bdedfc5

File tree

164 files changed

+24010
-244926
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

164 files changed

+24010
-244926
lines changed

builddoc.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
// @ts-check
2+
3+
const td = require('typedoc');
4+
const ts = require('typescript');
5+
const path = require('path');
6+
const globby = require('globby');
7+
8+
const typedocJson = require('./typedoc');
9+
10+
/**
11+
* @param {Object} options
12+
* @param {string} options.entryPoint
13+
* @param {string} options.outDir
14+
* @param {Partial<import('typedoc').TypeDocOptions>} [typeDocOptions]
15+
*/
16+
const createTypeScriptApiDocs = exports.createTypeScriptApiDocs = async ({ entryPoint, outDir }, typeDocOptions) => {
17+
const app = new td.Application();
18+
app.options.addReader(new td.TSConfigReader());
19+
console.log('createTypeScriptApiDocs', typeDocOptions);
20+
let files = await globby(['src/**/*.d.ts', '!**/page', '!**/typings', '!**/angular'], {
21+
absolute: true,
22+
cwd: path.join(process.cwd())
23+
})
24+
console.log('files', files);
25+
app.bootstrap({
26+
tsconfig: 'tsconfig.json',
27+
...typedocJson,
28+
...typeDocOptions,
29+
entryPoints: files
30+
});
31+
//@ts-ignore
32+
app.options.setCompilerOptions(files, {
33+
esModuleInterop: true
34+
})
35+
const program = ts.createProgram(
36+
app.options.getFileNames(),
37+
app.options.getCompilerOptions()
38+
);
39+
40+
const project = app.converter.convert(
41+
app.expandInputFiles(app.options.getValue('entryPoints')),
42+
program
43+
);
44+
45+
if (project) {
46+
await app.generateDocs(project, outDir);
47+
} else {
48+
throw new Error(`Error creating the TypeScript API docs for ${entryPoint}.`);
49+
}
50+
};
51+
// app.generateDocs(project, "./docs");
52+
// app.generateJson(project, "./docs.json");
53+
54+
createTypeScriptApiDocs({outDir:"./docs"});

docs/assets/css/main.css

Lines changed: 2660 additions & 1 deletion
Large diffs are not rendered by default.

docs/assets/js/main.js

Lines changed: 248 additions & 51 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/search.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/assets/js/search.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/classes/_nativescript_community_ui_material_activityindicator.activityindicator.html

Lines changed: 0 additions & 6074 deletions
This file was deleted.

docs/classes/_nativescript_community_ui_material_activityindicator.activityindicatorbase.html

Lines changed: 0 additions & 5835 deletions
This file was deleted.

docs/classes/_nativescript_community_ui_material_activityindicator.materialactivityindicatordirective-1.html

Lines changed: 0 additions & 243 deletions
This file was deleted.

0 commit comments

Comments
 (0)