Last active
May 5, 2020 01:03
-
-
Save joshcarp/cbebb74db11358314349bf778befe7a7 to your computer and use it in GitHub Desktop.
sysl-catalog custom templates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
id: Package-{{.PackageName}} | |
title: {{.PackageName}} | |
sidebar_label: {{.PackageName}} | |
--- | |
## Integration diagram | |
{{.Integration.Img}} | |
--- | |
{{range $appName, $Diagrams := .SequenceDiagrams}} | |
{{$first := true}} | |
{{range $Diagram := $Diagrams}} | |
{{if $first}} | |
## {{$Diagram.AppName}} | |
{{if ne $Diagram.AppComment ""}} | |
- {{$Diagram.AppComment}} | |
{{end}} | |
{{end}} | |
{{$first = false}} | |
## {{$Diagram.AppName}} {{$Diagram.EndpointName}} | |
{{$Diagram.EndpointComment}} | |
### Sequence Diagram | |
{{.Img}} | |
### Request types | |
{{range $DataModelDiagram := $Diagram.InputDataModel}} | |
{{if ne $DataModelDiagram.TypeComment ""}} | |
- {{$DataModelDiagram.TypeComment}} | |
{{end}} | |
{{$DataModelDiagram.Img}} | |
{{end}} | |
### Response types | |
{{range $DataModelDiagram := $Diagram.OutputDataModel}} | |
{{if ne $DataModelDiagram.TypeComment ""}} | |
- {{$DataModelDiagram.TypeComment}} | |
{{end}} | |
{{$DataModelDiagram.Img}} | |
{{end}} | |
{{end}} | |
--- | |
{{end}} | |
{{range $appName, $Diagrams := .DatabaseModel}} | |
## Database {{$appName}} | |
{{if ne $Diagrams.AppComment ""}} | |
- {{$Diagrams.AppComment}} | |
{{end}} | |
{{$Diagrams.Img}} | |
{{end}} | |
## Types | |
<table> | |
<tr> | |
<th>App Name</th> | |
<th>Diagram</th> | |
<th>Comment</th> | |
<th>Full Diagram</th> | |
</tr> | |
{{range $typeName, $Diagrams := .Types}} | |
<tr> | |
<td> | |
{{$Diagrams.Simple.AppName}}.<br>{{$typeName}} | |
</td> | |
<td> | |
{{$Diagrams.Simple.Img}} | |
</td> | |
<td> | |
{{if ne $Diagrams.Simple.TypeComment ""}}<details closed><summary>Comment</summary><br>{{$Diagrams.Simple.TypeComment}}</details>{{end}} | |
</td> | |
<td> | |
{{$Diagrams.Full.Link}} | |
</td> | |
</tr>{{end}} | |
</table> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
id: {{.Title}} | |
title: {{.Title}} | |
sidebar_label: {{.Title}} | |
--- | |
Integration diagram: | |
{{.RootLevelIntegrationDiagram.Img}} | |
Integration diagram with end point analysis: | |
{{.RootLevelIntegrationDiagramEPA.Img}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment