Skip to content

Commit

Permalink
docs(site_pages): add gitter.im sidebar
Browse files Browse the repository at this point in the history
  • Loading branch information
janryWang committed Apr 29, 2019
1 parent e899880 commit 5809a98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions scripts/doc-renderer.js
@@ -1,6 +1,14 @@
import React from 'react'
import SiteRenderer from 'react-site-renderer'

((window.gitter = {}).chat = {}).options = {
room: 'alibaba-uform/community'
}

const script = document.createElement('script')
script.src = '//sidecar.gitter.im/dist/sidecar.v1.js'
document.body.appendChild(script)

export default ({ docs }) => {
return (
<SiteRenderer
Expand Down

0 comments on commit 5809a98

Please sign in to comment.