Skip to content

ZhangBohan/discourse-chinese-share

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Discourse Chinese Share

使用此插件请fork本项目,并修改 assets/javascripts/share_links.js文件中的码农圈为您的站点名字。

A Easy plugin to add Chinese share buttons in Discourse.

We can add share buttons like Weibo, Wechat, Renren.

在 Docker 镜像上的安装方法

修改你的 /var/discourse/containers/app.yml 文件. 默认的 app.yml 有一个 hooks 属性,如下:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git

在那后面添加一行,注意空格对齐。

- git clone https://github.com/wuchong/discourse-chinese-share.git

将上面的wuchong改成你的用户名,也就是说,此处添加的是你fork后的git地址。

重建 Discourse:/var/discourse/launcher rebuild app

进入管理员页面 -> 设置 -> 基本设置 -> 找到share links配置项,加入你想添加的分享按钮,如weibo,wechat,renren

刷新页面,完成。

chinese-share-links

Chinese share links is a plugin for Discourse to add share links for Weibo & Renren.

为 Discourse 添加分享到微博和人人的支持。

Installation / 安装

app.yml

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git

最后一行 - git clone https://github.com/discourse/docker_manager.git 后添加:

- git clone https://github.com/fantasticfears/chinese-share-links.git

Usage / 使用

Go to Site Settings's basic category, add services in the share_links.

进入站点设置的基本设置分类,在share_links中添加服务。

Changelog

Current version: 0.1.1

0.1.1: 增加了微信支持(弹出窗口)

About

Easy plugin to add Chinese share buttons in Discourse

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 92.3%
  • Ruby 7.7%