[Feature]: Versioned documentation for vfox.dev

オープン
#764 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
15/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, markdown

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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?
主要言語
Go
スター
4k
フォーク
177
平均マージ
1日 20時間
マージ済み PR(30日)
31

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

version-fox/vfox のほかの issue

version-fox/vfox の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。