Forked from slidev
- Update npm install to avoid 'permission denied' problem
You can build the image with:
$ git clone https://github.com/leijerry888/slidev_container.git
$ cd slidev_container
$ docker build -t slidev_container .
Add a slidev
function in ~/.zshrc
(if using zsh
) for easy call:
slidev() {
docker_id=$(docker run --rm -d -v "$(pwd):/root/slides" -p 3030:3030 slidev_container)
echo "Docker container ID: $docker_id"
echo "Container lof follows:"
docker logs -f $docker_id
}
At the location of slides.md
, simply run slidev
and open http://localhost:3030/
in your browser.
This repository is licensed under the MIT license