Skip to content

Commit 38dea42

Browse files
authored
include for like button and tabs (#916)
1 parent 77e469f commit 38dea42

File tree

4 files changed

+15
-8
lines changed

4 files changed

+15
-8
lines changed

_includes/docs-footer.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ What could we do to improve this page?
66
*Last modified on {% last_modified_at %}*<br />
77

88
<a href="https://cloud.soda.io/signup?utm_source=docs" target="_blank" class="signup-button">Sign up for Soda</a>
9+

_includes/like-widget.md

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<!-- LikeBtn.com BEGIN -->
2+
<span class="likebtn-wrapper" data-theme="tick" data-i18n_like="Yes" data-ef_voting="grow" data-show_dislike_label="true" data-counter_zero_show="true" data-i18n_dislike="No"></span>
3+
<script>(function(d,e,s){if(d.getElementById("likebtn_wjs"))return;a=d.createElement(e);m=d.getElementsByTagName(e)[0];a.async=1;a.id="likebtn_wjs";a.src=s;m.parentNode.insertBefore(a, m)})(document,"script","//w.likebtn.com/js/w/widget.js");</script>
4+
<!-- LikeBtn.com END -->

soda-library/check-suggestions.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -153,9 +153,6 @@ You can use check suggestions with the following data sources:
153153

154154
Was this documentation helpful?
155155

156-
<!-- LikeBtn.com BEGIN -->
157-
<span class="likebtn-wrapper" data-theme="tick" data-i18n_like="Yes" data-ef_voting="grow" data-show_dislike_label="true" data-counter_zero_show="true" data-i18n_dislike="No"></span>
158-
<script>(function(d,e,s){if(d.getElementById("likebtn_wjs"))return;a=d.createElement(e);m=d.getElementsByTagName(e)[0];a.async=1;a.id="likebtn_wjs";a.src=s;m.parentNode.insertBefore(a, m)})(document,"script","//w.likebtn.com/js/w/widget.js");</script>
159-
<!-- LikeBtn.com END -->
156+
{% include like-widget.md %}
160157

161158
{% include docs-footer.md %}

soda-library/install.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -322,11 +322,16 @@ Need help? Join the <a href="https://community.soda.io/slack" target="_blank"> S
322322

323323
---
324324

325+
<script>
326+
var hash = window.location.hash;
327+
if (hash) {
328+
document.querySelector("#" + document.querySelector(hash).parentElement.id.split("-")[0]+"-tab").click();
329+
document.querySelector(hash).scrollIntoView();
330+
}
331+
</script>
332+
325333
Was this documentation helpful?
326334

327-
<!-- LikeBtn.com BEGIN -->
328-
<span class="likebtn-wrapper" data-theme="tick" data-i18n_like="Yes" data-ef_voting="grow" data-show_dislike_label="true" data-counter_zero_show="true" data-i18n_dislike="No"></span>
329-
<script>(function(d,e,s){if(d.getElementById("likebtn_wjs"))return;a=d.createElement(e);m=d.getElementsByTagName(e)[0];a.async=1;a.id="likebtn_wjs";a.src=s;m.parentNode.insertBefore(a, m)})(document,"script","//w.likebtn.com/js/w/widget.js");</script>
330-
<!-- LikeBtn.com END -->
335+
{% include like-widget.md %}
331336

332337
{% include docs-footer.md %}

0 commit comments

Comments
 (0)