Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/safrmo/vp-phaser-docs
Phaser documentation written in Vuepress.
https://github.com/safrmo/vp-phaser-docs
Last synced: 6 days ago
JSON representation
Phaser documentation written in Vuepress.
- Host: GitHub
- URL: https://github.com/safrmo/vp-phaser-docs
- Owner: SaFrMo
- Created: 2017-05-27T04:18:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-05-27T04:18:50.000Z (over 7 years ago)
- Last Synced: 2024-10-11T05:11:05.864Z (about 1 month ago)
- Language: JavaScript
- Size: 1.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## What
Phaser 2.6.2 docs in a Vuepress theme. Data scraped from existing docs with [Artoo](http://medialab.github.io/artoo/).## How
Property scraper:
```js
var properties = artoo.scrape('#members > dl > dt', {
name: function(){ return $(this).find('h4').attr('id') },
type: function(){ return $(this).find('h4 .type-signature:last-of-type').text().replace(/\s*:\s*/, '') },
description: function(){ return $(this).next('dd').find('.description').text() }
})
```Method parameter scraper:
```js```
Method amalgamating scraper:
```js
var methods = artoo.scrape('#methods > dl > dt', {
name: function(){ return $(this).find('h4').attr('id') },
signature: function(){ return $(this).find('h4 .signature').text().replace('(', '').replace(')', '').split(/,\s?/) },
description: function(){ return $(this).next('dd').find('.description').text() }//,
//parameters: function(){ return $(this) }
})
```