From: Aakash Nand <14219201+aakashnand@users.noreply.github.com> Date: Fri, 27 Mar 2020 14:32:15 +0000 (+0900) Subject: :sparkles: Add Gitter chat to docs (#1061) X-Git-Tag: 0.53.0~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2738df3801ac42e8499a482c4506e6e3117011c9;p=thirdparty%2Ffastapi%2Ffastapi.git :sparkles: Add Gitter chat to docs (#1061) * 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 --- diff --git a/docs/en/docs/js/chat.js b/docs/en/docs/js/chat.js new file mode 100644 index 0000000000..debdef4dad --- /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 eb3b54e948..6fbaf960cd 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