Welcome, guest | Sign In | My Account | Store | Cart

Notice! PyPM is being replaced with the ActiveState Platform, which enhances PyPM’s build and deploy capabilities. Create your free Platform account to download ActivePython or customize Python with the packages you require and get automatic updates.

Download
ActivePython
INSTALL>
pypm install pelican-gist

How to install pelican-gist

  1. Download and install ActivePython
  2. Open Command Prompt
  3. Type pypm install pelican-gist
 Python 2.7Python 3.2Python 3.3
Windows (32-bit)
Windows (64-bit)
Mac OS X (10.5+)
Linux (32-bit)
0.2.0 Available View build log
Linux (64-bit)
0.2.0 Available View build log
 
License
MIT
Dependencies
Imports
Lastest release
version 0.2.0 on Apr 1st, 2013

Pelican Gist Tag is a library to make it easy to GitHub Gists in your Pelican blogs.

Installation

To install pelican-gist, simply:

System Message: ERROR/3 (<string>, line 11)

Unknown directive type "code-block".

.. code-block:: bash

    $ pip install pelican-gist

Then add a bit of code to your blog configuration:

System Message: ERROR/3 (<string>, line 17)

Unknown directive type "code-block".

.. code-block:: python

    PLUGINS = [
        # ...
        'pelican_gist',
        # ...
    ]

Usage

In your articles, just add lines to your posts that look like:

System Message: ERROR/3 (<string>, line 30)

Unknown directive type "code-block".

.. code-block:: html

    [gist:id=3254906,file=brew-update-notifier.sh]

This will tell the plugin to insert gist id 3254906 and choose the file brew-update-notifier.sh into your post. The resulting HTML will look like:

System Message: ERROR/3 (<string>, line 36)

Unknown directive type "code-block".

.. code-block:: html

    <div class="gist">
        <script src='https://gist.github.com/3254906.js?file=brew-update-notifier.sh'></script>
        <noscript>
            <pre><code>#!/bin/bash ...</code></pre>
        </noscript>
    </div>

If your gist has only a single file, you can also specify the gist like so:

System Message: ERROR/3 (<string>, line 47)

Unknown directive type "code-block".

.. code-block:: html

    [gist:id=3254906]

Notice it is using the id only. The resulting HTML will look like:

System Message: ERROR/3 (<string>, line 53)

Unknown directive type "code-block".

.. code-block:: html

    <div class="gist">
        <script src='https://gist.github.com/3254906.js'></script>
        <noscript>
            <pre><code>#!/bin/bash ...</code></pre>
        </noscript>
    </div>

There is also support for private gists where they have the gist id that looks like e34db4c532a6cfa1f711.

Settings

GIST_CACHE_ENABLED - Specifies whether to cache the gist on disk or not. Default is True. (Optional)

License

Uses the MIT license.

Subscribe to package updates

Last updated Apr 1st, 2013

What does the lock icon mean?

Builds marked with a lock icon are only available via PyPM to users with a current ActivePython Business Edition subscription.

Need custom builds or support?

ActivePython Enterprise Edition guarantees priority access to technical support, indemnification, expert consulting and quality-assured language builds.

Plan on re-distributing ActivePython?

Get re-distribution rights and eliminate legal risks with ActivePython OEM Edition.