From 49683d83555a03913eda2bfe0242c8c9fd58ba1e Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 7 Oct 2010 23:20:04 -0400 Subject: [PATCH] Add rel-vcs post. --- Makefile | 3 +- posts/rel-vcs.mdwn | 24 ++++ posts/rel-vcs/Makefile | 9 ++ posts/rel-vcs/rel-vcs/README | 16 +++ posts/rel-vcs/rel-vcs/chrome.manifest | 7 + .../rel-vcs/rel-vcs/chrome/content/about.xul | 37 +++++ .../rel-vcs/chrome/content/contents.rdf | 26 ++++ .../rel-vcs/rel-vcs/chrome/content/overlay.js | 126 ++++++++++++++++++ .../rel-vcs/chrome/content/overlay.xul | 41 ++++++ .../rel-vcs/chrome/locale/en-US/about.dtd | 0 .../rel-vcs/chrome/locale/en-US/contents.rdf | 18 +++ .../rel-vcs/chrome/locale/en-US/rel-vcs.dtd | 9 ++ .../rel-vcs/chrome/skin/classic/about.css | 19 +++ .../rel-vcs/chrome/skin/classic/contents.rdf | 15 +++ .../rel-vcs/chrome/skin/classic/logo.png | Bin 0 -> 191 bytes .../rel-vcs/chrome/skin/classic/logo_cold.png | Bin 0 -> 191 bytes .../rel-vcs/chrome/skin/classic/overlay.css | 14 ++ posts/rel-vcs/rel-vcs/icon.png | Bin 0 -> 208 bytes posts/rel-vcs/rel-vcs/install.rdf | 55 ++++++++ 19 files changed, 418 insertions(+), 1 deletion(-) create mode 100644 posts/rel-vcs.mdwn create mode 100644 posts/rel-vcs/Makefile create mode 100644 posts/rel-vcs/rel-vcs/README create mode 100644 posts/rel-vcs/rel-vcs/chrome.manifest create mode 100644 posts/rel-vcs/rel-vcs/chrome/content/about.xul create mode 100644 posts/rel-vcs/rel-vcs/chrome/content/contents.rdf create mode 100644 posts/rel-vcs/rel-vcs/chrome/content/overlay.js create mode 100644 posts/rel-vcs/rel-vcs/chrome/content/overlay.xul create mode 100644 posts/rel-vcs/rel-vcs/chrome/locale/en-US/about.dtd create mode 100644 posts/rel-vcs/rel-vcs/chrome/locale/en-US/contents.rdf create mode 100644 posts/rel-vcs/rel-vcs/chrome/locale/en-US/rel-vcs.dtd create mode 100644 posts/rel-vcs/rel-vcs/chrome/skin/classic/about.css create mode 100644 posts/rel-vcs/rel-vcs/chrome/skin/classic/contents.rdf create mode 100644 posts/rel-vcs/rel-vcs/chrome/skin/classic/logo.png create mode 100644 posts/rel-vcs/rel-vcs/chrome/skin/classic/logo_cold.png create mode 100644 posts/rel-vcs/rel-vcs/chrome/skin/classic/overlay.css create mode 100644 posts/rel-vcs/rel-vcs/icon.png create mode 100644 posts/rel-vcs/rel-vcs/install.rdf 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + +