(Documentation) PHP download of Many Html .tar.gz has JS hardcoded to php-chunked-xhtml dir
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 55/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Tranquilo
- Stack tecnológico
- javascript, php
- Área
- documentation, frontend
Línea de trabajo
Descarga y extrae https://www.php.net/distributions/manual/php_manual_en.tar.gz, cambia el nombre del directorio php-chunked-xhtml e inspecciona el JavaScript incluido que utiliza el control Search del manual. Reproduce el bloqueo del cuadro de búsqueda después de cambiar el nombre del directorio y verifica que la búsqueda y el cierre funcionen desde un nombre de directorio base arbitrario.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- PHP
- Estrellas
- 1.1k
- Forks
- 641
- Merge medio
- 22 h 36 min
- PR fusionados (30 d)
- 16
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de php/web-php
-
Bug Status: Needs Triage
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
-
Page: downloads
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
-
Page: downloads
Dificultad 3/5 1-2 días Aptitud para principiantes 62/100
-
Bug Status: Needs Triage
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
Bug Status: Needs Triage
Dificultad 4/5 3-5 días Aptitud para principiantes 50/100
Todos los issues de php/web-php
Issues similares
-
priority: p3
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
googleapis/librarian#7636 ·
-
0. Needs triage bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nextcloud/fulltextsearch#1011 ·
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
coollabsio/coolify#11927 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100