deployment - Deploy Jekyll project without a webserver -


i created blog jekyll , need deploy , send person need navigate without web server. so, entered jekyll build terminal , compiled project in _site. now, if open index.html doesn't assets (css). in head tag tag there's /css/main.css while need css/main.css (no initial slash). don't want change manually url, i'm asking if there's way deploy jakyll project showing in local without webserver.

this possible if know where, in file system, deployed.

examples :

linux

for deployment in /home/user/www, go in _config.yml , set baseurl: /home/user/www

windows

for deployment in c:/users/toto/www, go in _config.yml , set baseurl: /c:/users/toto/www

deployment means copying generated files in target folder, not copying _site folder.

do jekyll build , send files deploy instructions.

edit:

this answer you, not client.

as client running windows, set baseurl: /c:/_site, zip _site folder , ask client unzip in c:/.

the client have click on c:/_site/index.html start site in default browser.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

php - Find a regex to take part of Email -