(Documentation) PHP download of Many Html .tar.gz has JS hardcoded to php-chunked-xhtml dir
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- javascript, php
- Lĩnh vực
- documentation, frontend
Hướng nghiên cứu
Tải xuống và giải nén https://www.php.net/distributions/manual/php_manual_en.tar.gz, đổi tên thư mục php-chunked-xhtml và kiểm tra JavaScript đi kèm được control Search của tài liệu sử dụng. Tái hiện tình trạng hộp tìm kiếm bị kẹt sau khi đổi tên thư mục, sau đó xác minh rằng việc tìm kiếm và đóng hoạt động từ một tên thư mục cơ sở bất kỳ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Affected Page URL
https://www.php.net/distributions/manual/php_manual_en.tar.gz
Describe the bug
This is an oddity. I always download the many html tar-gzipped archive and host locally under phpdoc. When installing the current documentation the archive extracts to ./php-chunked-xhtml/. If you rename that directory, then choosing "Search" leaves a non-function search-box stuck at the bottom of the screen that cannot be closed with the [x] button displayed or Esc as displayed below text-search box.
Restoring the original extraction directory name to ./php-chunked-xhtml/ restores the javascript functionality.
This was surprising as all functionality should be relative to the siteroot, not hardcoded based on the base directory in the archive.
Steps to reproduce
- download https://www.php.net/distributions/manual/php_manual_en.tar.gz
- extract to a directory accessible on your web server
- rename the directory to something convenient to remember, e.g.
mv php-chunked-xhtml somedir - access the manual through
somedir - click search
- now try and use search or try and get rid of the search box and notation at the bottom of the page
Expected behavior
The documentation and javascript shipped with it should work regardless of the name used for the base directory. A functionality should be relative to that base directory regardless of what it is called.
Screenshots
Not Relevant
Additional context
This is a minor documentation issue, but surprising in documentation shipped by PHP. If you need more information, just ask and I'm happy to provide it, but this is pretty simple.
- Ngôn ngữ chính
- PHP
- Star
- 1.1k
- Fork
- 641
- Merge trung bình
- 22 giờ 36 phút
- Pull request đã merge (30 ngày)
- 16
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của php/web-php
-
Bug Status: Needs Triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Page: downloads
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
-
Page: downloads
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 62/100
-
Bug Status: Needs Triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Bug Status: Needs Triage
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
Issue tương tự
-
priority: p3
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nextcloud/fulltextsearch#1011 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
coollabsio/coolify#11927 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100