Make table of contents floating and highlight current section

Abierto
#14,075 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
35/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Área
frontend

Línea de trabajo

The issue names no files or tests, so start by finding where the blog post template renders its table of contents and how the page layout is structured. The request is a sticky or floating TOC that highlights the section currently in view, which is a design decision, so confirm the scope with maintainers first. Done means the TOC stays visible while reading and marks the active section; the extra tree, time-to-read and share features need separate agreement.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

blog d.enhancement from.team infra.design p2-medium
Describe the problem

Blog post table of contents is inlined and collapse at the top of the post. It is therefore not usable when reading the post.

image
Expected fix

Would love to see a floating table of contents for blog posts.

My favorite example of these has got to be Claude's blog, it includes a tree that auto-expands to the current section, time to read, and sharing buttons.

Example

image
On which browser(s) did you experience this issue?

No response

Additional context

No response

I would like to fix this problem.
  • I will try and fix this problem on docs.flutter.dev.
Lenguaje dominante
Dart
Estrellas
3.1k
Forks
3.5k
Merge medio
2 d 10 h
PR fusionados (30 d)
88

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de flutter/website

Todos los issues de flutter/website

Issues similares

Más issues de Dart

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.