Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Adds custom publishers for the Maths History website.

Project description


Adds custom publishers for the Maths History website.

Creates two custom publishers:

  1. Preview: The internal-access-only preview/testing site.
  2. Production: The live web server.


Both publishers first add/commit/push any changes in both the mathshistory-content git repo, and then the mathshistory-output git repo. This ensures that all changes are tracked in git, and the two repos are kept in sync, which should happen as these publishers should be the only things modifying the two repos.

The commit messages of these adds/commits/pushes are the same for both repos, and consist of autocommit: <random> where <random> is a random 8 character alphanumeric string. This should be used to match up the commits from each repo.


The Preview publisher then rsyncs the files to the preview web root on the same machine. This uses a custom rsync command rather than lifting the existing rsync publisher, because the existing rsync publisher does not (yet?) support having an output path of a local directory.

It takes in the web root directory as the path, so should be used as follows:

name = Preview
target = mathshistorypreview:///srv/sitebuild/html/
enabled = yes
default = yes


The Production publisher lifts all the code from the existing rsync publisher. It should be used as follows:

name = Production
target = mathshistoryproduction://username@server/path/to/folder
enabled = yes
default = no

Project details

Download files

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

Files for lektor-mathshistory-publish, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size lektor_mathshistory_publish-0.1.1-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size lektor-mathshistory-publish-0.1.1.tar.gz (2.8 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page