docsify-plugin-github-footer
v1.0.1
Published
Useful GitHub Pages links footer for Docsify
Downloads
10
Readme
Useful GitHub Pages links footer for Docsify.
📀 Installation
Insert a script tag to load the plugin script file after loading the Docsify script.
<script>
window.$docsify = {};
</script>
<script src="//cdn.jsdelivr.net/npm/docsify@v4/lib/docsify.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-plugin-github-footer/lib/docsify-plugin-github-footer.min.js"></script>
🔰 Usage
Configure the plugin in the Docsify configuration.
<script>
window.$docsify = {
githubFooter: {
// required: production branch
ref: 'develop',
// optional: inherit from $docsify.repo
repo: 'simochee/docs-repo',
// optional: base directory of the repo
dir: 'docs',
}
};
</script>
Customize footer style
<style>
.docsify-github-footer {
/* override style */
}
</style>
💻 Development
- Clone this repository
- Enable Corepack using
corepack enable
- Install dependencies using
pnpm install
- Run watch mode using
pnpm run watch
- Start server using Live Server
- Insert a script tag to load the plugin script file after loading the Docsify script.
<script src="http://localhost:5500"></script>
🛡️ License
MIT