Skip to main content

Lektor plugin to publish your site with Netlify.

Project description

Lektor Netlify Publisher Plugin

Publish your Lektor site to Netlify.

Installation

Install the netlify command-line program according to the instructions on netlify.com.

Add lektor-netlify to your project from the command line:

lektor plugins add lektor-netlify

See the Lektor documentation for more instructions on installing plugins.

Configuration

Configure a server in your .lektorproject file:

[servers.production]
name = Production
target = netlify://my-domain.com

Access Token

Get a personal access token from Netlify's "applications" page:

You must use this access token each time you publish. If your project file is private you can save the token there. Do not commit this!

[servers.production]
name = Production
target = netlify://my-domain.com
key = ACCESS_TOKEN

Now deploy your site like:

lektor deploy production

Otherwise, pass the token on the command line:

lektor deploy production --key ACCESS_TOKEN    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

lektor_netlify-0.2-py3-none-any.whl (3.1 kB view details)

Uploaded Python 3

File details

Details for the file lektor_netlify-0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for lektor_netlify-0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 392ccedfc652a41c80a46f365805f1db978229a07886256c86c1bf754f9f5636
MD5 08b9cedf8297fafe9cd01ee1760fd339
BLAKE2b-256 840ac176e8d789034c00231de48dfd05ab1b792cb8ff5b4771a3dcde3a36d8ba

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page