Skip to content

Commit

Permalink
add live chat to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
otothea committed Sep 2, 2020
1 parent 1e88bf6 commit 4726dcd
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions docs/_static/js/user-echo.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
var _ues = {
host:'botisimo.userecho.com',
forum:'4',
lang:'en',
chat:{channel:38},
chat_tab_show:'auto',
tab_show:false,
tab_corner_radius:5,
tab_font_size:20,
tab_image_hash:'ZmVlZGJhY2s%3D',
tab_chat_hash:'TGl2ZSBDaGF0',
tab_alignment:'right',
tab_text_color:'#ffffff',
tab_text_shadow_color:'#00000055',
tab_bg_color:'#5bc2a8',
tab_hover_color:'#5BC2A8'
};

(function() {
var _ue = document.createElement('script'); _ue.type = 'text/javascript'; _ue.async = true;
_ue.src = 'https://cdn.userecho.com/js/widget-1.4.gz.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(_ue, s);
})();
5 changes: 4 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
# VCS options: https://docs.readthedocs.io/en/latest/vcs.html#github
html_context = {
"display_github": True, # Integrate GitHub
"github_user": "botisimochatbot", # Username
"github_user": "botisimo", # Username
"github_repo": "botisimo-documentation", # Repo name
"github_version": "master", # Version
"conf_py_path": "/", # Path in the checkout to the docs root
Expand All @@ -77,6 +77,9 @@
html_css_files = [
'css/custom.css',
]
html_js_files = [
'js/user-echo.js',
]

# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
Expand Down

0 comments on commit 4726dcd

Please sign in to comment.