GithubHelp home page GithubHelp logo

patrickpeng2091 / discourse-chinese-share Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wuchong/discourse-chinese-share

0.0 0.0 0.0 102 KB

Easy plugin to add Chinese share buttons in Discourse

License: GNU General Public License v2.0

JavaScript 89.06% Ruby 10.94%

discourse-chinese-share's Introduction

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

重建 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: 增加了微信支持(弹出窗口)

discourse-chinese-share's People

Contributors

wuchong avatar erickguan avatar ninghao avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.