Skip to content
The Tor Project
lektor dev macos
lektor dev macos
doc/lektor-dev-macos: partial first draft
Nov 22, 2022
Hide whitespace changes
0 → 100644
View page @
Lektor website development environment on macOS
The aim of this document is to explain the steps required to set up a local
Lektor development environment suitable for working on Tor Project websites
based on the Lektor platform.
We'll be using the
git GUI to provide a user-friendly method of
working with the various website's git repositories.
First we'll install a few prerequisite packages, including Sourcetree.
You must have administrator privileges to install these software packages.
First we'll install the Xcode package.
Open the Terminal app and enter:
on the dialog that appears.
Now, we'll install the
package manager, again via the Terminal:
/bin/bash -c "$(curl -fsSL
Now we're ready to install a few more tools:
brew install coreutils git git-lfs python3.8
And lastly we need to download and install Sourcetree. This can be done from
the app's website: https://www.sourcetreeapp.com/
Follow the installer prompts, entering name and email address so that the git
commits are created with adequate identifying information.
# Connect GitLab account
*This step is only required if you want to create Merge Requests in GitLab.*
Next, we'll create a GitLab token to allow Sourcetree to retrieve and update
Navigate to https://gitlab.torproject.org/-/profile/personal_access_tokens
Choose an expiration date, ideally not more than a few months
Check the box next to
**Create personal access token**
Copy the token into your clipboard
Now, open Sourcetree and click the
fill in the dialog as below. Paste the token in the