Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/honzajavorek/danube-delta
Honza Javorek's Pelican setup
https://github.com/honzajavorek/danube-delta
pelican static-site-generator
Last synced: about 5 hours ago
JSON representation
Honza Javorek's Pelican setup
- Host: GitHub
- URL: https://github.com/honzajavorek/danube-delta
- Owner: honzajavorek
- License: mit
- Created: 2016-02-20T23:48:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2021-11-01T20:03:40.000Z (about 3 years ago)
- Last Synced: 2024-11-12T18:36:49.115Z (6 days ago)
- Topics: pelican, static-site-generator
- Language: Python
- Homepage:
- Size: 9.01 MB
- Stars: 4
- Watchers: 3
- Forks: 4
- Open Issues: 14
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Danube Delta
============`Honza Javorek `__'s `Pelican `__ setup.
|PyPI version| |Build Status|
Installation
------------.. code:: shell
$ pip install danube-delta
**Warning:** The library is only for Python 3.
Setup
-----#. Create basic scaffolding of your `Pelican `__ blog:
.. code:: shell
$ mkdir ./my-awesome-blog
$ cd ./my-awesome-blog
$ git init
$ mkdir ./content ./output
$ echo '/output' > .gitignore#. Create ``./settings.py``:
.. code:: python
from danube_delta.settings import *
AUTHOR = 'Zuzka & Honza'
SITENAME = 'Pražení'if PRODUCTION:
SITEURL = 'http://example.com'#. Install ``danube_delta``, globally:
.. code:: shell
$ sudo -H pip install danube_delta
#. In the root of your blog directory you can now use the ``blog`` CLI:
.. code:: shell
$ blog write
Usage
-----.. code:: shell
$ 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``:
.. code:: yaml
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: falseHead 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 `__:
.. figure:: danube-delta.jpg
:alt: Pelicans in the Danube DeltaPhoto: © 2012 Honza Javorek
.. |PyPI version| image:: https://badge.fury.io/py/danube-delta.svg
:target: https://badge.fury.io/py/danube-delta
.. |Build Status| image:: https://travis-ci.org/honzajavorek/danube-delta.svg?branch=master
:target: https://travis-ci.org/honzajavorek/danube-delta