`docindex`: no way to create a collapsible-only (no target) TOC node; empty links open a directory listing in the web-based Help Browser
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 59/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- matlab, xml
- Área
- documentation, tooling
Línea de trabajo
Start by reading resources/helptoc.xsl and trace how docindex turns an empty Markdown link into a tocitem target. Check how the web-based Help Browser handles targetless nodes; the issue notes the Java-based behavior is unverified. Done when a section with children can expand and collapse without opening a directory listing or duplicating the child page’s selection and dropdown indicators.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
In helptoc.md, a section header that should only group child pages is usually written with an empty link:
* [Overview](Overview.md)
* [Getting Started]()
* [Setup](Setup.md)
docindex transforms this with resources/helptoc.xsl, which always emits target="{a/@href}":
<tocitem target="Overview.html">Overview
<tocitem target="">Getting Started
<tocitem target="Setup.html">Setup</tocitem>
The web-based Help Browser (default from 24b) handle target="" badly: clicking the node navigates to the doc folder itself and shows a directory listing. I think Java-based Help Browser rendered the same node as a collapsible folder, which is the desired behavior, but I haven't been able to verify this.
Current workaround: link each section header to its first child page, e.g.:
* [Overview](Overview.md)
* [Getting Started](Setup.md)
* [Setup](Setup.md)
This works by stopping the directory listing, but it has visible side effects in the web-based Help Browser:
- Double selection highlight: when the page is open, the section header (Getting Started) and its first child (Setup) are both highlighted in blue, because they point to the same target.
- Extra dropdown on the child: the first child (Setup) now shows an expand/collapse dropdown arrow, as though it had children of its own. It's a leaf page.
- The header is no longer a pure folder: clicking it opens a page instead of just expanding or collapsing.
See the screenshot below showing this result after the workaround:
- Lenguaje dominante
- MATLAB
- Estrellas
- 10
- Forks
- 3
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la 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 mathworks/docmaker
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Provide a docinit functionaliyQuizá libre de nuevo @k-deeley la tomó hace 42 días y no hay ningún pull request abierto. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
-
Dificultad 3/5 1-2 días Aptitud para principiantes 48/100
-
No local converter optionPosiblemente ocupada @k-deeley la tomó hace 13 días. Abiertoenhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
Token bug in converter.mPosiblemente ocupada @k-deeley la tomó hace 20 días. Abiertobug
Todos los issues de mathworks/docmaker
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 69/100
UniprJRC/DSwithMATLAB#232 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
Los mantenedores suelen responder en 1 día
-
windows clang 20 warnings buildAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
wissem01chiha/slxio#51 ·
-
census digest: print a denominator for EDGE-FAMILY CARDINALITY VIOLATIONS (did-schema OPEN_WORK #79)AbiertoV2
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
VH-Lab/DID-matlab#399 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
VH-Lab/NDI-matlab#1183 ·
Los mantenedores suelen responder en 1 día