@zsviczian/kplex-web
v0.0.2
Published
Read-only K-Plex Compass and Sidecar for static publications.
Downloads
471
Readme
K-Plex Web
The browser build of K-Plex Compass and Sidecar for read-only publications.
compass.js is an ES module and compass.css supplies its styles. Use the same
package release for both files when embedding the reader. On a static site,
keep the bundled runtime modules together in the same folder.
Import mountCompass from compass.js and pass a container, a K-Plex
publication manifest and an options object with the manifest's publicationUrl.
The returned handle supports update(manifest) and dispose(). The exported
demo.js opens a standalone publication with a separate stylesheet. Hosted
K-Plex exports use @zsviczian/kplex-web@latest/cdn.js on jsDelivr. This entry
includes the reader and its styles and opens earlier supported publication
formats. offline.js is the classic script
used by the offline exporter.
runtime-pack.json holds the same files and their checksums for importing into
the Obsidian export tool as data. The browser loads the runtime as JavaScript.
Exports can be hosted independently of the CDN.
The source and publishing guide are in the K-Plex repository.
See LICENSES/ for notices and the corresponding source reference.
