Forráskód Böngészése

Update PHP documentation (8.1)

Simon Legner 4 éve
szülő
commit
57865a64ad

+ 1 - 1
assets/javascripts/templates/pages/about_tmpl.coffee

@@ -643,7 +643,7 @@ credits = [
     'https://raw.githubusercontent.com/phoenixframework/phoenix/master/LICENSE.md'
   ], [
     'PHP',
-    '1997-2018 The PHP Documentation Group',
+    '1997-2021 The PHP Documentation Group',
     'CC BY',
     'https://secure.php.net/manual/en/copyright.php'
   ], [

+ 2 - 2
docs/file-scrapers.md

@@ -173,13 +173,13 @@ bsdtar xf pandas.zip
 ```
 
 ## PHP
-Click the link under the "Many HTML files" column on https://www.php.net/download-docs.php, extract the tarball, change its name to `php` and put it in `/path/to/devdocs/docs/`.
+Click the link under the "Many HTML files" column on https://www.php.net/download-docs.php, extract the tarball, change its name to `php` and put it in `docs/`.
 
 Or run the following commands in your terminal:
 
 ```sh
 curl https://www.php.net/distributions/manual/php_manual_en.tar.gz > php.tar; \
-tar -xf php.tar; mv php-chunked-xhtml/ path/to/devdocs/docs/php/
+tar -xf php.tar; mv php-chunked-xhtml/ docs/php/
 ```
 ## Python 3.6+
 

+ 2 - 2
lib/docs/scrapers/php.rb

@@ -5,7 +5,7 @@ module Docs
 
     self.name = 'PHP'
     self.type = 'php'
-    self.release = '8.0'
+    self.release = '8.1'
     self.base_url = 'https://www.php.net/manual/en/'
     self.root_path = 'index.html'
     self.initial_paths = %w(
@@ -62,7 +62,7 @@ module Docs
     options[:skip_patterns] = [/mysqlnd/, /xdevapi/i]
 
     options[:attribution] = <<-HTML
-      &copy; 1997&ndash;2020 The PHP Documentation Group<br>
+      &copy; 1997&ndash;2021 The PHP Documentation Group<br>
       Licensed under the Creative Commons Attribution License v3.0 or later.
     HTML