From 551909893ef663c602a6562b18d96ec3f33a3c81 Mon Sep 17 00:00:00 2001 From: Steven Maude Date: Thu, 28 May 2015 22:01:05 +0100 Subject: [PATCH] Document how to use a publish configuration Explain how to import settings from pelicanconf.py into publishconf.py. --- docs/publish.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/publish.rst b/docs/publish.rst index 8c7d4c19..309e8b42 100644 --- a/docs/publish.rst +++ b/docs/publish.rst @@ -61,6 +61,15 @@ feeds, etc.) that you may have defined:: pelican content -s publishconf.py +To base your publish configuration on top of your ``pelicanconf.py``, you +can import your ``pelicanconf`` settings by including the following line in +your ``publishconf.py``:: + + from pelicanconf import * + +If you have generated a ``publishconf.py`` using ``pelican-quickstart``, +this line is included by default. + The steps for deploying your site will depend on where it will be hosted. If you have SSH access to a server running Nginx or Apache, you might use the ``rsync`` tool to transmit your site files::