@lincyaw/slidev-addon-exec-local
v1.0.0-rc.0
Published
Presmium plugin: run code in a local container from the repository's devcontainer definition, and export the environment
Readme
@lincyaw/slidev-addon-exec-local
Running code in a local container built from the repository's devcontainer definition, and exporting the environment.
Part of Presmium, which turns lectures written in MyST Markdown into web pages, slides, Jupyter notebooks and narrated lectures.
Install
pnpm add -D @lincyaw/slidev-addon-exec-localList it in the headmatter of the documents that use it:
plugins:
- '@lincyaw/slidev-addon-exec-local'It is a Presmium plugin and a Slidev addon: its components work on the web page and in the slides. It needs @lincyaw/cli and the renderers in the same project, and declares the Presmium packages it shares with them as peer dependencies (Presmium 1.x).
What it provides
{local-env}: code that runs in the repository's devcontainer (with Docker andpresmium dev), and the export of the code with its environment.- Named environments of
kind: devcontainerinexecute.environments.
It needs Docker on the machine that builds or presents.
Documentation
- Author guide (Chinese:
site/guide/lecture.md) - Directive reference (Chinese): every directive with its options and an example
License
Apache-2.0
