inkdropapp / docs-old

Inkdrop documentation
https://docs.inkdrop.app/
MIT License
74 stars 16 forks source link

feat(images): add svg icons #37

Closed craftzdog closed 2 years ago

craftzdog commented 2 years ago

cc: @dmitriyrotaenko

You can simply import the icon files like so: https://github.com/inkdropapp/docs/blob/master/src/pages/index.js#L4

dmitriyrotaenko commented 2 years ago

Did I get it right? To use icons in such way, Gatsby requires transforming .md pages in react components?

craftzdog commented 2 years ago

Ahh, good point. The simplest way to use the icons in .md is to move them to public/images/ folder and to embed them as img tags. Actually, I have some svg files already in it. I don't have much reason to use mdx at the moment.