Skip to content

Commit 548f91a

Browse files
committed
Replaced disqus with discourse
1 parent c5e811c commit 548f91a

File tree

405 files changed

+417
-423
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

405 files changed

+417
-423
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ DEPENDENCIES
142142
github-pages
143143

144144
BUNDLED WITH
145-
1.13.6
145+
1.14.6

_includes/discourse.html

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div id='discourse-comments'></div>
2+
3+
<script type="text/javascript">
4+
DiscourseEmbed = { discourseUrl: 'http://users.scala-lang.org/',
5+
discourseEmbedUrl: 'http://docs.scala-lang.org/{{ page.relative_path }}' };
6+
7+
(function() {
8+
var d = document.createElement('script'); d.type = 'text/javascript'; d.async = true;
9+
d.src = DiscourseEmbed.discourseUrl + 'javascripts/embed.js';
10+
(document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(d);
11+
})();
12+
</script>

_includes/disqus.txt

Lines changed: 0 additions & 18 deletions
This file was deleted.

_layouts/news-coursera.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="span12">
1313
{{ content }}
14-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
14+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1515
</div>
1616

1717
</div>

_layouts/news.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212
<div class="span10">
1313
{{ content }}
14-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
14+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1515
</div>
1616

1717
<div class="span6">

_layouts/overview-large.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<div class="span10">
3939
{{ content }}
4040
{% include pager.txt %}
41-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
41+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
4242
</div>
4343

4444
<div class="span6">

_layouts/overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141

4242
<div class="span10">
4343
{{ content }}
44-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
44+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
4545
</div>
4646

4747
<div class="span6">

_layouts/sip-landing.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
<div class="span10">
1414
{{ content }}
15-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
15+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1616
</div>
1717

1818
<div class="span6">

_layouts/sip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="span12">
1111
{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}
1212
{{ content }}
13-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
13+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1414
</div>
1515

1616
<div class="span4">

_layouts/slip.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
<div class="span12">
1111
{% if page.title %}<h1>{{ page.title }}</h1>{% else %}<h1>{{ site.title }}</h1>{% endif %}
1212
{{ content }}
13-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
13+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
1414
</div>
1515

1616
<div class="span4">

_layouts/tutorial.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<div class="span10">
4040
{{ content }}
4141
{% include pager.txt %}
42-
{% if page.disqus == true %}{% include disqus.txt %}{% endif %}
42+
{% if page.discourse == true %}{% include discourse.html %}{% endif %}
4343
</div>
4444

4545
<div class="span6">

ba/tutorials/tour/_posts/2017-02-13-abstract-types.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-annotations.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-anonymous-function-syntax.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-automatic-closures.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-case-classes.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-classes.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-compound-types.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-currying.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-default-parameter-values.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-explicitly-typed-self-references.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-extractor-objects.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-generic-classes.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-higher-order-functions.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-implicit-conversions.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-implicit-parameters.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-inner-classes.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-local-type-inference.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-lower-type-bounds.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-mixin-class-composition.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-named-parameters.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-nested-functions.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-operators.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-pattern-matching.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-polymorphic-methods.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-regular-expression-patterns.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-sequence-comprehensions.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-singleton-objects.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-tour-of-scala.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-traits.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-unified-types.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-upper-type-bounds.md

Lines changed: 1 addition & 1 deletion

ba/tutorials/tour/_posts/2017-02-13-variances.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)