- Clone:
git clone https://github.com/InPoint-Automation/StickySidebarTOC.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.
The plugin depends on the theme already rendering an inline .post__toc element (Publii's TOC block). It clones that element; it never generates TOC content itself.
Publii requires the files inside an StickySidebarTOC/ subfolder within the ZIP.
On Linux you can run a single command to make a clean .zip
ln -s . StickySidebarTOC && zip StickySidebarTOC.zip StickySidebarTOC/plugin.json StickySidebarTOC/main.js StickySidebarTOC/thumbnail.svg StickySidebarTOC/README.md StickySidebarTOC/LICENSE; rm StickySidebarTOC
Otherwise, you can just directly zip up the whole StickySidebarTOC directory. You may consider to remove the screenshot, etc first.