Skip to content

Commit db6b325

Browse files
authored
docs: change script into documentation generate cli for more advanced options (#60)
* make cli * works
1 parent cc8cef3 commit db6b325

File tree

21 files changed

+958
-786
lines changed

21 files changed

+958
-786
lines changed

.github/CONTRIBUTING.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ just setup
3737
### Development Commands
3838

3939
```shell
40+
# Build project
41+
just build
42+
4043
# Format all files
4144
just format
4245

@@ -80,20 +83,5 @@ chore: upgrade vitest to v3
8083

8184
This project aims to maintain high documentation quality.
8285

83-
Please refer to the following guide to create robust references using JSDoc.
84-
85-
- `@category` : Specifies the category in which the reference documentation will be placed. You can use `/` to specify depth (e.g. `Repository/Methods`).
86-
- `@signature` : Describes what type of signature a function or method has. Please write a type declaration in the TypeScript language.
87-
- `@param` : Write all parameters.
88-
- `@returns` : Specifies what value is returned.
89-
- `@throws` : Write documentation for errors that should be noted.
90-
- `@example` : Examples are not required, but are recommended as they make the behavior easier to understand.
91-
92-
To automatically generate reference documentation after writing a JSDoc, please run the command below.
86+
Please refer to [docs/README.md](../docs/README.md) for instructions on writing documentation.
9387

94-
```shell
95-
yarn build
96-
97-
cd docs/
98-
yarn gen-reference
99-
```

.yarnrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ enableGlobalCache: true
22

33
nodeLinker: node-modules
44

5-
yarnPath: .yarn/releases/yarn-4.6.0.cjs
6-
75
preferReuse: true
6+
7+
yarnPath: .yarn/releases/yarn-4.6.0.cjs

docs/README.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Documentation
2+
3+
## Writing JSDoc
4+
5+
Use following tags to create robust references using JSDoc.
6+
7+
- `@category` : Specifies the category in which the reference documentation will be placed. You can use `/` to specify depth (e.g. `Repository/Methods`).
8+
- `@signature` : Describes what type of signature a function or method has. Please write a type declaration in the TypeScript language.
9+
- `@param` : Write all parameters.
10+
- `@returns` : Specifies what value is returned.
11+
- `@throws` : Write documentation for errors that should be noted.
12+
- `@example` : Examples are not required, but are recommended as they make the behavior easier to understand.
13+
14+
## Generate Reference
15+
16+
To automatically generate reference documentations after writing a JSDoc, please run the command below.
17+
18+
```shell
19+
# Generate all reference documentations.
20+
just gen-docs reference
21+
22+
# Generate all korean reference docuementations.
23+
just gen-docs reference --lang=ko
24+
25+
# Generate specific reference documentations with glob pattern.
26+
just gen-docs reference --pattern='Tree/Methods/*'
27+
```

0 commit comments

Comments
 (0)