History

Update PHP documentation (up to 7.0.7)

Thibaut Courouble committed 10 years ago

Commit ceccfc01 parent d36962f5 files · +5 −9Browse files

Unified · Split

5 files
  1. assets/javascripts/views/pages/php.coffee +0 −6
  2. assets/javascripts/views/pages/simple.coffee +1 −0
  3. lib/docs/filters/php/clean_html.rb +1 −0
  4. lib/docs/filters/php/entries.rb +1 −1
  5. lib/docs/scrapers/php.rb +2 −2
assets/javascripts/views/pages/php.coffee+0−6
@@ -1,6 +0,0 @@
1−#= require views/pages/base
2−
3−class app.views.PhpPage extends app.views.BasePage
4− prepare: ->
5− @highlightCode @findAllByClass('phpcode'), 'php'
6− return
assets/javascripts/views/pages/simple.coffee+1−0
@@ -23,6 +23,7 @@ app.views.NodePage = · 22 unmodified lines
2323 app.views.PerlPage =
2424 app.views.PhalconPage =
2525 app.views.PhaserPage =
26+app.views.PhpPage =
2627 app.views.PostgresPage =
2728 app.views.RamdaPage =
2829 app.views.ReactPage =
lib/docs/filters/php/clean_html.rb+1−0
@@ -24,6 +24,7 @@ module Docs · 23 unmodified lines
2424 node.name = 'pre'
2525 node.inner_html = node.inner_html.gsub(br, "\n")
2626 node.content = node.content
27+ node['data-language'] = 'php'
2728 end
2829
2930 css('> h2:first-child.title').each do |node|
lib/docs/filters/php/entries.rb+1−1
@@ -94,7 +94,7 @@ module Docs · 93 unmodified lines
9494 end
9595
9696 def get_type
97− return 'Language Reference' if subpath.start_with?('language.')
97+ return 'Language Reference' if subpath.start_with?('language.') || subpath.start_with?('functions.')
9898 return 'PCRE Reference' if subpath.start_with?('regexp.')
9999
100100 type = at_css('.up').content.strip
lib/docs/scrapers/php.rb+2−2
@@ -4,7 +4,7 @@ module Docs · 3 unmodified lines
44
55 self.name = 'PHP'
66 self.type = 'php'
7− self.release = 'up to 7.0.5'
7+ self.release = 'up to 7.0.7'
88 self.base_url = 'https://secure.php.net/manual/en/'
99 self.root_path = 'index.html'
1010 self.initial_paths = %w(
@@ -36,7 +36,7 @@ module Docs · 25 unmodified lines
3636 options[:only_patterns] = [
3737 /\Alanguage\./,
3838 /\Aclass\./,
39− /\Afunction\./,
39+ /\Afunctions?\./,
4040 /\Acontrol-structures/,
4141 /\Aregexp\./,
4242 /\Areserved\.exceptions/,