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' > .gitignoreCreate ./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_deltaIn 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:
Photo: © 2012 Honza Javorek
Metadata
Release files for danube-delta 2.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| danube-delta-2.1.0.tar.gz | 9.0 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danube_delta-2.1.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 9.6 MB
Release files / danube-delta-2.1.0.tar.gz
| Download URL | danube-delta-2.1.0.tar.gz |
|---|---|
| Size | 9.0 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f4b67ff91a9397eb8a590a985686850128d25a087c219d3aa21abfd34c3ebc10
|
|
BLAKE2b-256 checksum How to use checksums |
966bb9e5fcaf73e04058f4275e4772e1e968f6432d83f0a07acbae8fb0fa4d64
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|
Release files / danube_delta-2.1.0-py2.py3-none-any.whl
| Download URL | danube_delta-2.1.0-py2.py3-none-any.whl |
|---|---|
| Size | 557.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
11b24a1ac45503a583befa5db9c0b360ca72de70482e9d620bf4cf797144624c
|
|
BLAKE2b-256 checksum How to use checksums |
8706e547a815e7462ac84a5d42dcef4d2a305acddf5a1fe6b52eb50a46b4441b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7
|