Lektor

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

  • 所有者: lektor/lektor
  • 平台: Linux, Mac, Windows
  • 许可证: BSD 3-Clause "New" or "Revised" License
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

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
发布数46
最新版本名称v3.4.0b11 (发布于 )
第一版名称0.96 (发布于 )
创建于2015-12-19 09:18:36
推送于2024-02-27 21:12:15
最后一次提交2024-02-27 10:42:46
星数3.8k
关注者数77
派生数308
提交数1.7k
已启用问题?
问题数646
打开的问题数222
拉请求数408
打开的拉请求数20
关闭的拉请求数107
已启用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
去到顶部