Coder Social home page Coder Social logo

docsify-plugin-codefund's Introduction

docsify-plugin-codefund(deprecated)

a plugin to make you easy to join up CodeFund

codefund is shut down, so this plugin is deprecated.

Usage

https://unpkg.com/docsify-plugin-codefund/index.js
window.$docsify = {
  coverpage: true,
  name: 'vue-data-tables',
  repo: 'https://github.com/njleonzhang/vue-data-tables',
  subMaxLevel: 2,
  loadSidebar: true,
  disqus: 'vueDataTables',
  search: 'auto', // default

  plugins: [
    DocsifyCodefund.create(15) // change to your CodeFund property id
  ]
}

Sample

https://njleonzhang.github.io/vue-data-tables/

9e682cb3-ac97-45af-b205-71f43a12f57e

docsify-plugin-codefund's People

Contributors

kirbyfern avatar njleonzhang avatar picchikevin avatar qingwei-li avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docsify-plugin-codefund's Issues

Congratulations on creating this plugin!

I came here just to congratulate you for creating this plugin and helping more open source projects get closer to becoming profitable through CodeFund, while also helping CodeFund become something bigger. 🎉 🎉

Thank you a lot!

Breaks IE11 (which is supported by docsify v4)

This plugin is using ES2015 method definition shorthand syntax which is not supported by IE11:

injectCodeFundContainer() {
if (document.getElementById("codefund") === null) {
let nav = document.getElementsByClassName('sidebar-nav');
let codefundContainer = document.createElement('div');
codefundContainer.id = 'codefund';
nav[0].insertBefore(codefundContainer, nav[0].firstChild);
}
if (document.getElementsByClassName('cf-wrapper').length === 0) {
window._codefund && window._codefund.serve();
}
},

Since IE11 is officially support by docsify, docsify plugins should be authored using only ES5 or transpiled from ES6+ to ES5 using a tool like Babel. This plugin is used on docsify.js.org which fails to load properly in IE11 as a result of this issue.

Thanks!

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.