A Hugo-based educational website about compilers and programming.
- Hugo Extended version 0.138.0 or later
- Git (for cloning submodules)
# 1. Install Hugo (on Linux/macOS)
./install-hugo.sh
# 2. Run the site
./run-local.shThe site will be available at: http://localhost:1313/MrCoder/
1. Install Hugo Extended
On Ubuntu/Debian:
wget https://github.com/gohugoio/hugo/releases/download/v0.138.0/hugo_extended_0.138.0_linux-amd64.deb
sudo dpkg -i hugo_extended_0.138.0_linux-amd64.debOn macOS:
brew install hugoOn Windows:
# Using Chocolatey
choco install hugo-extended
# Or download from:
# https://github.com/gohugoio/hugo/releases/tag/v0.138.02. Initialize Theme Submodule
git submodule update --init --recursive3. Run the Development Server
hugo serverThe site will be available at: http://localhost:1313/MrCoder/
To generate the static site in the public/ directory:
hugo --gc --minifyMrCoder/
├── content/ # Markdown content files
│ ├── compiler/ # Compiler-related content
│ └── ...
├── static/ # Static files (images, etc.)
├── themes/ # Hugo theme
│ └── hugo-theme-learn/
├── config.toml # Hugo configuration
└── public/ # Generated site (created after build)
The site is configured via config.toml:
- Base URL:
https://lascar-pacagi.github.io/MrCoder/ - Default language: French (fr)
- Theme: hugo-theme-learn
The site is automatically deployed to GitHub Pages via GitHub Actions when changes are pushed to the master branch. See .github/workflows/hugo.yml for details.
If Mermaid diagrams are not displaying:
- Make sure you're using Hugo Extended version
- Clear your browser cache
- Check browser console (F12) for JavaScript errors
If the theme is missing:
git submodule update --init --recursiveIf port 1313 is already in use:
hugo server -p 1314- Fork the repository
- Create a feature branch
- Make your changes
- Test locally with
hugo server - Submit a pull request
See repository for license information.