https://github.com/lektor/lektor
The lektor static file content management system
https://github.com/lektor/lektor
cms static-site-generator
Last synced: 28 days ago
JSON representation
The lektor static file content management system
- Host: GitHub
- URL: https://github.com/lektor/lektor
- Owner: lektor
- License: bsd-3-clause
- Created: 2015-12-19T09:18:36.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2026-10-05T22:56:18.000Z (about 1 month ago)
- Last Synced: 2026-10-12T09:37:30.168Z (about 1 month ago)
- Topics: cms, static-site-generator
- Language: Python
- Homepage: https://www.getlektor.com/
- Size: 9.44 MB
- Stars: 3,950
- Watchers: 72
- Forks: 319
- Open Issues: 250
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- License: LICENSE
Awesome Lists containing this project
- awesome-python-applications - Repo - in admin console and minimal desktop application. `(linux, windows, mac)` (<a id="tag-static_site" href="#tag-static_site">Static Site</a>)
- awesome-python - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-python-zh - lektor - 一个易于使用的静态CMS和博客引擎。 (静态站点生成器)
- awesome-python-applications - Repo - in admin console and minimal desktop application. `(linux, windows, mac)` (<a id="tag-static_site" href="#tag-static_site">Static Site</a>)
- awesome-starred - lektor/lektor - The lektor static file content management system (others)
- awesome-homelab - Lektor
- awesome-python-resources - GitHub - 36% open · ⏱️ 03.08.2022): (静态站点生成器)
- python-awesome - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-python - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-python - lektor - The lektor static file content management system ` 📝 3 months ago ` (Static Site Generator [🔝](#readme))
- fucking-awesome-python - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- fucking-awesome-python - :octocat: lektor - :star: 3682 :fork_and_knife: 314 - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-python - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-python - lektor - An easy to use static CMS and blog engine. (Static Site Generator)
- awesome-foss-alternatives - Lektor - The lektor static file content management system. [🐍, BSD 3-Clause "New" or "Revised" License]. (Web / Static website generator)
- awesome-static - **Lektor**
- starred-awesome - lektor - The lektor static file content management system (Python)
README
# Lektor
[![CI/CD Badge]][CI/CD]
[](https://pypi.org/project/Lektor/)
[](https://pypi.org/project/Lektor/)
[](https://github.com/psf/black)
[](https://gitter.im/lektor/lektor?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[CI/CD Badge]: https://github.com/lektor/lektor/actions/workflows/ci-cd.yml/badge.svg?branch=master
[CI/CD]: https://github.com/lektor/lektor/actions/workflows/ci-cd.yml
Lektor is a static website generator. It builds out an entire project
from static files into many individual HTML pages and has a built-in
admin UI and minimal desktop app.

To see how it works look at the top-level `example/` folder, which contains
a showcase of the wide variety of Lektor's features.
For a more complete example look at the [lektor/lektor-website](https://github.com/lektor/lektor-website)
repository, which contains the source code for the official Lektor website.
## How do I use this?
For installation instructions head to the official documentation:
- [Installation](https://www.getlektor.com/docs/installation/)
- [Quickstart](https://www.getlektor.com/docs/quickstart/)
## Want to develop on Lektor?
This gets you started (assuming you have [Python] >= 3.10, [npm], and
[uv] installed):
[python]: https://www.python.org/
[uv]: https://docs.astral.sh/uv/
[npm]: https://nodejs.org/
```bash
$ git clone https://github.com/lektor/lektor
$ cd lektor
$ python -m venv _venv
$ . _venv/bin/activate
# pip>=25.1 is required for PEP 735 support
$ pip install -U "pip>=25.1"
# NB: this step requires that npm is installed (see below)
$ pip install --group dev --editable .
# If you plan on committing:
$ uv run prek install
# Run the Lektor server
$ export LEKTOR_DEV=1
$ cp -r example example-project
$ lektor --project example-project server
```
If you want to run the whole test suite, under various versions of
python, etc. (you'll need [tox] installed):
[tox]: https://tox.wiki/
```sh
$ tox
```
Or run the tests directly in your dev environment
```sh
$ pytest [...]
```
> [!NOTE]
> The admin front-end resources (e.g. `.js` and `.css` files) in `lektor/admin/static`
> get built as part of the python distribution build process.
> This happens, e.g., when running `pip install -e .`
>
> That magic may be disabled (you might want to do this if, e.g., `npm` is not
> available in your dev environment) by setting the `HATCH_BUILD_NO_HOOKS`
> environment variable during the build. E.g.
>
> ```sh
> HATCH_BUILD_NO_HOOKS=true pip install --group dev --editable .
> ```