From 2738df3801ac42e8499a482c4506e6e3117011c9 Mon Sep 17 00:00:00 2001 From: Aakash Nand <14219201+aakashnand@users.noreply.github.com> Date: Fri, 27 Mar 2020 23:32:15 +0900 Subject: [PATCH] :sparkles: Add Gitter chat to docs (#1061) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * implemented chat feature using sidecar from starlette docs * :fire: Use external Gitter sidecar JS * :sparkles: Re-implement Gitter chat after multi-lang * :fire: Remove moved file Co-authored-by: Aakash Nand Co-authored-by: Sebastián Ramírez --- docs/en/docs/js/chat.js | 3 +++ docs/en/mkdocs.yml | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 docs/en/docs/js/chat.js diff --git a/docs/en/docs/js/chat.js b/docs/en/docs/js/chat.js new file mode 100644 index 000000000..debdef4da --- /dev/null +++ b/docs/en/docs/js/chat.js @@ -0,0 +1,3 @@ +((window.gitter = {}).chat = {}).options = { + room: 'tiangolo/fastapi' +}; diff --git a/docs/en/mkdocs.yml b/docs/en/mkdocs.yml index eb3b54e94..6fbaf960c 100644 --- a/docs/en/mkdocs.yml +++ b/docs/en/mkdocs.yml @@ -145,3 +145,5 @@ extra_javascript: - https://unpkg.com/mermaid@8.4.6/dist/mermaid.min.js - js/termynal.js - js/custom.js +- js/chat.js +- https://sidecar.gitter.im/dist/sidecar.v1.js