Lektor

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

  • Owner: lektor/lektor
  • Platform: Linux, Mac, Windows
  • License:: BSD 3-Clause "New" or "Revised" License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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)

Main metrics

Overview
Name With Ownerlektor/lektor
Primary LanguagePython
Program languageMakefile (Language Count: 7)
PlatformLinux, Mac, Windows
License:BSD 3-Clause "New" or "Revised" License
所有者活动
Created At2015-12-19 09:18:36
Pushed At2025-05-08 08:19:53
Last Commit At2025-05-08 09:54:33
Release Count48
Last Release Namev3.3.12 (Posted on )
First Release Name0.96 (Posted on )
用户参与
Stargazers Count3.9k
Watchers Count73
Fork Count316
Commits Count1.8k
Has Issues Enabled
Issues Count660
Issue Open Count229
Pull Requests Count425
Pull Requests Open Count27
Pull Requests Close Count112
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

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