ionic-team / ionic-team/ionic-cli

Add component option to docs command

未關閉
#4,897 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
triage
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

I started writing my own CLI utility to do this but if the team would be open to adding this I would love to send a PR.

Basically, I would like to add a `component`/`-c` option to the `ionic docs` command that would open the relevant component directly in the documentation. For example, running:

```
ionic docs -c button
```

would open:

```
https://ionicframework.com/docs/api/badge
```

貢獻指南

開啟貢獻指南

研究方向

Start at the `ionic docs` command implementation and trace how its arguments are parsed and how documentation URLs are opened. Clarify whether `-c button` should resolve to the Button component or the example URL's Badge component, then add the option and verify the resulting URL through the command's existing tests or manual invocation.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
cli
Issue 類型
功能
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。