You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Easiest way to use automd, is to use the CLI. You can install automd or run `npx automd` in your project.
33
-
34
-
By default, `README.md` file in current working directory will be checked.
35
-
36
-
You can use `--dir` and `--file` arguments to customize default beavior to operate on any other markdown file.
32
+
The easiest way to use automd is to use the CLI. You can install automd and add it to the `build` or `release` command in `package.json` or directly run `npx automd` in your project.
37
33
38
34
```sh
39
35
npx automd@latest
40
36
```
41
37
38
+
By default, the `README.md` file in the current working directory will be used as the target.
39
+
40
+
You can use `--dir` and `--file` arguments to customize the default behavior to operate on any other markdown file.
41
+
42
42
### Programmatic API
43
43
44
44
[WIP]
45
45
46
46
## Generators
47
47
48
-
There are several available generators for automd each supporting different aguments. See [issues](https://github.com/unjs/automd/issues?q=is%3Aopen+is%3Aissue+label%3Agenerator) for proposed generators and feel free to suggest any generator ideas to be included!
48
+
There are several available generators for automd each supporting different arguments.
49
+
50
+
See [open issues](https://github.com/unjs/automd/issues?q=is%3Aopen+is%3Aissue+label%3Agenerator) for proposed generators and feel free to suggest any generator ideas to be included!
49
51
50
52
### `jsdocs` Generator
51
53
52
-
jsdocs generator can automatically read through your code and extract documentation of function exports leveraging JSDocs and TypeScript hints.
54
+
jsdocs generator can automatically read through your code and extract and sync documentation of function exports leveraging JSDocs and TypeScript hints.
53
55
54
56
Internally it uses [untyped](https://untyped.unjs.io/) and [jiti](https://github.com/unjs/jiti) loader for JSDocs parsing and TypeScript support.
(make sure to have some utility exports in `src/index.ts` annotated with JSDocs.)
66
69
67
-
#### Example Output
70
+
**Example Output:**
68
71
69
72
## Utils
70
73
@@ -81,11 +84,11 @@ Internally it uses [untyped](https://untyped.unjs.io/) and [jiti](https://github
81
84
82
85
<!-- AUTOMD_END -->
83
86
84
-
### Args
87
+
### Args supported for `jsdocs`
85
88
86
89
-`src`: Path to the source file. The default is `./src/index` and can be omitted.
87
-
-`headingLevel`: Nested level for markdown group headings (default is `2` => `##`). Note: Each function uses `headingLevel+1` for title in nested levels.
88
-
-`group`: Only render function exportes anotated with `@group name`. By default there is no group filter. Value can be an string or array of strings.
90
+
-`headingLevel`: Nested level for markdown group headings (default is `2` => `##`). Note: Each function uses `headingLevel+1` for the title in nested levels.
91
+
-`group`: Only render function exportes annotated with `@group name`. By default, there is no group filter. Value can be a string or array of strings.
0 commit comments