Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sequence diagrams not showing in markdown files #84

Open
elnyry-sam-k opened this issue Mar 23, 2021 · 5 comments
Open

Sequence diagrams not showing in markdown files #84

elnyry-sam-k opened this issue Mar 23, 2021 · 5 comments
Assignees
Labels
bug Something isn't right ml-ccb CCB issues or issues common to all the SIGs

Comments

@elnyry-sam-k
Copy link
Member

elnyry-sam-k commented Mar 23, 2021

Describe the bug
The sequence diagrams that are based on plantuml files are not available on the markdown version of the docs such as the API Definition.

For example figure-50 on the API Definition v1.1 markdown file: https://github.com/mojaloop/mojaloop-specification/blob/master/fspiop-api/documents/API-Definition_v1.1.1.md#figure-50

Notes: Since gitbooks has been chosen for rendering documentation, the scripts we have automatically generate svgs for plantuml diagrams when we create a release and then publish to git books. This is part of the CI/CD process.

There are two types of diagrams in the current docs, sequence diagrams that use plantuml and then other hand drawn diagrams, to represent state transitions etc (that are not plantuml); Both types of diagrams show fine on gitbooks: https://docs.mojaloop.io/api/fspiop/v1.1/api-definition.html#figure-50

This may technically not be a bug but more of an experience issue (as it is by design), but logging this to discuss ways to enhance the experience around plain markdown files

Priority & Severity:
Priority: Low
Severity: Low

To Reproduce
Steps to reproduce the behavior:

  1. Go to figure-50 on the API Definition v1.1 markdown file: https://github.com/mojaloop/mojaloop-specification/blob/master/fspiop-api/documents/API-Definition_v1.1.1.md#figure-50
  2. There is no svg available (by design)

Expected behavior
To be decided - should there be an SVG or a diagram available even on the markdown file (discuss)

Screenshots
Not. a screenshot, but this is how it shows up currently (on the md files)

figure 50
{% uml src="assets/diagrams/sequence/figure50.plantuml" %} {% enduml %}
@elnyry-sam-k elnyry-sam-k added bug Something isn't right ml-ccb CCB issues or issues common to all the SIGs labels Mar 23, 2021
@lewisdaly
Copy link
Contributor

We have some pretty handy tools for rendering .svgs from puml sources in the documentation repo we could borrow from. That would require keeping .svgs in git (which I don't think is all that bad).

@elnyry-sam-k
Copy link
Member Author

Can we discuss this @lewisdaly , AFAIK this repo replicated the tooling from the documentation repo (at least, at the time).. It would be great of course to have the tools there anyway, and having SVGs should be fine and will help fix this issue..

@millerabel
Copy link
Member

millerabel commented Apr 1, 2021 via email

@elnyry-sam-k
Copy link
Member Author

elnyry-sam-k commented Apr 14, 2021

Thanks Miller, agree with the requirements.. For the first one though (local development), I use VS code and a plugin/extension for that which quickly renders an SVG and we already have CI/CD steps that build/validate SVG generation for plantuml files (for docs repos)... Will work with Lewis to fill the gaps (image in markdown file, etc)

@millerabel
Copy link
Member

millerabel commented Apr 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't right ml-ccb CCB issues or issues common to all the SIGs
Projects
None yet
Development

No branches or pull requests

4 participants