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

Illustrations #4

Open
2 tasks
Sean-Der opened this issue Aug 2, 2020 · 11 comments
Open
2 tasks

Illustrations #4

Sean-Der opened this issue Aug 2, 2020 · 11 comments
Labels
image issue Problems with diagrams or images

Comments

@Sean-Der
Copy link
Member

Sean-Der commented Aug 2, 2020

  • Front Cover
  • Each Chapter Start

All technical diagrams are going to user mermaid.

@enobufs
Copy link
Contributor

enobufs commented Aug 21, 2020

@Sean-Der Would that still be a plan in which the diagram we draw would be touched up by someone else? Mermaid is handy wherever it does good but not perfect. I am wondering if I can just insert photocopies of my quick drawing by hand, assuming that some illustrator would later make them look great?

@Sean-Der
Copy link
Member Author

@enobufs I don't know how many illustrations we will be able to get unfortunately. The person who I originally talked with is busier then anticipated :( Maybe we can reach out to the Pion community?

The nice thing about mermaid is that is easy for others to edit and they are responsive at least!

@threeplanetssoftware
Copy link
Contributor

One thing to consider for mermaid is that anyone viewing it on Github won't benefit from the diagram. I'm sure that is not a deal breaker since there are other differences as well, but something you may want to keep in mind.

Github:
image

Website:
image

One potential solution would be to have an images folder that has the underlying code to generate each of the diagrams, then you could generate each image from them and include the image itself in the markdown. You could potentially have a content/ diagrams folder that has the markup which generates each image and a content/images folder which has the generated images and any others that didn't come from mermaid. With that schema, there would be room to start with hand drawings of any image you want and then convert it to mermaid when someone has the time and inclination. But throughout it, both Github and the website might benefit.

@enobufs
Copy link
Contributor

enobufs commented Sep 2, 2020

+1 for having a folder at ./content/images.
I am going to use image files for data channel sections. I talked to @Sean-Der a bit about it. We could put all image files flat under the folder just like markdown files in ./content/docs/. with the section number prefix (e.g. "06-")

Example:

{{< figure src="/images/06-sctp-inflight-queue-02.png">}}

We'd still have to depend on shortcodes Hugo and theme "Book" provide anyway. I'm ok with not being able to see Mermaid images directly on Github. hugo server command works great!

@Sean-Der
Copy link
Member Author

Sean-Der commented Sep 2, 2020

I am 👍 with dropping mermaid completely. Both @enobufs and @threeplanetssoftware aren't fans, so I think we should go with the majority :)

For things generated with mermaid maybe we can leave them above the images (but commented out) so they are easy to change if needed!

@Sean-Der
Copy link
Member Author

Sean-Der commented Sep 2, 2020

@threeplanetssoftware mind if I add you to the GitHub organization? I don't want to spam you. We would really love to have you involved long term. I know WebRTC, but it is becoming more obvious how much more help this book needs :)

@enobufs
Copy link
Contributor

enobufs commented Sep 2, 2020

Mermaid is good (also other shortcodes) and I'd like to use them also. It's just that many of my diagrams can't be drawn with Mermaid. I'd use Mermaid where possible.

@threeplanetssoftware
Copy link
Contributor

@threeplanetssoftware mind if I add you to the GitHub organization? I don't want to spam you.

I think I'd prefer to lurk and spot places I can help for now, since neither Hugo, nor WebRTC is something I have much experience with. I have the repo followed and that's not too spammy yet. I will let you know if I see room for a larger role.

@Sean-Der
Copy link
Member Author

Sean-Der commented Sep 3, 2020

@threeplanetssoftware sounds good to me! Thank you so much for all the changes you have driven so far :)

@mogren
Copy link
Contributor

mogren commented Apr 4, 2021

Just to revive this discussion again. I agree that having images checked in is probably the way to go. I would be happy to try and convert some existing images and see what it looks like in all three formats we currently produce.

For pandoc, it seems like using Markdown to include them should just work to generate the PDF.

We could use something like https://app.diagrams.net to draw diagram, and also check in the original .drawio file to make it easy for anyone to edit them.

@mogren mogren added the image issue Problems with diagrams or images label Apr 4, 2021
@ValarMarkhulis
Copy link

I have found an error in one of the illustrations in this repo, but I can't figure out how to edit the file without creating a new one from scratch. Found this issue, which verified that you don't have the images in an editable format on Github.

I can add to the discussion, that it is possible from https://app.diagrams.net/ or the desktop app to export an illustration as "filename.drawio.svg" or "filename.drawio.png", which makes it a picture.
image

image

But you can open it and continue editing it after the fact in diagrams.net and the app. Then you just version this file, which can also be referenced from markdown.

There is also an unofficial vs code extension, that integrates quite well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
image issue Problems with diagrams or images
Projects
None yet
Development

No branches or pull requests

5 participants