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

Add style support to the docs #588

Closed
Stevemoretz opened this issue Aug 25, 2021 · 2 comments · Fixed by #641 · May be fixed by GabrielNathan12/to-do-list-agent#49 or GabrielNathan12/to-do-list-agent#51
Closed

Add style support to the docs #588

Stevemoretz opened this issue Aug 25, 2021 · 2 comments · Fixed by #641 · May be fixed by GabrielNathan12/to-do-list-agent#49 or GabrielNathan12/to-do-list-agent#51
Labels
docs 📝 Documentation

Comments

@Stevemoretz
Copy link

Thanks for the insight @neoziro !

Use .svgrrc with the following content

{
  "svgoConfig": {
    "plugins": [
      {
        "inlineStyles": {
          "onlyMatchedOnce": false
        }
      }
    ]
  }
}

Originally posted by @7ynk3r in #245 (comment)

Took me two hours to find this and figure out how to make the config work, no single examples were provided on how to use the config reading multiple documention pages and some more stuff I figured out how to set it up for the cli version, you could document this that it adds style support and also really easy to setup if an example was provided.

@open-collective-bot
Copy link

Hey @Stevemoretz 👋,
Thank you for opening an issue. We'll get back to you as soon as we can.
Please, consider supporting us on Open Collective. We give a special attention to issues opened by backers.
If you use SVGR at work, you can also ask your company to sponsor us ❤️.

@Stevemoretz Stevemoretz changed the title Add this to the docs Add style support to the docs Aug 25, 2021
@gregberge gregberge added the docs 📝 Documentation label Sep 12, 2021
@gregberge
Copy link
Owner

Hello @Stevemoretz, you are right, we should definitively improve the documentation with this kind of examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment