Honza Javorek's Pelican setup
Project description
Honza Javorek’s Pelican setup.
Installation
$ pip install danube-delta
Warning: The library is only for Python 3.
Setup
Create basic scaffolding of your Pelican blog:
$ mkdir ./my-awesome-blog $ cd ./my-awesome-blog $ git init $ mkdir ./content ./output $ echo '/output' > .gitignore
Create ./settings.py:
from danube_delta.settings import * AUTHOR = 'Zuzka & Honza' SITENAME = 'Pražení' if PRODUCTION: SITEURL = 'http://example.com'
Install danube_delta, globally:
$ sudo -H pip install danube_delta
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
Head to the user guide for more information on how to use a blog based on Danube Delta.
Developing Danube Delta
Clone Danube Delta to a directory of your choice, e.g. ~/danube-delta.
Install Danube Delta from your local clone: pip install -e ~/danube-delta.
Name
In 2012 I’ve seen some pelicans in the Danube Delta:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file danube-delta-1.3.0.tar.gz
.
File metadata
- Download URL: danube-delta-1.3.0.tar.gz
- Upload date:
- Size: 550.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6c1fcecf1be1dd0daf9748fc31b3e1958a33c6bebb03323854a32c3179df9900 |
|
MD5 | 2bb03017e9f4da605e97f55091ffe56e |
|
BLAKE2b-256 | cade50169237868369cefee7bd9f792d0ef8c4d7d375612cb1c40e4defd45bb4 |
Provenance
File details
Details for the file danube_delta-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: danube_delta-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 560.2 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cbdf07d737164b9a0b79a7edd7e2d05a8feec7014e543a17d91c41754bf70d64 |
|
MD5 | fd51abf2122fd7e8ef1fc9ac5d856cb0 |
|
BLAKE2b-256 | 5126295fe46dbb5955975a72461bc096fcb273062072030ee4e406589ae2afe5 |