Project's Wiki has been created and now contains all method names from jQuery Documentation Site. Whole process has been automated using docs-import script, which fetches data from this XML, an effect of query-api-browser project (thx guys). Here's some example snippet - Selectors section.
$categories = $pq->find('cat[value=Selectors] subcat');
$content = array();
foreach($categories as $subcat) {
$content[] = '===='.pq($subcat)->attr('value')."====";
foreach(pq($subcat)->find('selector') as $selector)
$content[] = ' * *`'.pq('sample', $selector)->text().'`* '.pq('> desc', $selector)->text();
}
As you can see Wiki markup is automatically applied and whole task is quite easy using jQuery-like interface. Wiki documentation can be usefull due to official documentation going offline quite often lately. There is also great CHM version to download which i recommend.
Besides coping documentation ;) there are some pure phpQuery-specific pages like PHPSupport or Callbacks. More will come.
0 comments:
Post a Comment