Lektor

lektor 静态文件内容管理系统。(The lektor static file content management system)

Github星跟蹤圖

Lektor

Lektor 是一个静态网站生成器。它将整个项目从静态文件构建成许多单独的 HTML 页面,并有一个内置的管理 UI 和最小的桌面应用程序。

要了解它是如何工作的,请看顶层的 example/ 文件夹,它包含了 Lektor 的各种功能的展示。

更完整的例子请看 lektor/lektor-website 仓库,其中包含 lektor 官方网站的源代码。

我如何使用这个?

关于安装说明,请前往官方文档:

想在 Lektor 上开发?

这可以让你入门(假设你已经安装了Python、pip、Make和pre-commit)。

$ git clone https://github.com/lektor/lektor
$ cd lektor
$ virtualenv venv
$ . venv/bin/activate
$ pip install --editable .
$ make build-js
$ pre-commit install
$ export LEKTOR_DEV=1
$ cp -r example example-project
$ lektor --project example-project server

如果你想运行测试套件(你需要安装 tox):

$ tox


(First version translated and edited by vz on 2020.12.19)

主要指標

概覽
名稱與所有者lektor/lektor
主編程語言Python
編程語言Makefile (語言數: 7)
平台Linux, Mac, Windows
許可證BSD 3-Clause "New" or "Revised" License
所有者活动
創建於2015-12-19 09:18:36
推送於2025-05-08 08:19:53
最后一次提交2025-05-08 09:54:33
發布數48
最新版本名稱v3.3.12 (發布於 )
第一版名稱0.96 (發布於 )
用户参与
星數3.9k
關注者數73
派生數316
提交數1.8k
已啟用問題?
問題數660
打開的問題數229
拉請求數425
打開的拉請求數27
關閉的拉請求數112
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?

Lektor

Unix Build Status
Windows Build Status
Code Coverage
PyPI version
PyPI - Python Version

Join the chat at https://gitter.im/lektor/lektor

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 example folder which contains a
very basic project to get started.

For a more complete website look at lektor/lektor-website
which contains the sourcecode for the official lektor website. We also have the example project at the
top level of this repository example/ that is a lean example of the wide variety of the features
of Lektor.

How do I use this?

For installation instructions head to the official documentation:

Want to develop on Lektor?

This gets you started:

$ git clone https://github.com/lektor/lektor
$ cd lektor
$ virtualenv venv
$ . venv/bin/activate
$ pip install --editable .
$ make build-js
$ make install-git-hooks
$ export LEKTOR_DEV=1
$ cp -r example example-project
$ lektor --project example-project server

If you want to run the test suite:

$ virtualenv venv
$ . venv/bin/activate
$ pip install --editable ".[test]"
$ make test