MCPcopy
hub / github.com/lektor/lektor

github.com/lektor/lektor @v3.3.13 sqlite

repository ↗ · DeepWiki ↗ · release v3.3.13 ↗
1,910 symbols 5,925 edges 169 files 403 documented · 21%
README

Lektor

Tests master Code Coverage PyPI version PyPI - Python Version Code Style: Black 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 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 repository, which contains the sourcecode for the official lektor website.

How do I use this?

For installation instructions head to the official documentation:

Want to develop on Lektor?

This gets you started (assuming you have Python, pip, Make and pre-commit installed):

$ 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

If you want to run the test suite (you'll need tox installed):

$ tox

Extension points exported contracts — how you extend this code

SlugifyOptions (Interface)
(no doc)
frontend/js/slugify.ts
KeyboardShortcut (Interface)
(no doc)
frontend/js/utils.ts
RecordPathInfoSegment (Interface)
(no doc)
frontend/js/header/BreadCrumbs.tsx
BaseWidgetType (Interface)
(no doc)
frontend/js/widgets/types.ts
WidgetType (Interface)
(no doc)
frontend/js/widgets/types.ts

Core symbols most depended-on inside this repo

get
called by 290
lektor/db.py
trans
called by 88
frontend/js/i18n.tsx
append
called by 82
lektor/utils.py
items
called by 49
lektor/editor.py
update
called by 47
lektor/builder.py
mkdir
called by 43
lektor/publisher.py
deserialize_value
called by 39
lektor/datamodel.py
append
called by 35
lektor/publisher.py

Shape

Method 916
Function 778
Class 165
Route 39
Interface 12

Languages

Python91%
TypeScript9%

Modules by API surface

lektor/db.py243 symbols
lektor/builder.py85 symbols
lektor/reporter.py83 symbols
lektor/utils.py62 symbols
lektor/datamodel.py57 symbols
lektor/imagetools.py55 symbols
lektor/publisher.py53 symbols
lektor/editor.py53 symbols
tests/test_pluginsystem.py51 symbols
lektor/admin/modules/api.py43 symbols
tests/test_db.py38 symbols
tests/test_images.py32 symbols

Dependencies from manifests, versioned

@babel/core7.12.13 · 1×
@babel/preset-env7.12.13 · 1×
@babel/preset-react7.12.13 · 1×
@babel/preset-typescript7.12.13 · 1×
@babel/register7.12.13 · 1×
@openfonts/roboto-slab_all1.0.1 · 1×
@types/jsdom16.2.6 · 1×
@types/mocha9.0.0 · 1×
@types/node17.0.18 · 1×
@types/react17.0.1 · 1×
@types/react-dom17.0.0 · 1×
@types/react-router-dom5.1.7 · 1×

For agents

$ claude mcp add lektor \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact