Git Product home page Git Product logo

bookmarklets's Introduction

Bookmarklets

Currently available bookmarklets:

  • Inspect RDFa: summary of all RDFa on a webpage
  • Highlight RDFa: highlight RDFa blocks and provide tooltip-style information about the RDFa data

For more information and installation instructions, see bookmarklets github pages site.

Developer Notes

This project uses git-flow branching conventions.

To use your local copy of the bookmarklets, you should do the following:

  • make sure you are on the develop branch
  • make sure you have jekyll installed
  • run the site via jekyll, with flags to reload modified files and load the development config file: jekyll serve -w --config _dev-config.yml --port 4004
  • install the development version of the bookmarklet from your locally running version of the site, i.e. http://localhost:4004/

Bookmarklets are published through GitHub site pages, which are served out from the gh-pages branch. Following git-flow conventions, this should be an exact replica of the master branch. As a convenience, to update the gh-pages branch from master and push it to github, you may want to configure the following alias in your .git/config for this project:

[alias]
    publish-pages = "!git checkout gh-pages && git merge master && git push origin gh-pages && git checkout -"

When you tag a new release, also update the version number in the page metadata of index.html for public display.

To publish to QA for testing, build the site with the QA config file:

jekyll build -c _qa_config.yml

Then copy the built site files in the _site directory to the appropriate directory on the QA webserver, e.g.:

scp -r _site/* testbookmarklet:/home/httpd/bookmarklet

bookmarklets's People

Contributors

kevinglover avatar rlskoeser avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

bookmarklets's Issues

Uncaught ReferenceError error

Great tool! I got it to partially work on this page:
http://files.openspring.net/tmp/bing/rdfa_vocab_person.html
but at some point in chrome it gives me these errors in the console:

Uncaught ReferenceError: $ is not defined rdfa-inspect.js:36
add_css rdfa-inspect.js:36
(anonymous function) rdfa-inspect.js:24
(anonymous function) rdfa-inspect.js:193

And in firefox, nothing appears and I get this in the console:

ReferenceError: $ is not defined in rdfa-inspect.js:36
if ($('link[href="' + url + '"]').length) { return; }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.