Skip to content

Commit

Permalink
fix position
Browse files Browse the repository at this point in the history
  • Loading branch information
drammock committed Aug 3, 2023
1 parent fce6721 commit 9925ae5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
{# As the version switcher will only work when JavaScript is enabled, we add it through JavaScript.
#}
{% if theme_switcher.get('use_rtd') is defined and theme_switcher.get('use_rtd') %}
<div id="foo"></div>
<script>
document.write(`
<div class="version-switcher__container dropdown">
<div id="readthedocs-embed-flyout"></div>
</div>
`);
</script>
{% else %}
<script>
document.write(`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
{% block docs_main %}
<div class="bd-content">
<div class="bd-article-container">
<div id="readthedocs-embed-flyout"></div>
{# Article header #}
<div class="bd-header-article">{% include "sections/header-article.html" %}</div>
{# Article content #}
Expand Down

0 comments on commit 9925ae5

Please sign in to comment.