[Feature]: Versioned documentation for vfox.dev

Đang mở
#764 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
15/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, markdown
Lĩnh vực
ci-cd, documentation

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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?
Ngôn ngữ chính
Go
Star
4k
Fork
177
Merge trung bình
1 ngày 20 giờ
Pull request đã merge (30 ngày)
31

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của version-fox/vfox

Tất cả issue của version-fox/vfox

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.