@apitree.cz/typedoc-config 0.0.0
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 +39 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.js +16 -0
- package/dist/config.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/package.json +37 -0
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
<div align="center">
|
|
2
|
+
|
|
3
|
+
<a href="https://github.com/ApiTreeCZ">
|
|
4
|
+
<img alt="ApiTree s.r.o." src="https://www.apitree.cz/static/images/logo-header.svg" width="120" />
|
|
5
|
+
</a>
|
|
6
|
+
|
|
7
|
+
# TypeDoc Config
|
|
8
|
+
|
|
9
|
+
### [TypeDoc](https://typedoc.org) configuration for ApiTree projects
|
|
10
|
+
|
|
11
|
+
</div>
|
|
12
|
+
|
|
13
|
+
## Installation
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
pnpm add --save-dev @apitree.cz/typedoc-config typescript
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
Add the following configuration to your `typedoc.config.js`:
|
|
22
|
+
|
|
23
|
+
```javascript
|
|
24
|
+
export { config as default } from '@apitree.cz/typedoc-config';
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Custom Entry Points
|
|
28
|
+
|
|
29
|
+
The default configuration picks `./src/index.ts` in your package as the documentation entry point, however, you can
|
|
30
|
+
change this by overriding the `entryPoints` property in your `typedoc.config.js`:
|
|
31
|
+
|
|
32
|
+
```javascript
|
|
33
|
+
import { config } from '@apitree.cz/typedoc-config';
|
|
34
|
+
|
|
35
|
+
export default {
|
|
36
|
+
...config,
|
|
37
|
+
entryPoints: ['./src/module-a/index.ts', './src/module-b/index.ts'],
|
|
38
|
+
};
|
|
39
|
+
```
|
package/dist/config.d.ts
ADDED
package/dist/config.js
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
const base = {
|
|
2
|
+
entryPoints: ['./src/index.ts'],
|
|
3
|
+
githubPages: false,
|
|
4
|
+
gitRevision: 'develop',
|
|
5
|
+
out: './docs',
|
|
6
|
+
plugin: ['typedoc-plugin-markdown'],
|
|
7
|
+
readme: 'none',
|
|
8
|
+
};
|
|
9
|
+
const extra = {
|
|
10
|
+
hideBreadcrumbs: true,
|
|
11
|
+
};
|
|
12
|
+
export const config = {
|
|
13
|
+
...base,
|
|
14
|
+
...extra,
|
|
15
|
+
};
|
|
16
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAEA,MAAM,IAAI,GAAG;IACX,WAAW,EAAE,CAAC,gBAAgB,CAAC;IAC/B,WAAW,EAAE,KAAK;IAClB,WAAW,EAAE,SAAS;IACtB,GAAG,EAAE,QAAQ;IACb,MAAM,EAAE,CAAC,yBAAyB,CAAC;IACnC,MAAM,EAAE,MAAM;CACmB,CAAC;AAEpC,MAAM,KAAK,GAAG;IACZ,eAAe,EAAE,IAAI;CACtB,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,GAAG,IAAI;IACP,GAAG,KAAK;CACT,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './config.js';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@apitree.cz/typedoc-config",
|
|
3
|
+
"version": "0.0.0",
|
|
4
|
+
"description": "TypeDoc configuration for ApiTree projects.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/ApiTreeCZ/toolbox",
|
|
8
|
+
"directory": "packages/typedoc-config"
|
|
9
|
+
},
|
|
10
|
+
"sideEffects": false,
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": "./dist/index.js",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"typedoc": "^0.25.3",
|
|
18
|
+
"typedoc-plugin-markdown": "^3.16.0"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
"typescript": "^5.2.2"
|
|
22
|
+
},
|
|
23
|
+
"peerDependencies": {
|
|
24
|
+
"typescript": "^5.2.2"
|
|
25
|
+
},
|
|
26
|
+
"scripts": {
|
|
27
|
+
"build": "tsc --build tsconfig.build.json",
|
|
28
|
+
"cleanup": "rimraf .eslintcache .turbo tsconfig.tsbuildinfo tsconfig.build.tsbuildinfo dist node_modules",
|
|
29
|
+
"fix": "run-p ts format:fix lint:fix",
|
|
30
|
+
"format": "prettier --check \"./**/*.{json,md}\"",
|
|
31
|
+
"format:fix": "pnpm run format --write",
|
|
32
|
+
"lint": "eslint --cache --ext cjs,js,ts .",
|
|
33
|
+
"lint:fix": "pnpm run lint --fix",
|
|
34
|
+
"qa": "run-p ts format lint",
|
|
35
|
+
"ts": "tsc --build tsconfig.json"
|
|
36
|
+
}
|
|
37
|
+
}
|