Kerby Martino 4cf7cc1a49 Remove standalone HTML file and refactor formatting doc integration
Replaced the static `formatdoc.html` with a modular approach using Liquid templates (`_includes/format_doc.liquid`) and Markdown configuration (`pages/formatdoc.md`). This improves maintainability and aligns with the site’s templating system.
2025-04-29 08:22:57 +08:00
2025-04-28 17:24:23 +00:00

Project Behind the Desk

Description

A Jekyll website

Getting Started

Dependencies

Head to this website to know more about jekyll https://jekyllrb.com/docs/

Installing

First, install Homebrew if you don't already have it:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Install rbenv and ruby-build:

brew install rbenv ruby-build

Add rbenv to your shell:

echo 'eval "$(rbenv init - zsh)"' >> ~/.zshrc
# Or for bash
# echo 'eval "$(rbenv init - bash)"' >> ~/.bashrc

Restart your terminal or source your profile:

source ~/.zshrc  # or ~/.bashrc

Install the latest stable Ruby version:

rbenv install 3.2.2  # or any newer version

Set it as your global Ruby version:

rbenv global 3.2.2

Verify the installation:

ruby -v

Install bundler:

gem install bundler

Navigate back to your project and try running bundler again:

bundle install
bundle exec jekyll serve --livereload

Executing program

After installation, you can run the Jekyll site locally:

  • With live reload (automatically refreshes the browser when files change):
bundle exec jekyll serve --livereload
  • Without live reload:
bundle exec jekyll serve

Once the server is running, you can view the site by opening a browser and navigating to:

http://localhost:4000

Troubleshooting

If you encounter any issues during installation or execution:

  1. Make sure Ruby is installed and up to date:
ruby -v
  1. If you encounter permission errors with Homebrew:
sudo chown -R $(whoami) /usr/local/Homebrew
  1. If bundle install fails with dependency issues:
bundle update
bundle install
  1. If you see "command not found: jekyll", ensure Jekyll is properly installed:
gem install jekyll
gem install bundler

For more information, refer to the Jekyll documentation.

S
Description
No description provided
Readme
1.7 MiB
0 Stars 1 Watchers 0 Forks
Languages
Liquid 95.3%
CSS 2.9%
Ruby 1.8%