Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Commit 7597534

Browse files
authored
Merge pull request #71 from secureCodeBox/fix/markdown-api-docs
Fix/markdown api docs
2 parents c64d9be + 191b108 commit 7597534

2 files changed

Lines changed: 26 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ To build the docker image run:
5656

5757
`docker build -t IMAGE_NAME .`
5858

59+
## Generating the API Docs
60+
61+
1. Run the Test Suite using the `docs` maven profile. This should generate a `swagger.json` file in the target folder of the `scb-engine` module.
62+
2. Run the `swagger2markup:convertSwagger2markup` plugin. This should generate a file located `docs/api-doc.md` in the target folder of the `scb-engine module.
63+
3. Copy the `api-doc.md` file to the user guide of the [secureCodeBox](https://github.com/secureCodeBox/secureCodeBox) repository.
64+
4. Re Add the first disclaimer paragraph pointing the users to the dynamic swagger docs of their engine. This has to be added by hand as it is not included in the export.
65+
5. (Optional) Reformat the generated markdown file with prettier to improve the generated markdown output.
66+
5967
# Guidelines & Standards
6068
Well boring yes - but please read our [guidelines and naming standards][scb-developer-guidelines].
6169

scb-engine/pom.xml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,11 +236,29 @@
236236
<properties>
237237
<activatedProfiles>docs</activatedProfiles>
238238
</properties>
239+
240+
<pluginRepositories>
241+
<pluginRepository>
242+
<id>jcenter-snapshots</id>
243+
<name>jcenter</name>
244+
<url>http://oss.jfrog.org/artifactory/oss-snapshot-local/</url>
245+
</pluginRepository>
246+
<pluginRepository>
247+
<id>jcenter-releases</id>
248+
<name>jcenter</name>
249+
<url>http://jcenter.bintray.com</url>
250+
<snapshots>
251+
<enabled>false</enabled>
252+
</snapshots>
253+
</pluginRepository>
254+
</pluginRepositories>
255+
239256
<build>
240257
<plugins>
241258
<plugin>
242259
<groupId>io.github.swagger2markup</groupId>
243260
<artifactId>swagger2markup-maven-plugin</artifactId>
261+
<version>1.3.7</version>
244262

245263
<configuration>
246264
<swaggerInput>${project.build.directory}/swagger.json</swaggerInput>

0 commit comments

Comments
 (0)