History

Update and improve PHP documentation (5.6.6)

Fixes #162.

Thibaut committed 11 years ago

Commit c3e41d71 parent cf9e5495 files · +14 −7Browse files

Showing the changes to lib/docs (3 of 5 files). Show all

Unified · Split

3 files
  1. lib/docs/filters/php/clean_html.rb +5 −2
  2. lib/docs/filters/php/entries.rb +1 −1
  3. lib/docs/scrapers/php.rb +2 −2
lib/docs/filters/php/clean_html.rb+5−2
@@ -18,9 +18,12 @@ module Docs · 17 unmodified lines
1818 @doc = doc.first_element_child
1919 end
2020
21− # Put code blocks in <pre> tags
22− css('.phpcode > code').each do |node|
21+ # Remove code highlighting
22+ br = /<br\s?\/?>/i
23+ css('.phpcode').each do |node|
2324 node.name = 'pre'
25+ node.inner_html = node.inner_html.gsub(br, "\n")
26+ node.content = node.content
2427 end
2528 end
2629 end
lib/docs/filters/php/entries.rb+1−1
@@ -27,7 +27,7 @@ module Docs · 26 unmodified lines
2727 'XsltProcessor' => 'XSLT',
2828 'ZipArchive' => 'Zip' }
2929
30− %w(APC Directory DOM Gearman Gmagick Imagick mysqli OAuth PDO Reflection
30+ %w(APC Directory DOM Event Gearman Gmagick Imagick mysqli OAuth PDO Reflection
3131 Session SimpleXML Solr Sphinx SQLite3 Varnish XSLT Yaf).each do |str|
3232 TYPE_BY_NAME_STARTS_WITH[str] = str
3333 end
lib/docs/scrapers/php.rb+2−2
@@ -2,7 +2,7 @@ module Docs · 1 unmodified line
22 class Php < FileScraper
33 self.name = 'PHP'
44 self.type = 'php'
5− self.version = 'up to 5.6.5'
5+ self.version = 'up to 5.6.6'
66 self.base_url = 'http://www.php.net/manual/en/'
77 self.root_path = 'index.html'
88 self.initial_paths = %w(
@@ -33,7 +33,7 @@ module Docs · 24 unmodified lines
3333 /\Areserved\.variables/]
3434
3535 BOOKS = %w(apache apc array bc bzip2 calendar classobj ctype curl datetime
36− dba dir dom eio errorfunc exec fileinfo filesystem filter ftp funchand
36+ dba dir dom eio errorfunc event exec fileinfo filesystem filter ftp funchand
3737 gearman geoip gettext gmagick hash http iconv iisfunc image imagick imap
3838 info inotify intl json ldap libevent libxml mail mailparse math mbstring
3939 mcrypt memcached misc mysqli network oauth openssl outcontrol password

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t