[Feature]: Versioned documentation for vfox.dev

Abierto
#764 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
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
15/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
github-actions, markdown

Línea de trabajo

Start with docs/.vitepress, which has no version switcher, and .github/workflows/documentation.yml, which rebuilds the site from main on every push touching docs/**. Use docs/usage/core-commands.md and the vfox link change in #736 as the example of a command newer than the latest release. This is a design question, so the first step is agreeing on an option and the open questions with maintainers, not writing code. Done means a chosen approach, with the release-snapshot and zh-hans questions answered.

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

Descripción

documentation enhancement help wanted

Related to #750.

1. Your usage scenarios?

vfox.dev has a single set of pages, and it always describes the newest code on main. There are no versioned docs, so a user on an older release cannot find the docs that match the release they installed.

#750 is an example of this:

  • vfox link, vfox alias and vfox doctor were merged in #736 on 2026-10-22 and first shipped in v1.1.0 on 2026-11-07. The vfox link docs landed in the same merge (docs/usage/core-commands.md). The docs site is rebuilt from main on every push that touches docs/** (.github/workflows/documentation.yml), so from 2026-10-22 to 2026-11-07 it documented vfox link while the latest release, v1.0.13, did not have it. v1.0.13 contains no cmd/commands/link.go, and its docs/usage/core-commands.md does not mention vfox link.
  • Nothing on the site says which release a command, option or config key needs.

Every new release will repeat this: the newest docs describe features that users on the previous release do not have.

ShardingSphere's docs (https://shardingsphere.apache.org/document/current/en/overview) have a version dropdown with current and one path per release (/document/5.5.3/en/overview/, /document/5.5.2/..., down to 1.0.0). docs/.vitepress in this repo has no version switcher. I could not find an earlier issue about versioned docs.

2. What is your expected outcome?

Options for discussion:

  1. Version selector with per-release snapshots. Build the docs of each release tag into its own path (for example vfox.dev/v1.1/). The unversioned URLs show the latest release, and main is published under a separate path such as /next/, labelled as unreleased.
  2. "Available since" notes. Mark each command, option and config key with the release that introduced it. This is smaller and needs no snapshots, but it does not show older behaviour.
  3. Both: notes first, snapshots later.

Questions for maintainers:

  • Which releases get a snapshot: all of them, or only the latest few minor versions?
  • How should snapshots be built: from each release tag's docs/ in CI, or committed to a separate branch?
  • Should docs/zh-hans get the same versions and selector?
  • Which option should come first?
Lenguaje dominante
Go
Estrellas
4k
Forks
177
Merge medio
1 d 20 h
PR fusionados (30 d)
31

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 version-fox/vfox

Todos los issues de version-fox/vfox

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.