Skip to content

Commit 606ee28

Browse files
committedApr 3, 2022
[refactor] adjust directory architecture of doclet
调整doclet的目录结构
1 parent f92df77 commit 606ee28

File tree

352 files changed

+302
-23946
lines changed

Some content is hidden

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

352 files changed

+302
-23946
lines changed
 
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
2-
3-
4-
bitrxc-doclet
1+
bitrxc-doclet
52
===========================
63

74
Introduction
@@ -10,21 +7,18 @@ This java doclet allows for auto generation of API documentation that can be re
107

118
It is modified from [calrissian/rest-doclet: Automatic generation of REST documentation from Spring and JAX-RS Controllers. (github.com)](https://github.com/calrissian/rest-doclet).
129

13-
14-
15-
Example of API documentation
16-
----------------------------
17-
The API documentation of bitrxc-server-dev is at
18-
bitrxc-doclet\example\bitrxc-server-dev\service\target\site\apidocs
19-
20-
21-
22-
2310
How to generate API documentation from a Spring project
2411
----------------------------
25-
If you want to use it in your Spring project, copy the folder "bitrxc-doclet\generated doclet\cn\edu\bit\ruixin\bitrxc-doclet" to your Maven local repository. And then follow these steps
12+
If you want to use it in your Spring project, follow these steps:
13+
14+
1. Install
15+
Enter following command under the root path of this project("bitrxc-doclet")
16+
```
17+
mvn clean install
18+
```
19+
Then the doclet is generated in your Maven local repository. The groupId is "cn.edu.bit.ruixin.rest-doclet"
2620

27-
1. Maven
21+
2. Maven
2822
Configure the javadoc plugin to use this custom doclet. To be specific, add the following xml to your Maven configuration file
2923
```xml
3024
<build>
@@ -39,9 +33,9 @@ Configure the javadoc plugin to use this custom doclet. To be specific, add the
3933
<encoding>UTF-8</encoding>
4034
<useStandardDocletOptions>false</useStandardDocletOptions>
4135
<show>private</show>
42-
<doclet>cn.edu.bit.ruixin.doc.RestDoclet</doclet>
36+
<doclet>cn.edu.bit.ruixin.doclet.restful.RestDoclet</doclet>
4337
<docletArtifact>
44-
<groupId>cn.edu.bit.ruixin.bitrxc-doclet</groupId>
38+
<groupId>cn.edu.bit.ruixin</groupId>
4539
<artifactId>rest-doclet</artifactId>
4640
<version>1.0-SNAPSHOT</version>
4741
</docletArtifact>
@@ -51,35 +45,16 @@ Configure the javadoc plugin to use this custom doclet. To be specific, add the
5145
</build>
5246

5347
```
54-
2. Command
48+
3. Command
5549
Enter the following command under your project path
5650
```
5751
mvn javadoc:javadoc
5852
```
5953

60-
3. Result
54+
4. Result
6155
Then the API document index.html and stylesheet.css is generated at target/site/apidocs
6256

63-
64-
65-
Example to generate API documentation from a Spring project
66-
----------------------------
67-
68-
1. Copy the folder "bitrxc-doclet\generated doclet\cn\edu\bit\ruixin\bitrxc-doclet" to your local Maven repository.
69-
70-
2.Enter the following command under the path bitrxc-doclet\example\bitrxc-server-dev
71-
72-
```
73-
mvn javadoc:javadoc
74-
```
75-
Then the documentation is generated at bitrxc-doclet\example\bitrxc-server-dev\service\target\site\apidocs
76-
77-
78-
How to generate doclet from source code
57+
How to build doclet from source code
7958
----------------------------
80-
If you want to modify the doclet source code and generate doclet from source code, just enter following command under the root path of this project("bitrxc-doclet")
81-
```
82-
mvn clean install
83-
```
84-
Then the doclet is generated in your Maven local repository. The groupId is "cn.edu.bit.ruixin.bitrxc-doclet"
8559

60+
If you want to modify the doclet source code and generate doclet from source code, just

‎docgen/bitrxc-doclet/bitrxc-doclet.iml

-6
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.