Jekyll creates a static site in this directory (by default, _site ). Running jekyll serve creates the site and then configures the server so that the site can be viewed locally on the specified port (for example, localhost:4000 by default). I am wondering if there is a way to activate this serve behavior without starting a gem in order to recompile the site first.
Alternatively, it would be sufficient to use some other tool to serve the site from the local port without using jekyll, but I'm not sure how to do it (node.js?). Although I can open static files directly in the browser, it does not find the correct links to relative URLs (before css, etc.). Instead, instead of linking /css/default.css to the root file://css/default.css , which, of course, does not happen.
(This would be useful, for example, because Jekyll takes quite a while to build a large site, and some plugins that I use require Internet access to various APIs. It would be nice to browse the site offline without them launch).
source share