Skip to content

nixjdm/lektor-netlify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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    

About

Publish to Netlify your site built with the Lektor static site generator. ⛺

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages