nuxt / website-v2

Nuxt 2 Documentation Website
https://v2.nuxt.com
Other
2.25k stars 1.2k forks source link

[dev] use svg for vectors and diagrams #397

Open pi0 opened 4 years ago

pi0 commented 4 years ago

Checking guides directory, we are currently using jpeg and png for diagrams. Jpeg compression is always lossy and for png files are also using lossy compression format which decreases text readability and makes size bigger. I would recommend using SVG format as even internet explorer supports it.

Krutie commented 4 years ago

@pi0 Having images in an SVG format will be good. I'm able to export SVG (440KB) from LucidChart and then run it through SVGOMG to bring it little bit down to ~330KB. I can provide images in SVG format in future PRs.

debs-obrien commented 4 years ago

agree, svgs would be much better. is it possible to get the previous images in svg format @Krutie. Not urgent but whenever you have the time.

Krutie commented 4 years ago

@debs-obrien Yes, certainly. I will send PR with SVG versions of context diagram (after implementing @pi0's changes) and Nuxt lifecycle image.

debs-obrien commented 3 years ago

Hi @Krutie what is the status of nuxt lifecycle image in svg format? it would also be great to get the modules one too. And how is the raw formats coming along? leet us know if it takes too long to do this or at least some feedback and if there is anything we can help on it.

Krutie commented 3 years ago

Hey @debs-obrien Modules diagram was done on issue #400. We're kind of waiting on Pooya's review.

As soon as I get a chance, I will get the Nuxt lifecycle diagram done.

ToDo

debs-obrien commented 3 years ago

Great, thanks @Krutie

debs-obrien commented 3 years ago

Hi @Krutie any news on getting the nuxt lifecycle and modules in .drawio format. It might make things much easier for us to maintain etc. Let us know if you think you would have the time to do this. not urgent but just keeping tabs on things so they don't get forgotten about. Thanks

atinux commented 3 years ago

I think there is no big pressure on this @Krutie, the Nuxt 2 lifecycle should not change and we will do another one for Nuxt 3 :)