-
Notifications
You must be signed in to change notification settings - Fork 0
how to contribute
khanhthanhdev edited this page May 30, 2026
·
1 revision
This guide covers the contribution workflow for the al-folio academic website template. Whether you are fixing a typo, adding a feature, or improving documentation, follow these conventions to keep the project healthy.
Before contributing, make sure you have:
- Git installed and configured
- Docker (recommended) or Ruby 3.3.5 + Bundler for local builds
- Node.js and npm (for Prettier formatting)
- Open an issue first for new features or non-trivial bug fixes. Minor fixes (typos, docs) can go straight to a PR.
-
Fork and clone the repository, then create a feature branch from
main. - Make your changes following the conventions in Development Workflow.
- Format your code with Prettier before committing (see Testing).
- Test locally with Docker to verify the site builds and renders correctly.
-
Open a PR against
main. Reference the issue it addresses (e.g.,Fixes #123).
All commit messages follow a conventional type prefix:
<type>: <subject>
<body (optional)>
| Type | Purpose |
|---|---|
feat |
New feature |
fix |
Bug fix |
docs |
Documentation only |
style |
Formatting, whitespace (no logic change) |
config |
Configuration file changes |
chore |
Build process, tooling, dependency updates |
Examples:
feat: Add dark mode toggle button to header
fix: Correct baseurl in project site configuration
docs: Update INSTALL.md with Docker troubleshooting
style: Format all Liquid templates with Prettier
config: Enable blog section in _config.yml
chore: Update Jekyll dependencies with bundle update --all
Always respect the .gitignore file. Never commit:
- Build outputs (
_site/,.jekyll-cache/) - Dependencies (
node_modules/,vendor/) - OS-specific files (
.DS_store) - Editor temporary files (
.idea/,.swp,.swo) - Secrets, API keys, or credentials
Always git add files explicitly. Do not use git add . unless you are certain of every file being staged. Run git status first.
Use GitHub issues for bugs and feature requests:
- Read the FAQ first.
- Check for duplicates in existing issues.
- Use the appropriate issue template.
- For questions (not bugs), use Discussions.
By contributing, you agree your contributions are licensed under the project's LICENSE file.
- Development Workflow — branch, code, test, PR, merge cycle
- Testing — local verification and CI checks
- Patterns and Conventions — coding standards by file type
- Tooling — build system, Prettier, Docker, CI workflows