Honza Javorek's Pelican setup
Project description
Copyright (c) 2016 Honza Javorek
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description-Content-Type: UNKNOWN
Description: Danube Delta
============
`Honza Javorek <https://github.com/honzajavorek/>`__'s `Pelican <http://www.getpelican.com/>`__ 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 <http://www.getpelican.com/>`__ 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 <https://docs.travis-ci.com/user/deployment/>`__ 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: false
Head to the `user guide <https://github.com/honzajavorek/danube-delta/blob/master/user-guide.rst>`__ 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 <https://en.wikipedia.org/wiki/Pelican>`__ in the `Danube Delta <https://en.wikipedia.org/wiki/Danube_Delta>`__:
.. figure:: danube-delta.jpg
:alt: Pelicans in the Danube Delta
Photo: © 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
Keywords: pelican blog
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Description-Content-Type: UNKNOWN
Description: Danube Delta
============
`Honza Javorek <https://github.com/honzajavorek/>`__'s `Pelican <http://www.getpelican.com/>`__ 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 <http://www.getpelican.com/>`__ 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 <https://docs.travis-ci.com/user/deployment/>`__ 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: false
Head to the `user guide <https://github.com/honzajavorek/danube-delta/blob/master/user-guide.rst>`__ 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 <https://en.wikipedia.org/wiki/Pelican>`__ in the `Danube Delta <https://en.wikipedia.org/wiki/Danube_Delta>`__:
.. figure:: danube-delta.jpg
:alt: Pelicans in the Danube Delta
Photo: © 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
Keywords: pelican blog
Platform: UNKNOWN
Classifier: Environment :: Console
Classifier: Operating System :: OS Independent
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
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
danube-delta-1.3.6.tar.gz
(549.6 kB
view details)
Built Distribution
File details
Details for the file danube-delta-1.3.6.tar.gz
.
File metadata
- Download URL: danube-delta-1.3.6.tar.gz
- Upload date:
- Size: 549.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 23e3483b3228f4e3adf8569d33fcd77f948fdc84bf5a0dff3cc9af7da0690178 |
|
MD5 | 84797d04d3d152789e96d2c3b94c3452 |
|
BLAKE2b-256 | e13deabfd242decf562bd9ba07b821f158eb1bf4a82f39be499787576e2491a7 |
Provenance
File details
Details for the file danube_delta-1.3.6-py2.py3-none-any.whl
.
File metadata
- Download URL: danube_delta-1.3.6-py2.py3-none-any.whl
- Upload date:
- Size: 560.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/38.2.4 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6df3a764bf8ccd4fd4d3e2a7e790ef5902bf4cbbdf1f3eca6e1605cab7587f03 |
|
MD5 | dff58abbdc12085cf18d69be23876ba5 |
|
BLAKE2b-256 | f04eb4bb35d2e1bed111144dce91e855ee3de40f1e0795b3d4c53af0559f26f9 |