Skip to content

Commit 421a8aa

Browse files
authored
Merge pull request #110 from askpatrickw/fix-rtd-conditional-section
fix the whitespace removal on RTD badge
2 parents 2aac8c0 + 5474c88 commit 421a8aa

File tree

1 file changed

+3
-1
lines changed
  • {% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}

1 file changed

+3
-1
lines changed

{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}/README.rst

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,15 @@
99
Introduction
1010
============
1111

12+
{% if cookiecutter.sphinx_docs | lower in ["yes", "y"] %}
1213
.. image:: https://readthedocs.org/projects/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | lower | replace("_", "-")}}-{% endif %}circuitpython-{{ cookiecutter.library_name | lower }}/badge/?version=latest
13-
{%- if cookiecutter.target_bundle == 'Adafruit' -%}
14+
{%- if cookiecutter.target_bundle == 'Adafruit' %}
1415
:target: https://circuitpython.readthedocs.io/projects/{{ cookiecutter.library_name | lower }}/en/latest/
1516
{%- else %}
1617
:target: https://circuitpython-{{ cookiecutter.library_name | lower }}.readthedocs.io/
1718
{%- endif %}
1819
:alt: Documentation Status
20+
{% endif %}
1921

2022
.. image:: https://img.shields.io/discord/327254708534116352.svg
2123
:target: https://adafru.it/discord

0 commit comments

Comments
 (0)