update readme
This commit is contained in:
parent
3b73041a19
commit
114321bcf1
13
README.md
13
README.md
|
@ -25,7 +25,7 @@ Or a static html document. If you are tired of the numerous annotations and stro
|
|||
This example already provides a static html document generated in advance. You can start the Spring Boot project and then go directly to `http://localhost:8080/doc/api.html` to view the interface documentation generated by smart-doc.
|
||||
Of course you can also browse `http://localhost:8080/doc/api.html`,
|
||||
which looks a html like generated by `asciidoctor-maven-plugin` plugin.
|
||||
## Add Maven plugin
|
||||
### Add Maven plugin
|
||||
Add smart-doc-maven-plugin in your pom.xml.
|
||||
```
|
||||
<plugin>
|
||||
|
@ -155,18 +155,19 @@ On Use IntelliJ IDE, if you have added smart-doc-maven-plugin to the project,
|
|||
you can directly find the plugin smart-doc plugin and click to generate API documentation.
|
||||
|
||||

|
||||
## Use Junit Test
|
||||
You can generate documentation by adding smart-doc dependencies directly to your project and then writing unit tests to start smart-doc.
|
||||
But we still recommend that you use the smart-doc-maven-plugin plugin.
|
||||
|
||||
[Use smart-doc by junit test](https://github.com/smart-doc-group/smart-doc/wiki/Use-smart-doc-by-junit-test)
|
||||
### Generated document example
|
||||
## Generated document example
|
||||
#### Interface header rendering
|
||||

|
||||
#### Request parameter example rendering
|
||||

|
||||
#### Response parameter example renderings
|
||||

|
||||
## Integration through unit tests
|
||||
You can generate documentation by adding smart-doc dependencies directly to your project and then writing unit tests to start smart-doc.
|
||||
But we still recommend that you use the smart-doc-maven-plugin plugin.
|
||||
|
||||
[Use smart-doc by junit test](https://github.com/smart-doc-group/smart-doc/wiki/Use-smart-doc-by-junit-test)
|
||||
## Building
|
||||
you can build with the following commands. (Java 1.8 is required to build the master branch)
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue