From 5474c88073fd1304b20bc7d63fa2d6518d45fbab Mon Sep 17 00:00:00 2001 From: Patrick <4002194+askpatrickw@users.noreply.github.com> Date: Sun, 21 Feb 2021 21:40:06 -0800 Subject: [PATCH] fix the whitespace removal on RTD badge --- .../README.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}/README.rst b/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}/README.rst index ea8a604..a6d5478 100644 --- a/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}/README.rst +++ b/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | capitalize }}_{% endif %}CircuitPython_{{ cookiecutter.library_name}}/README.rst @@ -9,13 +9,15 @@ Introduction ============ +{% if cookiecutter.sphinx_docs | lower in ["yes", "y"] %} .. image:: https://readthedocs.org/projects/{% if cookiecutter.library_prefix %}{{ cookiecutter.library_prefix | lower | replace("_", "-")}}-{% endif %}circuitpython-{{ cookiecutter.library_name | lower }}/badge/?version=latest -{%- if cookiecutter.target_bundle == 'Adafruit' -%} +{%- if cookiecutter.target_bundle == 'Adafruit' %} :target: https://circuitpython.readthedocs.io/projects/{{ cookiecutter.library_name | lower }}/en/latest/ {%- else %} :target: https://circuitpython-{{ cookiecutter.library_name | lower }}.readthedocs.io/ {%- endif %} :alt: Documentation Status +{% endif %} .. image:: https://img.shields.io/discord/327254708534116352.svg :target: https://adafru.it/discord