Skip to content

Ready-to-go docker environment for Asciidoctor livereload

Notifications You must be signed in to change notification settings

Cethy/asciidoctor-livereload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Asciidoctor-livereload

Ready-to-go docker environment for Asciidoctor livereload.

How to use

  • Put your asc files into /book (or edit the volumes in docker-compose.yml file).

  • Build and launch docker-compose :

    docker-compose build docker-compose up

  • Modify an asc file (to kickoff the ascidoctor watcher) ;

  • open your browser at http://localhost:8941 ;

  • modify a file in your watched directory ;

  • Magic, the page is refreshed ! :o

What's under the hood ?

Docker image (20Mo) which watch for modification into the /book directory and run asciidoctor when modified.

Docker image (7Mo) which act as a reverse proxy for /output and inject the livereload js snippet.

Docker image (16Mo) which watch for modification into the /output directory and reload the page in the navigator.

Related work

Changelog

v2.0

  • cethy/apline-nginx-livereload-injection added to remove dependency on the livereload extension.

v1.0