Project

General

Profile

Actions

Feature #5925

closed

Add Github Embed plugin

Added by Matt Gold over 7 years ago. Updated over 7 years ago.

Status:
Resolved
Priority name:
High
Assignee:
Category name:
WordPress Plugins
Target version:
Start date:
2016-08-22
Due date:
% Done:

0%

Estimated time:
Deployment actions:

Description

I'd love to embed my course syllabus on a Commons page through Github. Can you please take a look at this plugin and see whether you think it is benign?

https://wordpress.org/plugins/github-embed/installation/

If it doesn't pose any problems, I'd be extremely grateful if you could install it as a hotfix in advance of the Fall semester, which begins next week. thanks for considering this.

Actions #1

Updated by Matt Gold over 7 years ago

Oops -- forget that. This just pulls project information in. I'm looking for a way to pull the actual github page in, if possible.

Actions #2

Updated by Boone Gorges over 7 years ago

  • Status changed from Assigned to Reporter Feedback

Can you share, here or privately, the URL of what you're trying to embed? There are specific mechanisms for embedding particular types of GitHub content.

Actions #3

Updated by Matt Gold over 7 years ago

Sure -- it's this markdown file -- https://github.com/mkgold/clouds/blob/master/cloud-syllabus.md

If this is not possible/easy -- no worries.

Actions #4

Updated by Boone Gorges over 7 years ago

  • Status changed from Reporter Feedback to Resolved
  • Target version set to 1.9.26

It sounds like what you want is not so much to have Github itself embedded, but to have your markdown document parsed and then embedded into a page.

I found a WP plugin that does this and installed it on the Commons in https://github.com/cuny-academic-commons/cac/commit/5807c5bc05c7a0ba2b91878841fc8e6f5d6ce2cc

To use, first activate the Remote Markdown plugin. Then, put the following into a post:

[remote-markdown refresh="60"]https://raw.githubusercontent.com/mkgold/clouds/master/cloud-syllabus.md[/remote-markdown]

Note that the content of this shortcode is the "Raw" version of your syllabus Markdown file. The 'refresh' attribute describes how many minutes the content will be cached for - you may want to set this to something low (maybe 1) until you are certain that all the bugs are out of your markup. See https://github.com/mkgold/clouds/pull/1

Let me know if you have any problems.

Actions #5

Updated by Matt Gold over 7 years ago

That's fantastic, Boone -- thanks so much! Here's the result - http://clouds.commons.gc.cuny.edu/syllabus/

(and thanks for contributing to my syllabus ;) )

I really appreciate this and think that a lot of people will be interested in using this plugin

Actions

Also available in: Atom PDF