Show the whole 404 page in Russian for missing pages under /ru/
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript
- Área
- internationalization
Línea de trabajo
Start with src/theme/NotFound/Content/index.js and i18n/ru/code.json to see how the 404 texts are already switched to Russian in the browser. Then find where the root 404.html is served for /ru/ paths and compare it with the built /ru/404.html. Done means a missing /ru/ URL shows a fully Russian page, with a Russian navbar, footer and links, and the choice between the two proposed approaches is recorded in the thread first.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Problem
GitHub Pages serves only the root 404.html for every missing path, and ignores 404.html files in subfolders. The root 404.html belongs to the default (English) build, so a broken link under /ru/, for example https://docs.lsfusion.org/ru/404/ or https://docs.lsfusion.org/ru/development_manual/, opens the English 404 page. The Russian page that Docusaurus builds at https://docs.lsfusion.org/ru/404.html is never used for such links.
The texts of the 404 page are now switched to Russian on these paths: src/theme/NotFound/Content/index.js takes them from i18n/ru/code.json in the browser. The rest of the page still comes from the English build:
- the navbar and the footer are in English;
- their links lead to the English pages, for example
Learnleads to/instead of/ru/.
Possible solutions
- On a path under
/ru/, redirect the root 404 page to/ru/404.html. The page becomes fully Russian, but the address bar shows/ru/404.htmlinstead of the broken URL. - On a path under
/ru/, load/ru/404.htmland replace the current document with it, keeping the URL. The page becomes fully Russian and the broken URL stays visible, but this relies on non-standard behaviour of a Docusaurus page and needs to be checked again after Docusaurus upgrades.
- Lenguaje dominante
- JavaScript
- Estrellas
- 2
- Forks
- 4
- Métricas de merge de PR
- Sin PR fusionados en 30 d
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 lsfusion/docusaurus
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 45/100
lsfusion/docusaurus#13 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
lsfusion/docusaurus#12 ·
-
Use .mdx extension for documentsAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
lsfusion/docusaurus#2 ·
Todos los issues de lsfusion/docusaurus
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
Los mantenedores suelen responder en 1 día
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client areaPosiblemente ocupada @lijy91 la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
libnativeapi/nativeapi#53 · 1 reacción ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
KilledByAPixel/LittleJS#188 ·
-
[workshop-sync] workshop/06-install-gh-aw.md: outdated version example and gh aw init file listAbiertodocumentation
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
githubnext/gh-aw-workshop#6053 ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
JuliusBrussee/caveman#1567 ·
Los mantenedores suelen responder en 1 día