[generate-docc-reference] [GSoC 2025] Separate DocC Pages for Each Command
メンテナーはふだん 3 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
- issue の種類
- 機能追加
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- swift
- 領域
- cli, documentation
調査の方向性
既存の generate-docc-reference プラグインと、メインコマンド用の記事を現在生成している仕組みから始めてください。構造を定義する前に issue #721 と #722 を読んでください。完了の条件は、コマンド、フラグ、オプション、引数それぞれに個別のページとディレクトリがあり、提案されているメタデータファイルとカテゴリ分けが用意されていることです。
索引モデルが issue の本文から書いたものです。
説明
Description
We’ve recently integrated the generate-docc-reference plugin into the SwiftArgumentParser project. One of the key improvements outlined in our project goals is to refine this plugin, enabling it to generate separate documentation pages for each command and organize them into a well-structured set of files. For now the plugin only generates an article for the main command. As articles are considered good for communicating the general purpose and overview of the project, we should create seperate pages for each command to get low level on explanations and how things work.
Proposed Structure
We can follow the structure below in order to expand our documentation generation further.
High Level Overview of the Structure
-
Separation of Command Documentation
The documentation will be split into individual pages for each command, with each page covering the details of the command, its flags, options, and arguments. This will provide clear, in-depth explanations for every command, rather than a single generic overview. -
Hierarchical File Structure
We will adopt a folder-based structure where each command, flag, option, and argument has its own dedicated markdown file. If a command has subcommands, they will also be structured into their own folders and documented similarly, ensuring clarity for users with more complex command-line tools. -
Metadata Categorization
To maintain organization, metadata will be added to each markdown file, categorizing them as command, flag, option, or argument. This will help categorize the components and provide meaningful context for users when navigating the documentation. -
Metadata Files
Relevant JSON files, such as topics.json, will be included in the root directory to define the overall structure of the documentation catalog.
Next Steps
- Since the contribution guidelines encourage small improvements and changes, we can start by creating directories and separate files for each command.
- Then we can create documents for argument, options and flags, listing all related properties to the command.
- Next, we can proceed to add the root metadata files like topics.json for the documentation catalog.
- Finally, we can focus on structuring the metadata for the arguments, options, and flags for each command.
- Then we can get low level and design the structure of our documentation files by solving the mentioned issues below:
- 主要言語
- Swift
- スター
- 3.8k
- フォーク
- 436
- 平均マージ
- 4日 11時間
- マージ済み PR(30日)
- 2
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
apple/swift-argument-parser のほかの issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apple/swift-argument-parser#1007 ·
メンテナーはふだん 3 日以内に返信
-
Tool tests fail under the Swift Build build system because `generate-manual` & `generate-docc-reference` are not built対応中かも @rgoldberg が 23 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
apple/swift-argument-parser#995 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Consider making `String.wrapped()` and `Platform.terminalWidth` public対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
apple/swift-argument-parser#973 · コメント 1 件 ·
メンテナーはふだん 3 日以内に返信
-
Include hidden args in completion scripts対応中かも @Galileo927 が 181 日前に担当しました。 オープンgood first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
apple/swift-argument-parser#733 · コメント 7 件 ·
メンテナーはふだん 3 日以内に返信
-
Shared `@OptionGroup` flag is rejected after a subcommand when the root has a passthrough `defaultSubcommand`対応中かも @sean0407 が 22 日前に担当しました。 オープン
難易度 4/5 1〜2日 初心者へのやさしさ 48/100
apple/swift-argument-parser#994 ·
メンテナーはふだん 3 日以内に返信
apple/swift-argument-parser の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
Ebullioscopic/Atoll#930 ·
メンテナーはふだん 2 日以内に返信
-
area:development bug triage:needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vburojevic/hermes#123 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 70/100
jaywcjlove/awesome-mac#4631 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Muesli-HQ/muesli#764 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Dynamic Island: "Tools" and "Files" are the Quick panel and the Shelf under other names対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
vorssaint/vorssaint-utils#4162 ·
メンテナーはふだん 2 日以内に返信