Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 2587e3f

Browse files
authored
#11 - add intercom #84
1 parent 69e0e9d commit 2587e3f

File tree

3 files changed

+11
-0
lines changed

3 files changed

+11
-0
lines changed
File renamed without changes.

custom_theme/main.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{% extends "base.html" %}
2+
3+
{% block scripts %}
4+
<script>
5+
window.intercomSettings = {
6+
app_id: "itolwzo2"
7+
};
8+
</script>
9+
<script>(function () { var w = window; var ic = w.Intercom; if (typeof ic === "function") { ic('reattach_activator'); ic('update', w.intercomSettings); } else { var d = document; var i = function () { i.c(arguments); }; i.q = []; i.c = function (args) { i.q.push(args); }; w.Intercom = i; var l = function () { var s = d.createElement('script'); s.type = 'text/javascript'; s.async = true; s.src = 'https://widget.intercom.io/widget/' + "itolwzo2"; var x = d.getElementsByTagName('script')[0]; x.parentNode.insertBefore(s, x); }; if (w.attachEvent) { w.attachEvent('onload', l); } else { w.addEventListener('load', l, false); } } })();</script>
10+
{% endblock %}

mkdocs.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ nav:
2323
- About: about.md
2424
theme:
2525
name: mkdocs
26+
custom_dir: "custom_theme/"
2627

2728
markdown_extensions:
2829
- attr_list

0 commit comments

Comments
 (0)