A docsify plugin that allows users to share docs
-
π Sidebar share icon β share from the page you're reading
-
Inline share buttons β
{ds_ezs: share}/{ds_ezs: select="dir"}/{ds_ezs: select="this"}/{ds_ezs: select="all"} -
** file selection**
this: only current filedir: files in the same folderall: all files from the sidebar
-
Copy: Merge selected Markdown files -> copy to clipboard
-
Export to ChatGPT: Automatically opens ChatGPT with:
-
A structured analysis prompt
-
The generated list of document URLs
- Add the plugin to your docsify HTML (Choose one!):
<script src="https://raw.githubusercontent.com/tangxiaoyi97/docsify-easyShare/main/docsify-ezs.js"></script>
<script src="https://cdn.jsdelivr.net/gh/tangxiaoyi97/docsify-easyShare/docsify-ezs.js"></script>(Or download / copy and include it manually)
- Add config:
<script>
window.$docsify = {
docsifyezselect: {
modalTitle: 'Select file(s) to share', // The text you see on the share UI
buttonText: 'Share', // Text on share the button
autoIns: true, //auto inserts an icon π ont he sidebar
defaultSelect: 'all' // or dir / this
}
}
</script>Inside any Markdown file:
Share with default mode
{ds_ezs: share}
Share only current directory
{ds_ezs: select="dir"}
Share only this page
{ds_ezs: select="this"}
Share everything from sidebar
{ds_ezs: select="all"}
created by:
- Tangxiaoyi97 (εζηΏΌ) β Author
- Anastasia B. (η½ι) β Technical Support
Special Thanks to ChatGPT & Copilot