diff --git a/assets/javascripts/views/pages/php.coffee b/assets/javascripts/views/pages/php.coffee deleted file mode 100644 index 99202e6b..00000000 --- a/assets/javascripts/views/pages/php.coffee +++ /dev/null @@ -1,6 +0,0 @@ -#= require views/pages/base - -class app.views.PhpPage extends app.views.BasePage - prepare: -> - @highlightCode @findAllByClass('phpcode'), 'php' - return diff --git a/assets/javascripts/views/pages/simple.coffee b/assets/javascripts/views/pages/simple.coffee index a7a10ec3..e2e12ac7 100644 --- a/assets/javascripts/views/pages/simple.coffee +++ b/assets/javascripts/views/pages/simple.coffee @@ -23,6 +23,7 @@ app.views.NodePage = app.views.PerlPage = app.views.PhalconPage = app.views.PhaserPage = +app.views.PhpPage = app.views.PostgresPage = app.views.RamdaPage = app.views.ReactPage = diff --git a/lib/docs/filters/php/clean_html.rb b/lib/docs/filters/php/clean_html.rb index d6791c4f..62ef7b2f 100644 --- a/lib/docs/filters/php/clean_html.rb +++ b/lib/docs/filters/php/clean_html.rb @@ -24,6 +24,7 @@ module Docs node.name = 'pre' node.inner_html = node.inner_html.gsub(br, "\n") node.content = node.content + node['data-language'] = 'php' end css('> h2:first-child.title').each do |node| diff --git a/lib/docs/filters/php/entries.rb b/lib/docs/filters/php/entries.rb index 1863127c..c74b8459 100644 --- a/lib/docs/filters/php/entries.rb +++ b/lib/docs/filters/php/entries.rb @@ -94,7 +94,7 @@ module Docs end def get_type - return 'Language Reference' if subpath.start_with?('language.') + return 'Language Reference' if subpath.start_with?('language.') || subpath.start_with?('functions.') return 'PCRE Reference' if subpath.start_with?('regexp.') type = at_css('.up').content.strip diff --git a/lib/docs/scrapers/php.rb b/lib/docs/scrapers/php.rb index d861630c..ed8ec6e3 100644 --- a/lib/docs/scrapers/php.rb +++ b/lib/docs/scrapers/php.rb @@ -4,7 +4,7 @@ module Docs self.name = 'PHP' self.type = 'php' - self.release = 'up to 7.0.5' + self.release = 'up to 7.0.7' self.base_url = 'https://secure.php.net/manual/en/' self.root_path = 'index.html' self.initial_paths = %w( @@ -36,7 +36,7 @@ module Docs options[:only_patterns] = [ /\Alanguage\./, /\Aclass\./, - /\Afunction\./, + /\Afunctions?\./, /\Acontrol-structures/, /\Aregexp\./, /\Areserved\.exceptions/,