In an ideal scenario, your Github served website could be build locally, with the same output structure and layout.
sudo in the following commands may not be tequired, depending on your setup.
sudo gem install jekyll bundler rouge sudo gem install github-pages
Change to your site’s source directory, and then:
… to install the specific components.
From this site directory, you issue:
bundle exec jekyll build
… to generate the html file structure, or
bundle exec jekyll serve --incremental
… to run a server. Which should then answer with (more stuff) and
Server address: http://127.0.0.1:4000
baseurlparameter in your
_config.yml(e.g. the name og the repository you are running the site from), you will have to specify an empty
baseurlwhen starting your localhost test server:
bundle exec jekyll serve --baseurl "" --incremental
brew uninstall --ignore-dependencies --force xz sudo gem install github-pages brew install xz
listenlead to failing execution under Ruby 3. This has been fixed in the latest versions of
listen, but you have to update this directly via
bundle update listen.
Please see the Jekyll documentation for more options (e.g. how to generate your site into a specific target directory).