Skip to main content

Honza Javorek's Pelican setup

Project description

Honza Javorek’s Pelican setup.

PyPI version Build Status

Installation

$ pip install danube-delta

Warning: The library is only for Python 3.

Setup

  1. Create basic scaffolding of your Pelican blog:

    $ mkdir ./my-awesome-blog
    $ cd ./my-awesome-blog
    $ git init
    $ mkdir ./content ./output
    $ echo '/output' > .gitignore
  2. Create ./settings.py:

    from danube_delta.settings import *
    
    AUTHOR = 'Zuzka & Honza'
    SITENAME = 'Pražení'
    
    if PRODUCTION:
        SITEURL = 'http://example.com'
  3. Install danube_delta, globally:

    $ sudo -H pip install danube_delta
  4. In the root of your blog directory you can now use the blog CLI:

    $ blog write

Usage

$ blog update   # Gets other people's changes from GitHub
$ blog write    # Starts a new article
$ blog photos   # Adds images to the last article
$ blog preview  # Opens local preview of your blog website
$ blog publish  # Saves changes and sends them to GitHub
$ blog lint     # Looks for errors in source code of your blog
$ blog deploy   # Uploads new version of the blog website

Travis CI can do blog deploy for you every time you perform blog publish:

language: <s>"python"</s>
python:
    - <s>"3.5"</s>
cache: <s>"pip"</s>
script:
    - <s>"blog</s> <s>lint"</s>
env:
  global:
    - secure: <s>"..."</s>  # gem install travis && travis encrypt GITHUB_TOKEN=...
deploy:
    provider: <s>"script"</s>
    script: <s>"blog</s> <s>deploy"</s>
    on:
        branch: <s>"master"</s>
        repo: <s>"honzajavorek/my-awesome-blog"</s>
sudo: false

Head to the user guide for more information on how to use a blog based on Danube Delta.

Developing Danube Delta

  1. Clone Danube Delta to a directory of your choice, e.g. ~/danube-delta.

  2. Install Danube Delta from your local clone: pip install -e ~/danube-delta.

Name

In 2012 I’ve seen some pelicans in the Danube Delta:

<figure> Pelicans in the Danube Delta <figcaption>

Photo: © 2012 Honza Javorek

</figcaption> </figure>

Project details


Download files

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

Source Distribution

danube-delta-2.1.0.tar.gz (9.0 MB view hashes)

Uploaded source

Built Distribution

danube_delta-2.1.0-py2.py3-none-any.whl (557.7 kB view hashes)

Uploaded py2 py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page