Summary: Markup to allow easy embedding of github gists
Version: 2013.09.03
Prerequisites: pmwiki-2.2.52 (tested; some earlier versions okay, but not tested)
Status: active
Maintainer: MichaelPaulukonis
Categories: Includes Programming GitHub Layout
Users:  (view? / edit)
Discussion: PmWikiGists-Talk?

Questions answered by this recipe

 

How can I easily display github-hosted gists on my website, in standard github-markup?

 

 

Description

Easily display github-hosted gists on your pmwiki-based website, with all the javascript and css bells-n-whistles attached.

 

Required resources will only be loaded into the page if the markup is present.

 

 

Installation

 

  1. Download pmwiki-gists.zip
  2. Extract pmwiki-gists.latest.php to your \cookbook directory.

 

You can also download the latest version of pmwiki-gists.php from GitHub.

 

 

Configuration

Add the following to \local\config.php

 

include_once("$FarmD\cookbook\pmwiki-gists.php");

 

 

Usage

 

(:gist <public-gist-id>:)

 

 

 

See http://www.xradiograph.com/PmWikiDevelopment/PmWikiGistsExamples for a complete, live list of examples.

 

 

Notes

 

 

Change log / Release notes

  • 2013.09.03 fixed conflict with Markup Extensions? or other markup (Keep() instead of return)
  • 2013.09.01 other forms of markup implemented, trap for missing or non-numeric gist-id
  • 2013.08.27 initial release, Loading a gist implemented

 

 

See also

 

 

Contributors

MichaelPaulukonis

 

Comments

See discussion at PmWikiGists-Talk?

 

 

Alternatives

SourceBlock?