From: W. Trevor King Date: Fri, 8 Oct 2010 03:20:04 +0000 (-0400) Subject: Add rel-vcs post. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=49683d83555a03913eda2bfe0242c8c9fd58ba1e;p=mw2txt.git Add rel-vcs post. --- diff --git a/Makefile b/Makefile index 60744bb..68c63ca 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,7 @@ # Build everything necessary to compile the wiki. -SUBDIRS = posts/yacc2dot posts/Xmodmap posts/XSLT/chapter posts/XSLT/code +SUBDIRS = posts/rel-vcs posts/yacc2dot posts/Xmodmap \ + posts/XSLT/chapter posts/XSLT/code TARGETS = all clean all : diff --git a/posts/rel-vcs.mdwn b/posts/rel-vcs.mdwn new file mode 100644 index 0000000..4981ecc --- /dev/null +++ b/posts/rel-vcs.mdwn @@ -0,0 +1,24 @@ +Since I publish a lot of [[Git]] packages, I was interested to read +about [Joey Hess][]' [rel=vcs-* microformat][format]. I think +recording the location of the repo sorcing a page is a great idea, but +with the link stashed in the page header, I could easily browse on by +without ever noticing that the link existed. + +This looks like the same sort of problem that the [Semantic Radar][SR] +extension was designed to solve, except the SR extension notifies you +about RDF files (SIOC, FOAF, DOAP, etc.). I've altered the SR +extension to identify the `rel=vcs-*` tags. + +The [[rel-vcs|rel-vcs.xpi]] extension places an icon in your Firefox +statusbar which goes "hot" when a page has `rel=vcs-*` tags and "cold" +otherwise. When the icon is "hot", you can click on it to pop up a +list of rel-vcs links. Clicking on an item in the list will open that +URI in a new tab. Since Firefox can't speak `git://` etc., the new +tab will mostly be useful as a source of the URI for copy/pasting into +a `git clone ...` call or similar. Alternatively, you can consider +the "hot" icon as a suggestion to use `webcheckout` or other +`rel=vcs-*` consumer on the source page. + +[Joey Hess]: http://kitenet.net/~joey/ +[format]: http://kitenet.net/~joey/rfc/rel-vcs/ +[SR]: http://sioc-project.org/firefox diff --git a/posts/rel-vcs/Makefile b/posts/rel-vcs/Makefile new file mode 100644 index 0000000..c8a3d56 --- /dev/null +++ b/posts/rel-vcs/Makefile @@ -0,0 +1,9 @@ +all : rel-vcs.xpi + +clean : + rm -f rel-vcs.xpi + +rel-vcs.xpi : $(shell find rel-vcs) + zip -r $@ rel-vcs + +.PHONY : all clean diff --git a/posts/rel-vcs/rel-vcs/README b/posts/rel-vcs/rel-vcs/README new file mode 100644 index 0000000..253f3dd --- /dev/null +++ b/posts/rel-vcs/rel-vcs/README @@ -0,0 +1,16 @@ +Firefox extension adding a notification icon for pages with +`rel=vcs-*` tags. See the [specs][] for details on the format. + +When the icon is "hot", you can click on it to pop up a list of +rel-vcs links. Clicking on an item in the list will open that URI in +a new tab. Since Firefox can't speak `git://` etc., the new tab will +mostly be useful as a source of the URI for copy/pasting into a `git +clone ...` call or similar. Alternatively, you can consider the "hot" +icon as a suggestion to use `webcheckout` or other `rel=vcs-*` +consumer on the source page. + +This plugin was initially based on the source for the [Semantic +Radar][SR] plugin. + +[specs]: http://kitenet.net/~joey/rfc/rel-vcs/ +[SR]: http://sioc-project.org/firefox diff --git a/posts/rel-vcs/rel-vcs/chrome.manifest b/posts/rel-vcs/rel-vcs/chrome.manifest new file mode 100644 index 0000000..80f7d6d --- /dev/null +++ b/posts/rel-vcs/rel-vcs/chrome.manifest @@ -0,0 +1,7 @@ +overlay chrome://browser/content/browser.xul chrome://rel-vcs/content/overlay.xul + +content rel-vcs chrome/content/ +skin rel-vcs classic/1.0 chrome/skin/classic/ +locale rel-vcs en-US chrome/locale/en-US/ + +style chrome://global/content/customizeToolbar.xul chrome://rel-vcs/skin/overlay.css diff --git a/posts/rel-vcs/rel-vcs/chrome/content/about.xul b/posts/rel-vcs/rel-vcs/chrome/content/about.xul new file mode 100644 index 0000000..3a28605 --- /dev/null +++ b/posts/rel-vcs/rel-vcs/chrome/content/about.xul @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +