Skip to content

Commit

Permalink
docs(examples) avoid redirects when loading examples
Browse files Browse the repository at this point in the history
  • Loading branch information
embeddedt committed May 7, 2022
1 parent 93dfd87 commit d367bb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/_ext/lv_example.py
Expand Up @@ -71,7 +71,7 @@ def run(self):

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')
Expand Down

0 comments on commit d367bb7

Please sign in to comment.