aboutsummaryrefslogtreecommitdiff
path: root/docs/_ext/lv_example.py
diff options
context:
space:
mode:
authorembeddedt <42941056+embeddedt@users.noreply.github.com>2022-05-07 17:37:51 -0400
committerGitHub <noreply@github.com>2022-05-07 17:37:51 -0400
commitd367bb7cf17dc34863f4439bba9b66a820088951 (patch)
treea874483cce698dd0a48f5911f161dc9640b91794 /docs/_ext/lv_example.py
parent93dfd87a7a38e5856d0d1038510f6ec1602881ae (diff)
downloadlvgl-d367bb7cf17dc34863f4439bba9b66a820088951.tar.gz
lvgl-d367bb7cf17dc34863f4439bba9b66a820088951.zip
docs(examples) avoid redirects when loading examples
Diffstat (limited to 'docs/_ext/lv_example.py')
-rw-r--r--docs/_ext/lv_example.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/_ext/lv_example.py b/docs/_ext/lv_example.py
index d4db6a08c..1a818e246 100644
--- a/docs/_ext/lv_example.py
+++ b/docs/_ext/lv_example.py
@@ -71,7 +71,7 @@ class LvExample(Directive):
if not 'c' in excluded_languages:
if env.app.tags.has('html'):
- iframe_html = f"<div class='lv-example' data-real-src='/{env.config.version}/_static/built_lv_examples?example={example_name}&w=320&h=240'></div>"
+ iframe_html = f"<div class='lv-example' data-real-src='/{env.config.version}/_static/built_lv_examples/index.html?example={example_name}&w=320&h=240'></div>"
description_html = f"<div class='lv-example-description'>{self.options.get('description', '')}</div>"
layout_node = nodes.raw(text=f"<div class='lv-example-container'>{iframe_html}{description_html}</div>", format='html')