Closed kattni closed 2 years ago
@askpatrickw Hmm. Any idea how to resolve that?
I think the syntax is to use {%-
and\or -%}
like in these lines:
@askpatrickw I'm unclear on exactly how to adapt this. I asked Tim about it on Discord and he thinks it might be the following change in the endif
:
{%- if cookiecutter.target_bundle == 'Adafruit' %}
.. image:: https://github.com/adafruit/Adafruit_CircuitPython_Bundle/blob/main/badges/adafruit_discord.svg
{%- else %}
.. image:: https://img.shields.io/discord/327254708534116352.svg
{%- endif %}
If that's not it, can you clarify? There are a lot of options in the code you linked, and I'm not sure exactly what is doing what.
Nope... ;-) @kattni, I have some time, I'll look at this in a bit and give you the fix.
@askpatrickw Thank you so much!
@kattni OK I tested that and commited into your PR. @FoamyGuy if you want to be the final reviewer, that would be great.
@askpatrickw Thank you again for all your help here! I really appreciate it.
Updating to Adafruit Discord chat badge for Adafruit bundle only.
Updated the top-level cookiecutter .gitignore to match the globally updated .gitignore, with a couple of extras from the original that look cookiecutter-specific.
Please test that this generates properly for both the Adafruit and Community library options before merging. Thanks!