Skip to main content

Honza Javorek's Pelican setup

Project description

Honza Javorek’s Pelican setup.

https://travis-ci.org/honzajavorek/danube-delta.svg?branch=master

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

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:

Pelicans in the Danube Delta

Photo: © 2012 Honza Javorek

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-0.0.13.tar.gz (550.7 kB view details)

Uploaded Source

Built Distribution

danube_delta-0.0.13-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file danube-delta-0.0.13.tar.gz.

File metadata

File hashes

Hashes for danube-delta-0.0.13.tar.gz
Algorithm Hash digest
SHA256 63ec50c77fe3497808a0985c8e16c06574dd27b3de9787363ddde5ae8459b73f
MD5 9f9b555a341b2919cfba24d0d3422986
BLAKE2b-256 7921992bbc2e5880a366f72bb420f153d275e5b33fe7a12ebe392586689d1741

See more details on using hashes here.

Provenance

File details

Details for the file danube_delta-0.0.13-py3-none-any.whl.

File metadata

File hashes

Hashes for danube_delta-0.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 fe9a874ff2807948dedb97030a9d4c251c210a94d55ce2f2f2d7cbf24275dbe7
MD5 df0950067b5fa5e7161f56e53bbc54d4
BLAKE2b-256 4a396dd6c50badfdfac5e2b17aa3aa545d020a4f827aef63702af26e5287de6d

See more details on using hashes here.

Provenance

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