Development¶
Linux¶
-
Install Potrace using apt
sudo apt-get install potrace
-
Install fontforge
sudo apt-get install fontforge
Warning
Since the PPA for fontforge is no longer maintained, apt might not work for some users. The preferred way to install is using the AppImage from: https://fontforge.org/en-US/downloads/
-
Clone the repository or your fork
git clone https://github.com/builtree/handwrite
-
(Optional) Make a virtual environment and activate it
python -m venv .venv source .venv/bin/activate
-
In the project directory run:
pip install -e .[dev]
-
Make sure the tests run:
python setup.py test
-
Install pre-commit hooks before contributing:
pre-commit install
You are ready to go!
Windows¶
-
Install Potrace and make sure it's in your PATH.
-
Install fontforge and make sure scripting is enabled.
-
Clone the repository or your fork
git clone https://github.com/builtree/handwrite
-
(Optional) Make a virtual environment and activate it
python -m venv .venv .venv\Scripts\activate
-
In the project directory run:
pip install -e .[dev]
-
Make sure the tests run:
python setup.py test
-
Install pre-commit hooks before contributing:
pre-commit install
You are ready to go!
Setting Up Docs¶
-
If you haven't done a developer install of handwrite, you will need to install mkdocs and its requirements:
pip install mkdocs pymdown-extensions mkdocs-material mkdocs-git-revision-date-localized-plugin
-
Check the installations by executing this command:
mkdocs --version
If this doesn't work, try restarting the terminal
-
Use the below command to host the documentation on local server
MkDocs supports live reload so you don't have to run the server again and again. Just save the changes in the docs and you'll see the change immediately.mkdocs serve --dev-addr 127.0.0.1:8000
-
All the documentation is present in the
docs
directory.