docsify-changelog-plugin

0.7.1 • Public • Published

docsify-changelog-plugin

This is a docsify plugin to render changelog from given path

JavaScript Style Guide

Donation

Buy Me A Coffee

Installation

Add the following stylesheet along with your other stylesheets

<link
  rel="stylesheet"
  href="//cdn.jsdelivr.net/npm/docsify-changelog-plugin@latest/dist/style.css"
/>
<link
  rel="stylesheet"
  href="//maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css"
/>

And add the following script

<script src="https://cdn.jsdelivr.net/npm/docsify-changelog-plugin@latest/dist/index.js"></script>

Configure

In your docsify config object add the following

window.$docsify = {
...
loadNavbar : false, // IMPORTANT
changelog : 'CHANGELOG.md' // path of your changelog, it can be remote as well
...
}

And add the following custom nav bar

<nav></nav>

Note that loadNavbar options should be set to false and if you want to extend the navbar to write your own, write it in your index.html as nav element

Thanks it, Now enjoy 🎉 your changelog integration with docsify

New feature from v0.5.1

Added a red dot whenever you update the changelog source

Screen Shot

When there is new update in the changelog

ss

When there is no new update in the changelog

ss

After clicking the changelog button

ss

Contribution Guide

  • Clone the repo
  • start editing on src/index.js and src/style.styl
  • The build step using
    • the styl -> css using styl CLI
    • Optimize the generated style using cssnano and postcss
    • Build the javascript using rollup
    • optimize it using rollup-plugin-terser
    • styling rule using standard

Faq

Is it responsive? Not yet! soon, I will add the styles to make it responsive

Will it break mergeNavbar options? May be

Can I change the style of the button and the panel? Not yet !, but soon it will be possible using css variable

/docsify-changelog-plugin/

    Package Sidebar

    Install

    npm i docsify-changelog-plugin

    Weekly Downloads

    1

    Version

    0.7.1

    License

    MIT

    Unpacked Size

    8.75 kB

    Total Files

    4

    Last publish

    Collaborators

    • anixsaha