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)

Overview

Name With Ownerlektor/lektor
Primary LanguagePython
Program languageMakefile (Language Count: 7)
PlatformLinux, Mac, Windows
License:BSD 3-Clause "New" or "Revised" License
Release Count46
Last Release Namev3.4.0b11 (Posted on )
First Release Name0.96 (Posted on )
Created At2015-12-19 09:18:36
Pushed At2024-02-27 21:12:15
Last Commit At2024-02-27 10:42:46
Stargazers Count3.8k
Watchers Count77
Fork Count308
Commits Count1.7k
Has Issues Enabled
Issues Count646
Issue Open Count222
Pull Requests Count408
Pull Requests Open Count20
Pull Requests Close Count107
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
To the top