Add docs' versions in URLs

未关闭
#6,142 1 条评论 4 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
45/100
Issue 类型
文档
描述清晰度
基本清楚
活跃度
停滞
技术栈
webpack
领域
documentation

调研方向

首先定位 webpack.js.org 中定义文档站点当前版本和 URL 路径的配置或入口点。检查版本链接和最新版本链接是如何生成的,然后验证最新的 webpack 5 版本具有稳定的 URL 形式,并且文档链接始终一致地使用该形式。

由索引模型根据 Issue 内容生成。

描述

Problem

From our source code and documentation, linking to a library's "latest" docs may fail after a while, because the version has changed, and possibly that link may not even exist anymore. So it's best practice to link to a specific version.

So for example, it's better to link to https://webpack.js.org/v5/concepts/#entry than to https://webpack.js.org/concepts/#entry or https://webpack.js.org/latest/concepts/#entry, etc.

The docs site however only has implicit "latest", and v4 is on a different subdomain.

The latest version is 5.x.x, and we can't link to it.

Solution

Please add the "latest" version as well, e.g. "5.72.1". If that would get burdensome to update each time, then just "5.x.x" or "5" or "v5" would be fine too.

主要语言
MDX
星标
2.3k
派生
3.4k
平均合并
22 小时 59 分钟
30 天内合并 PR
22

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

webpack/webpack.js.org 的其他 Issue

查看 webpack/webpack.js.org 的全部 Issue

相似的 Issue

更多 Documentation Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。