- Clone:
git clone https://github.com/InPoint-Automation/CopyCodeButton.git - Install the plugin via Publii: Tools -> Plugins -> Install plugin, and select the packaged ZIP (see the Package section below).
- Enable in Publii, render the site, inspect output HTML.
Publii requires the files inside an CopyCodeButton/ subfolder within the ZIP.
On Linux you can run a single command to make a clean .zip
ln -s . CopyCodeButton && zip CopyCodeButton.zip CopyCodeButton/plugin.json CopyCodeButton/main.js CopyCodeButton/thumbnail.svg CopyCodeButton/README.md CopyCodeButton/LICENSE; rm CopyCodeButton
Otherwise, you can just directly zip up the whole CopyCodeButton directory. You may consider to remove the screenshot, etc first.