New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

docsify-edit-on-github

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

docsify-edit-on-github

edit on github plugin for docsify

  • 1.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

docsify-edit-on-github

A plugin for docsify to generate a edit on github button on every pages. click the button to open corresponding md editing page on github.

<script src="//unpkg.com/docsify-edit-on-github/index.js"></script>
<script>
  window.$docsify = {
    // your config
    // ...
    plugins: [
      EditOnGithubPlugin.create(docBase, docEditBase, title)
    ]
  }
</script>
  • docBase: [String] the document folder of your github project (e.g.: https://github.com/docsifyjs/docsify/blob/master/docs/)
  • docEditBase: [String] edit link of your github pages, by default, this is set automatically according to docBase
  • title: [String | Function] the text of the button, default value: Edit on github. If passed as function, then the title can be customized according to file path. for example:
      EditOnGithubPlugin.create(
        'https://github.com/docsifyjs/docsify/blob/master/docs/',
        null,
        function(file) {
          if (file.indexOf('en') === -1) {
            return '编辑'
          } else {
            return 'edit on git'
          }
        }
      )
    

Code example

Result example

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc