After doing a lot of trial and error, i think found a solution how editing a custom theme without manually restart the Jekyll server again and again and…
So my workflow:
$jekyll new-theme jekyll-theme-custom
$gem build jekyll-theme-milligram.gemspec
Navigate to the Gemfile in my Jekyll-website and adding this line:
gem "jekyll-theme-custom", :path => "/home/ubuntu/themes/jekyll-theme-custom/"
After that type:
Then copy all this dirs to the root of my Jekyll-website:
$bundle exec jekyll serve --watch
When develop themes code in …/website/_layouts , …/website/_includes, … now it change automatically when refreshing the browser.
After finish developing the theme, copying back the dirs from Jekyll-website to the themes root dir.
Is this the right workflow? Or is there a better way customize the theme files?