github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jquery / jquery-wikiapi2xml

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 7
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Convert the jQuery wiki documentation to an XML file. — Read more

  cancel

http://docs.jquery.com/

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Moving over from the jQuery SVN repository. 
jeresig (author)
Sat Jul 25 07:48:00 -0700 2009
commit  a3930697451c353e9f6fe1466bc1f879a762bdc4
tree    dbda4bc85d1b284b92f40aa0b81b69fe7472a288
jquery-wikiapi2xml /
name age
history
message
file README Sat Jul 25 07:48:00 -0700 2009 Moving over from the jQuery SVN repository. [jeresig]
file createjQueryXMLDocs.py Sat Jul 25 07:48:00 -0700 2009 Moving over from the jQuery SVN repository. [jeresig]
file createjQueryXMLDocsOldFormat.py Sat Jul 25 07:48:00 -0700 2009 Moving over from the jQuery SVN repository. [jeresig]
file export.php Sat Jul 25 07:48:00 -0700 2009 Moving over from the jQuery SVN repository. [jeresig]
README
The python script createjQueryXMLDocs.py goes to the internet and retrieves API data 
from jQuery's wiki then converts it to an XML format for use by other applications.  It 
was written by David Serduke in late 2007.

There are a few options that can be passed in:

  help:
    For reading and displaying this help out of SVN. (defaults to 'false' unless no
    parameters were set)

  supresscontenttype:
    For use when not running on a web server. (defaults to 'false')

  start:
    The starting place in the wiki. (defaults to 'API')

  exporter:
    The wiki XML exporter page. (defaults to 'http://docs/jquery.com/Special:Export')

  version:
    The version number to put on the generated XML document. (defaults to 'Unknown')

  convertlinks:
    The method to convert wiki links like [[Ajax_Events|Ajax Events]].  Can have the
    value of 'none', 'html', or 'node'.  These either i(respectively) send it on, 
    convert to a string like "<a href='Ajax_Events'>Ajax Events</a>", 
    or create an XML node named 'a' with the same information. (defaults to 'html')

  forlinksurl:
    Value to prepend to any wiki link like 'http://docs.jquery.com/' (defaults to '')

  verbose:
    Can add an XML node 'info' to the root 'docs' element that has conversion details
    mostly for debugging purposes. It will also create "pretty" xml when not set to
    false.  Can have the value of 'false', 'true', or 'super'.  (defaults to 'false')

  debug:
    Will force the output to be text/plain instead of text/xml and put verbose messages
    to normal print instead of sticking them in the xml tree.  (defaults to 'false')
  
The basic XML format is as follows:

<docs timestamp="[last time anything was modified]" version="[version parameter]" startdoc='[start param]'>
  <info> - this node is here if 'verbose' parameter was set to other than 'false'
    <msg>Loading...</msg>
  </info>
  <cat value="Core">
    <subcat value="$(...) The jQuery Function">
      <function name="jQuery" .../>
      <function .../>
      <selector .../>
      <property .../>
    </subcat>
  </cat>
</docs>

The 'cat' and 'subcat' elements are optional depending on the 'start' parameter and what
is in the wiki data.  Other than that, most of the wiki data is converted directly to an
XML equivilent so if anything new is added to the wiki it should be sent right over to
the XML document the next time it is created.

Here are a few examples of how to use the script.

To get this help:
http://[location of script]/createjQueryXMLDocs.py

To get the API:
http://[location of script]/createjQueryXMLDocs.py?version=1.2.2

To get the UI:
http://[location of script]/createjQueryXMLDocs.py?start=UI&version=1.1

To get a specific function:
http://[location of script]/createjQueryXMLDocs.py?start=Events/bind&version=1.2.2

To get a debug a problem:
http://[location of script]/createjQueryXMLDocs.py?start=Selectors&verbose=super&debug=true
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server