Unofficial tutorials for openstreetmap-carto.
┌┬┐┌─┐┌─┐ ┬┌─┐┬┌─┬ ┬┬ ┬
│││ ││ ── │├┤ ├┴┐└┬┘│ │
─┴┘└─┘└─┘ └┘└─┘┴ ┴ ┴ ┴─┘┴─┘
This Jekyll-based theme named DOC-JEKYLL is specifically intended for static technical documentation deployable on GitHub Pages.
Information on the usage of this theme can be found in how to contribute.
Licensed under the MIT License
Hosted by GitHub
This site can be cloned and reused freely. The following files and data are specific and need deletion or customization when forking this site for different purposes:
Summary of the main changes from the default Lanyon Theme:
Added footnotes management
This chapter summarizes all the steps to locally deploy and test this jekill-based GitHub Pages website with Ubuntu.
Clone this repository (e.g. with GitHub Desktop)
Not strictly necessary: install Snap:
sudo apt update
sudo apt install snapd
Install Jekyll and related prerequisites:
cd
# Test that prerequisites are already installed (each command shows how to install the related prerequisite if missing)
ruby -v # if missing, install it with e.g.: snap install ruby --classic
gem -v
cc -v
g++ -v
make -v
# Install Ruby
sudo apt-get install ruby-full build-essential zlib1g-dev
echo '# Install Ruby Gems to ~/gems' >> ~/.bashrc
echo 'export GEM_HOME="$HOME/gems"' >> ~/.bashrc
echo 'export PATH="$HOME/gems/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Install jekyll and bundler
gem install jekyll bundler
Update the bundler version in Gemfile.lock. (Gemfile.lock is removed, so that Bundler will fetch all remote sources, resolve dependencies and install all needed gems. In general, this also fixes Dependabot security updates on vulnerabilities.)
cd ~/Documents/GitHub/osm-carto-tutorials
rm Gemfile.lock
bundle install
# Alternatively, you can run "bundle update --bundler"
Finally, serve the website
bundle exec jekyll serve