[CleanRepo]: Images for image hyperlinks flagged as orphans
Los mantenedores suelen responder en 1 día
@gewarren ya está trabajando en esto.
Desde el 3/12/2024.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
Clean Repo seems to be flagging images incorrectly as orphaned for image hyperlinks. The image used to display for the image hyperlink is fine but in the case of an image hyperlink, the resulting image the hyperlink retrieves on a click is determined to be orphaned in the report.
Severity:
In the old aspnetdocs repo we had over 3000 image hyperlinks which Clean Repo flagged incorrectly as orphaned. However, I don't think image hyperlinks are used as much like this in other repos,
It used to be years ago, that two images were provided for screenshot image hyperlinks for our docs. One larger and one smaller and the smaller one was used as the link itself. Clicking on the screenshot or whatever the image was of, resulted in a larger version of the image being retrieved and displayed.
Recreating the issue:
- Run the latest version of Clean Repo available today 8/20/24 in release mode.
- Run the option for orphaned images:
CleanRepo.exe --orphaned-images - Provide the details for a local cloned copy of the aspnetdocs repo.
- Specify to not delete the images to get the report of orphaned images that incorrectly includes images referred to by image hyperlinks. (Also choosing to delete images results in incorrectly deleting images that should not be deleted.)
Results:
The list of images returned as orphaned will include the image from the image link used for the full image that is returned when the link is clicked.
Example:
In a link like the following, external-authentication-services/_static/image25.png would be determined incorrectly to be orphaned:
[](external-authentication-services/_static/image25.png)
This example image link can be found in this .md article example [here].https://raw.githubusercontent.com/dotnet/AspNetDocs/main/aspnet/web-api/overview/security/external-authentication-services.md)
It does not matter if tooltip text exists in the hyperlink or not. Same incorrect results.
Some helpful regex that could be used to find these cases:
In case you were interested here is regex I used to find examples of image hyperlinks with or without tooltip text in them:
Find image hyperlinks with tooltip text not in them:
\[!\[.*?\]\(.*?\)\]\(.*?\)
Find image hyperlinks with tooltip text in them:
\[!\[.*?".*?"\)\]\(.*?\)
- Lenguaje dominante
- C#
- Estrellas
- 27
- Forks
- 43
- Merge medio
- 17 h 41 min
- PR fusionados (30 d)
- 19
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
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 dotnet/docs-tools
-
[Sequester] Improve command line grammarQuizá libre de nuevo @BillWagner la tomó hace 299 días y no hay ningún pull request abierto. Abierto:pushpin: seQUESTered
dotnet/docs-tools#611 · 4 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
dotnet/docs-tools#572 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
dotnet/docs-tools#571 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
dotnet/docs-tools#570 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
dotnet/docs-tools#534 ·
Los mantenedores suelen responder en 1 día
Todos los issues de dotnet/docs-tools
Issues similares
-
documentation
Dificultad 1/5 1-3 horas Aptitud para principiantes 62/100
-
bug misleading tooling trivial
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
Los mantenedores suelen responder en 1 día
-
Docs example projects pinned to a literal library version instead of 3.*Posiblemente ocupada @DaveSkender la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
facioquo/stock-indicators-dotnet#2372 ·
Los mantenedores suelen responder en 1 día
-
[Docs] officecli-docx SKILL.md still describes `\n` as a soft line break after #262Posiblemente ocupada @giprime la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Facepunch/sbox-public#12097 ·
Los mantenedores suelen responder en 2 días