From cf68e81652e626fb6267a017ab29d52e1a14d179 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 23 Sep 2020 08:53:50 +1000 Subject: [PATCH] Primitive check to see if we are running "live" --- _includes/img.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/_includes/img.html b/_includes/img.html index 4dd8b8e..f680758 100644 --- a/_includes/img.html +++ b/_includes/img.html @@ -1,4 +1,8 @@ +{% if 'readthedocs.org' in config.docs_dir %} {% set assets = '/en/latest/assets' %} +{% else %} +{% set assets = '/assets' %} +{% endif %}
{% if id %}