docsify-changelog-plugin
v0.7.1
Published
Docsify plugin to add changelog to your docsify site
Downloads
26
Maintainers
Readme
docsify-changelog-plugin
This is a docsify plugin to render changelog from given path
Donation
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 tofalse
and if you want to extend the navbar to write your own, write it in yourindex.html
asnav
element
Thanks it, Now enjoy :tada: your changelog integration with docsify
New feature from v0.5.1
Added a red dot whenever you update the changelog source
Screen Shot
Contribution Guide
- Clone the repo
- start editing on
src/index.js
andsrc/style.styl
- The build step using
- the
styl -> css
usingstyl
CLI - Optimize the generated style using
cssnano
andpostcss
- Build the javascript using
rollup
- optimize it using
rollup-plugin-terser
- styling rule using
standard
- the
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