Skip to content

Commit 5ab9543

Browse files
try blanket whitespace reduction
1 parent 442da95 commit 5ab9543

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

_includes/layouts/side-bar.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{% assign sidebar_contents = null %}
2+
{% capture sidebar_contents %}
3+
14
{% if page.url contains "/python/v3/ipython-notebooks/gallery" %}
25
{% assign ipython_notebooks_gallery = true %}
36
{% elsif page.url contains "dashboards" %}
@@ -615,3 +618,5 @@
615618
</nav>
616619
</div>
617620
</aside>
621+
{% endcapture %}
622+
{{ sidebar_contents | normalize_whitespace }}

_includes/posts/auto_examples.html

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{% assign counter = 0 %}
1+
{% assign counter = 0 %}
22
{% for example in examples %}
33
{% assign counter=counter | plus:1 %}
44
<div class="section">
@@ -37,7 +37,7 @@ <h4 id="{{ example.name | replace:' ','-' | remove:',' | downcase | strip_html }
3737
{% elsif page.language == "plotly_js" and (example.content contains "'myDiv'" or example.content contains '"myDiv"') %}
3838
<div class="{% if example.arrangement contains 'horizontal' %}twelve{% else %}six{% endif %} columns">
3939
<form style="margin-bottom: 35px; font-weight: 'Open Sans', sans-serif;" action="https://codepen.io/pen/define" method="POST" target="_blank">
40-
<input type="hidden" name="data"
40+
<input type="hidden" name="data"
4141
value="{&quot;title&quot;:&quot;Plotly.js {{example.name}}&quot;,&quot;html&quot;:&quot;&lt;head&gt;\n\t&lt;!-- Load plotly.js into the DOM --&gt;\n\t&lt;script src='https://cdn.plot.ly/plotly-latest.min.js'>&lt;/script&gt;\n&lt;/head>\n\n&lt;body&gt;\n\t&lt;div id='myDiv'&gt;&lt;!-- Plotly chart will be drawn inside this DIV --&gt;&lt;/div&gt;\n&lt;/body&gt;&quot;,&quot;js&quot;:{{example.content | jsonify | escape | replace: "your access token", "pk.eyJ1IjoiZXRwaW5hcmQiLCJhIjoiY2luMHIzdHE0MGFxNXVubTRxczZ2YmUxaCJ9.hwWZful0U2CQxit4ItNsiQ"}}}">
4242
<input style=" float: right; background-color:#119dff; border-radius: 4px; color: white;" class="codepen-submit" type="submit" value="Try It On CodePen!">
4343
</form>
@@ -51,4 +51,3 @@ <h4 id="{{ example.name | replace:' ','-' | remove:',' | downcase | strip_html }
5151
</div>
5252
</div>
5353
{% endfor %}
54-

_includes/posts/documentation_eg.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
{% assign doceg_content = null %}
2+
{% capture doceg_content %}
3+
14
{% comment %}First, check which sections this page should contain checking all of the posts{% endcomment %}
25
{% for page in languagelist %}
36
{% if page.display_as == "file_settings" %}
@@ -1038,3 +1041,6 @@ <h1><a href="#dash-example">Dash Example</a></h1>
10381041
{% if page.language == "matlab" %}
10391042
<p><em>MATLAB is a registered trademark of The MathWorks, Inc.</em></p>
10401043
{% endif %}
1044+
1045+
{% endcapture %}
1046+
{{ doceg_content | normalize_whitespace }}

0 commit comments

Comments
 (0)