Thank you for your interest in contributing! This guide will help you get started.
- Fork and clone the repository
- Create virtual environment:
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
pip install -r requirements.txt
- Link to Anki addons folder:
ln -s /path/to/repo/ankisquared /path/to/Anki2/addons21/ankisquared
-
Install the "Reload addon" add-on in Anki:
- Tools → Add-ons → Get Add-ons...
- Enter code:
613411786
- Restart Anki
-
Hot Reload Workflow:
- Make code changes
- In Anki: Tools → Reload addon → Select "Anki²"
- Or use the default shortcut
Ctrl+R
- Check debug console for errors
Note: Some changes may still require a full Anki restart, particularly those involving:
- Hook registration
- Module initialization
- Main window modifications
ankisquared/
├── api/ # External service integrations
├── gui/ # Anki editor interface
├── docs/ # Technical documentation
└── tests/ # Test suite
See Technical Documentation for detailed architecture overview.
Windows: Use anki-console.bat
in Anki installation folder
macOS: Run /Applications/Anki.app/Contents/MacOS/anki
Linux: Run anki
from terminal
from aqt.utils import showInfo
showInfo("Debug message")
- Create feature branch
- Update documentation
- Add/update tests
- Submit PR with clear description
- Open an issue