[Feature]: Versioned documentation for vfox.dev

Open
#764 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
15/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
github-actions, markdown

Research direction

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.

Written by the indexing model from the issue text.

Description

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?
Dominant language
Go
Stars
4k
Forks
177
Avg merge
1d 20h
Merged PRs (30d)
31

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from version-fox/vfox

All issues in version-fox/vfox

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.