md improvement

This commit is contained in:
2025-11-16 22:27:51 +01:00
parent 49aee045ba
commit c03aebc605
2 changed files with 8 additions and 8 deletions

View File

@@ -15,26 +15,26 @@ One downside being it's obviously harder to handle interactions with clients sin
I decided to [install](https://jekyllrb.com/docs/installation/) a ruby development environment directly on my system, although you could use [containers](https://github.com/envygeeks/jekyll-docker/blob/master/README.md) is you prefer.
I installed ruby and have the following in my .bashrc file to use gems (RubyGems) to use it as an unprivileged user and not the root user.
```
```bash
# Install Ruby Gems to ~/gems
export GEM_HOME="$HOME/gems"
export PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH"
```
To install Jekyll:
```
```bash
gem install jekyll bundler
```
(bundler is used to keep track of the depencies of each Ruby projects independently)
To create a new Jekyll project:
```
```bash
jekyll new site-name
cd site-name
```
Then during development I can just serve the website on a development machine and see if the results look good with:
```
```bash
bundle exec jekyll serve
```
If it looks good enough I can commit and push the website code and then deploy it on my server. To deploy it on my server I should automate things a bit more but for now I just have a make target to build the website and a make target to copy the files from _site to /var/www/html.