Categorizing guides, plugins, loaders, etc.

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
20/100
Issue 类型
文档
描述清晰度
需要澄清
活跃度
停滞
领域
documentation

调研方向

从文档侧边栏、API 页面现有的分组方式,以及 issue 中提到的 loaders、plugins 和 guides 索引页面开始。检查可用的 frontmatter group 选项,并在进行更改之前提出分类和页面分配方案。完成的标准是各分组达成一致,并且侧边栏以不那么令人不知所措的结构呈现这些页面,同时不更改 permalinks。

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

描述

Request for Comments

There're so many guides, plugins and loaders listed in the sidebar now, and it's sort of overwhelming for users, especially new users of webpack.

One thing I've been thinking about is that we can categorize them like what we have done with the API page:

It's just a small change, but it would improve user experience a lot. Also there's already a group option we can use in the frontmatter, so that change won't be difficult.

Problem to solve

If we all agree the aforementioned change is necessary, now we have a problem to solve: How many groups should we have, and which page belongs to which group?

Loaders

It should be easy to handle loaders as there're already groups in its index page https://webpack.js.org/loaders/:

We can reuse them or even make changes when necessary.

Plugins

We might not be able to categorize plugins just like what we did to loaders, here's my proposal, we can use three groups to categorize them:

  1. webpack: plugins defined under webpack namespace
  2. webpack-contrib: plugins developed under webpack-contrib
  3. others: other webpack plugins
Guides

This would be the most difficult part, but I think it's possible.

As there're too many potential topics under guides, we might categorize them based on the users' level of webpack, for example:

  1. Quick start for webpack beginners
  2. Intermediate
  3. Advanced topics like https://webpack.js.org/guides/package-exports/ which common users won't care
  4. Any other suggestion?

Cons?

No permalink would be changed because of the aforementioned change, we just upgrade the sidebar, so I believe there's no cons. But do let me know if you think there're.

主要语言
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 摘要。