Skip to content

leijerry888/slidev_container

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slidev Container

Forked from slidev

Repository Updates

  • Update npm install to avoid 'permission denied' problem

Build

You can build the image with:

$ git clone https://github.com/leijerry888/slidev_container.git
$ cd slidev_container
$ docker build -t slidev_container .

Setup

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
}

Use

At the location of slides.md, simply run slidev and open http://localhost:3030/ in your browser.

LICENSE

This repository is licensed under the MIT license

About

Container building scripts for Slidev

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 58.3%
  • Shell 27.2%
  • Dockerfile 14.5%