{"id":50441149,"url":"https://github.com/devlights/pkgdoc2md","last_synced_at":"2026-05-31T19:03:28.916Z","repository":{"id":352793914,"uuid":"1216653502","full_name":"devlights/pkgdoc2md","owner":"devlights","description":"pkg.go.devの特定パッケージページをMarkdownに変換するCLIツールです。LLMへのアップロード用途を想定して、ドキュメント本文のみを抽出します。","archived":false,"fork":false,"pushed_at":"2026-04-21T06:02:08.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-21T07:32:56.791Z","etag":null,"topics":["go","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devlights.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-21T05:37:05.000Z","updated_at":"2026-04-21T06:02:12.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/devlights/pkgdoc2md","commit_stats":null,"previous_names":["devlights/pkgdoc2md"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devlights/pkgdoc2md","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fpkgdoc2md","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fpkgdoc2md/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fpkgdoc2md/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fpkgdoc2md/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devlights","download_url":"https://codeload.github.com/devlights/pkgdoc2md/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devlights%2Fpkgdoc2md/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33744449,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-31T02:00:06.040Z","response_time":95,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["go","golang"],"created_at":"2026-05-31T19:03:28.179Z","updated_at":"2026-05-31T19:03:28.909Z","avatar_url":"https://github.com/devlights.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pkgdoc2md\n\n`pkg.go.dev` の特定パッケージページをMarkdownに変換するCLIツールです。  \nLLMへのアップロード用途を想定して、ドキュメント本文のみを抽出します。\n\nHTMLからMarkdownへの変換には [html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown/tree/v1.6.0) を利用しています。\n\n最新版の [html-to-markdown](https://github.com/JohannesKaufmann/html-to-markdown/tree/main) では GFM スタイルに変換するプラグインが無くなっているので、v1.6.0 を使ってます。\n\n## インストール\n\n```bash\ngo install github.com/devlights/pkgdoc2md@latest\n```\n\n## 使い方\n\n```bash\n# stdoutに出力\n./pkgdoc2md -pkg net/http\n\n# ファイルに出力\n./pkgdoc2md -pkg net/http -output net_http.md\n\n# タイムアウトを60秒に変更\n./pkgdoc2md -pkg encoding/json -output encoding_json.md -timeout 60\n\n# デバッグログを有効化\n./pkgdoc2md -pkg context -debug\n```\n\n## フラグ\n\n| フラグ      | デフォルト | 説明                                      |\n|-------------|------------|-------------------------------------------|\n| `-pkg`      | (必須)     | 変換対象のパッケージパス (例: `net/http`) |\n| `-output`   | stdout     | 出力先ファイルパス                        |\n| `-timeout`  | 30         | HTTPリクエストのタイムアウト秒数          |\n| `-debug`    | false      | デバッグログを有効化                      |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fpkgdoc2md","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevlights%2Fpkgdoc2md","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevlights%2Fpkgdoc2md/lists"}