| Sunday, 2020-02-09 | Sebastian Zhorel | 
            
                | Sunday, 2021-07-05:
This is a repost from the FreeCol forum to preserve this guide. It includes
a few additional improvements.Many thanks to Blake for initially having me write this, trying everything out
causing the improvements and encouraging me now to post the news!
 Stay tuned for the follow-up: The Hidden Story Of The Website Update! How To Use Jekyll For The FreeCol WebsitePlease, follow these steps! If you don’t try it can never work. I just tried every step on my second computer to make sure it works.
I’d like to see if you can follow this before I edit it into the manual: InstallationThis is done only once: 
  If you are on Windows go to https://rubyinstaller.org
then download the recommended version and install it (the Ruby people really
made an effort to make that easy, so please try and just use the standard
options and wait for it to complete – do not try to install Ruby in a path
with spaces; in the command window which opens for the Devkit install you should
only type Enteronce at start and once it completed)If you are on Linux use your package manager to install RubyOpen a command line window, type ruby -v, typeEnterand check if it
successfully outputs the ruby versionType in gem install jekyll bundler wdmandEnterto install Jekyll;
it should complete without an error (if not please ask)You could try typing in jekyll -vto see if it got installed correctly UseThis is done every time you want to see the effect of your edits: 
  Open a command line window for the www.freecol.orgdirectory where
you put your local clone of the freecol git repository (if you have git
installed on Windows just find the directory in Windows Explorer and
right click and chooseGit bash here; otherwise you would need to navigate
throughcd ..andcd _directoryname_and show contents usingdir(Windows) orls(Linux) to get to the right directory)If you are inside the www.freecol.orgdirectory you just typejekyll serveto compile the website and start a local server on this
computerOpen your browser and type 127.0.0.1:4000in the address bar (thats the
address of this local computer of yours with the port of the local server
started by above command)Edit the website files as you like (Jekyll automatically recompiles it
as long as you did not stop it or close the command window), reload (F5) in
browser to see your changesYou can stop the local server using Ctrl+Cto not have it use
system recources of your computer when you take a break or need a
long time editing and restart it using samejekyll servecommandjekyll buildonly compiles the website without starting the local server,
in case you want to inspect the compilation result inside the_sitedirectory
or upload it to the webserverIn case you accidently started jekyll serveorjekyll buildin the
wrong directory usejekyll cleanto let it clean up the temporary files
it created Please, tell if everything worked! |