diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 1fc83a3..fc0788b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -8,7 +8,7 @@ pip install pre-commit ``` - For more information, see [pre-commit installation]( + For more information, see [pre-commit installation](https://pre-commit.com/#installation). 2. Install the git hook scripts: @@ -20,7 +20,7 @@ ## Adding a new item -- Try to fit your item into an existing sections. Open a suggestion to start as discussion about any new sections. +- Try to fit your item into an existing section. Open a suggestion to start a discussion about any new sections. - Make an individual pull request for each suggestion. - Add a new item to the bottom of the list in a section. - If a duplicate item exists, discuss why the new item should replace it. diff --git a/README.md b/README.md index 944e89c..6b1a91f 100644 --- a/README.md +++ b/README.md @@ -53,7 +53,7 @@ Translations available in: [🇨🇳 中文](README_zh.md) Step-by-step instructions to teach users how to use or implement the subject or tool. -- [Tutorial](https://documentation.divio.com/tutorials.html) - Lean how to write good tutorials from The Documentation System. +- [Tutorial](https://documentation.divio.com/tutorials.html) - Learn how to write good tutorials from The Documentation System. - [Tutorial template](https://gitlab.com/tgdp/templates/-/blob/main/tutorial/template-tutorial.md) - Open-source template provided by The Good Docs Project. - [Writing a perfect technical tutorial](https://www.writethedocs.org/videos/portland/2021/writing-a-perfect-technical-tutorial-jessica-garson/) - How to start creating tutorials, gather feedback, and the next steps once the tutorial is published. - [Example: Build your first Astro Blog](https://docs.astro.build/en/tutorial/0-introduction/) - A well-structured and good-looking tutorial that covers Astro's key features by building a fully-functioning blog, from zero to full launch. @@ -62,7 +62,7 @@ Step-by-step instructions to teach users how to use or implement the subject or Provides detailed information and specifications for all features and functionalities. -- [Reference guides](https://documentation.divio.com/reference.html) - Lean how to write good reference guides from The Documentation System. +- [Reference guides](https://documentation.divio.com/reference.html) - Learn how to write good reference guides from The Documentation System. - [Reference template](https://gitlab.com/tgdp/templates/-/blob/main/reference/template-reference.md) - Open-source template provided by The Good Docs Project. - [SDK Reference Manuals: A flow-based approach](https://www.writethedocs.org/videos/portland/2019/sdk-reference-manuals-a-flow-based-approach-chris-bush/) - Give users of SDK reference docs a quick, enjoyable, user-oriented experience. @@ -110,7 +110,7 @@ Assist users in understanding and navigating the features and functionalities of - [Example: HTML Sanity Checker](https://hsc.aim42.org/documentation/hsc_arc42) - Verbose example for the documentation of a Gradle plugin, created by Dr. Gernot Starke. - [Example: biking](https://biking.michael-simons.eu/docs/index.html) - A real world example for a bike activity tracker, created by Michael Simons. - [Example: arc42 + C4 model](https://github.com/bitsmuggler/arc42-c4-software-architecture-documentation-example) ![GitHub Repo stars](https://img.shields.io/github/stars/bitsmuggler/arc42-c4-software-architecture-documentation-example) - Shows how to use arc42 in combination with the C4 model with the Documentation as Code technique. - - [docToolchain](https://github.com/doctoolchain/doctoolchainb) ![GitHub Repo stars](https://img.shields.io/github/stars/doctoolchain/doctoolchainb) - An implementation of the docs-as-code approach for software architecture, which use arc42 as template. + - [docToolchain](https://github.com/doctoolchain/doctoolchain) ![GitHub Repo stars](https://img.shields.io/github/stars/doctoolchain/doctoolchain) - An implementation of the docs-as-code approach for software architecture, which use arc42 as template. - [The Ultimate Guide To Software Architecture Documentation](https://www.workingsoftware.dev/software-architecture-documentation-the-ultimate-guide/) - Write, structure, visualize and manage software architecture documentation in a lean way using appropriate documentation tools, including arc42. - [C4 model](https://c4model.com) - The C4 model for visualizing software architecture using Context, Containers, Components, and Code. @@ -160,7 +160,7 @@ Assist users in understanding and navigating the features and functionalities of - [GitHub GraphQL API documentation](https://docs.github.com/en/graphql) - A great real world example of GraphQL API from GitHub. - [SpectaQL](https://github.com/anvilco/spectaql) ![GitHub Repo stars](https://img.shields.io/github/stars/anvilco/spectaql) - A Node.js library that generates static documentation for a GraphQL schema. - [GraphQLDocs](https://github.com/brettchalupa/graphql-docs) ![GitHub Repo stars](https://img.shields.io/github/stars/brettchalupa/graphql-docs) - Ruby library and CLI for easily generating beautiful documentation from your GraphQL schema. -- [Magidoc](https://github.com/magidoc-org/magidoc) ![GitHub Repo stars](https://img.shields.io/github/stars/magidoc-org/magidoc) - A a JavaScript library that auto-generates static documentation from any GraphQL schema. +- [Magidoc](https://github.com/magidoc-org/magidoc) ![GitHub Repo stars](https://img.shields.io/github/stars/magidoc-org/magidoc) - A JavaScript library that auto-generates static documentation from any GraphQL schema. - [xyd](https://xyd.dev/docs/guides/graphql) - Generate scalable API Docs from GraphQL schema easier. #### gRPC @@ -178,7 +178,7 @@ Assist users in understanding and navigating the features and functionalities of - [Async API Generator](https://github.com/asyncapi/generator) ![GitHub Repo stars](https://img.shields.io/github/stars/asyncapi/generator) - Use AsyncAPI definition to generate literally anything, including Markdown documentation and HTML documentation. - [AsyncAPI React Component](https://github.com/asyncapi/asyncapi-react) ![GitHub Repo stars](https://img.shields.io/github/stars/asyncapi/asyncapi-react) - Rendering documentation from your specification in real-time in the browser. -- [Petstore Kafka](https://github.com/swagger-api/petstore-kafka?tab=readme-ov-file#openapi-and-asyncapi) ![GitHub Repo stars](https://img.shields.io/github/stars/swagger-api/petstore-kafka?tab=readme-ov-file#openapi-and-asyncapi) - A functional example for describing with AsyncAPI and OpenAPI. +- [Petstore Kafka](https://github.com/swagger-api/petstore-kafka?tab=readme-ov-file#openapi-and-asyncapi) ![GitHub Repo stars](https://img.shields.io/github/stars/swagger-api/petstore-kafka) - A functional example for describing with AsyncAPI and OpenAPI. #### RAML @@ -246,7 +246,7 @@ README files are a staple of any code project. They provide the first introducti - [Dokka](https://github.com/Kotlin/dokka) ![GitHub Repo stars](https://img.shields.io/github/stars/Kotlin/dokka) - An API documentation engine for Kotlin. - Go - [Go Doc Comments](https://go.dev/doc/comment) - Extract documentation from Go source code. - - [Swag](https://github.com/swaggo/swag) ![GitHub Repo stars](https://img.shields.io/github/stars/swaggo/swag) - Cconverts Go annotations to Swagger Documentation 2.0. + - [Swag](https://github.com/swaggo/swag) ![GitHub Repo stars](https://img.shields.io/github/stars/swaggo/swag) - Converts Go annotations to Swagger Documentation 2.0. - Rust - [Rustdoc](https://doc.rust-lang.org/nightly/rustdoc/) - Generate documentation for Rust projects. - [Docs.rs](https://github.com/rust-lang/docs.rs) ![GitHub Repo stars](https://img.shields.io/github/stars/rust-lang/docs.rs) - An open source project to host documentation of crates for the Rust Programming Language. @@ -311,7 +311,7 @@ README files are a staple of any code project. They provide the first introducti - [MediaWiki](https://github.com/wikimedia/mediawiki) ![GitHub Repo stars](https://img.shields.io/github/stars/wikimedia/mediawiki) - A free and open-source wiki software package written in PHP. It serves as the platform for Wikipedia and the other Wikimedia projects. - [DokuWiki](https://github.com/dokuwiki/dokuwiki) ![GitHub Repo stars](https://img.shields.io/github/stars/dokuwiki/dokuwiki) - A simple to use and highly versatile Open Source wiki software that doesn't require a database. - [Gollum](https://github.com/gollum/gollum) ![GitHub Repo stars](https://img.shields.io/github/stars/gollum/gollum) - A simple wiki system built on top of Git. -- [VimWiki](https://github.com/vimwiki/vimwiki) ![GitHub Repo stars](https://img.shields.io/github/stars/vimwiki/vimwiki) - A a personal wiki for Vim, which can be used to write documentation. +- [VimWiki](https://github.com/vimwiki/vimwiki) ![GitHub Repo stars](https://img.shields.io/github/stars/vimwiki/vimwiki) - A personal wiki for Vim, which can be used to write documentation. - [GitHub Wiki](https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis) - [Awesome GitHub Wikis](https://github.com/MyHoneyBadger/awesome-github-wiki) ![GitHub Repo stars](https://img.shields.io/github/stars/MyHoneyBadger/awesome-github-wiki) - A curated list of awesome GitHub Wikis, including examples, tips and tricks. - [Federated Wiki](https://www.wikiwand.com/en/Federated_Wiki) @@ -409,7 +409,7 @@ from project plans, to specs and process documentation. ### Examples -- [Beautiful Docs](https://github.com/matheusfelipeog/beautiful-docs.git) ![GitHub Repo stars](https://img.shields.io/github/stars/matheusfelipeog/beautiful-docs.git) - Pointers to useful, well-written, and otherwise beautiful documentation. +- [Beautiful Docs](https://github.com/matheusfelipeog/beautiful-docs) ![GitHub Repo stars](https://img.shields.io/github/stars/matheusfelipeog/beautiful-docs) - Pointers to useful, well-written, and otherwise beautiful documentation. - [Awesome Open Source Documents](https://github.com/44bits/awesome-opensource-documents) ![GitHub Repo stars](https://img.shields.io/github/stars/44bits/awesome-opensource-documents) - A curated list of awesome open source or open source licensed documents, guides, books. - [Awesome Documentation | vipulgupta2048](https://github.com/vipulgupta2048/awesome-documentation) ![GitHub Repo stars](https://img.shields.io/github/stars/vipulgupta2048/awesome-documentation) - A curated list of awesome real-life documentation examples. - [9 Great API and Developer Documentation Examples](https://everydeveloper.com/developer-documentation-examples/) - Cover common areas of documentation, plus some areas you might not typically see called docs. diff --git a/README_zh.md b/README_zh.md index 35d10c3..a293692 100644 --- a/README_zh.md +++ b/README_zh.md @@ -3,7 +3,7 @@ TODO: - 自动翻译英文版变更内容,并同步到中文版 --> -# Awesome Documentation [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) [![Lint](https://github.com/pengqun/awesome-documentation/actions/workflows/action.yml/badge.svg)](https://github.com/pengqun/awesome-documentation/actions/workflows/action.yml) +# Awesome Documentation [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) [![Lint](https://github.com/pengqun/awesome-documentation/actions/workflows/lint.yml/badge.svg?branch=main)](https://github.com/pengqun/awesome-documentation/actions/workflows/lint.yml) > 一份关于软件文档模板、工具、指南和示例的精选资源列表(持续更新中)。 @@ -11,7 +11,7 @@ TODO: 本列表期望能为改善文档效率和质量提供一些帮助,包括提供开箱即用的模板、实用的文档工具、有洞察的文档指南、有广泛共识的文档标准,以及一些真实的文档案例。 -其他语言版本: [🇬🇧🇳 英语](README.md) +其他语言版本: [🇬🇧 英语](README.md) ## 内容 @@ -90,8 +90,8 @@ TODO: 协助用户直接在应用程序界面内理解和导航其功能和特性。 -- [Driver.js](https://github.com/kamranahmedse/driver.js) - 一个轻量级、无依赖的原生 JavaScript 引擎,用于引导用户关注页面的特定部分。 -- [Shepherd](https://github.com/shepherd-pro/shepherd) - 引导用户浏览您的应用程序。 +- [Driver.js](https://github.com/kamranahmedse/driver.js) ![GitHub Repo stars](https://img.shields.io/github/stars/kamranahmedse/driver.js) - 一个轻量级、无依赖的原生 JavaScript 引擎,用于引导用户关注页面的特定部分。 +- [Shepherd](https://github.com/shepherd-pro/shepherd) ![GitHub Repo stars](https://img.shields.io/github/stars/shepherd-pro/shepherd) - 引导用户浏览您的应用程序。 #### 其他 @@ -109,20 +109,20 @@ TODO: - [模板文件下载](https://arc42.org/download#format-overview) - arc42 模板的各种格式文档下载,包括 docx、asciidoc、markdown、latex、rst、html、Confluence 等。 - [示例:HTML 合法性校验器](https://hsc.aim42.org/documentation/hsc_arc42) - 由 Gernot Starke 创建的 Gradle 插件详细文档示例。 - [示例:骑行应用](https://biking.michael-simons.eu/docs/index.html) - 由 Michael Simons 创建的自行车活动跟踪器的真实世界示例。 - - [示例:arc42 + C4 模型](https://github.com/bitsmuggler/arc42-c4-software-architecture-documentation-example) - 展示了如何结合使用 arc42 与 C4 模型以及“文档即代码”技术。 - - [docToolchain](https://github.com/doctoolchain/doctoolchain) - 一种用于软件架构的“文档即代码”方法的实现,使用 arc42 作为模板。 + - [示例:arc42 + C4 模型](https://github.com/bitsmuggler/arc42-c4-software-architecture-documentation-example) ![GitHub Repo stars](https://img.shields.io/github/stars/bitsmuggler/arc42-c4-software-architecture-documentation-example) - 展示了如何结合使用 arc42 与 C4 模型以及“文档即代码”技术。 + - [docToolchain](https://github.com/doctoolchain/doctoolchain) ![GitHub Repo stars](https://img.shields.io/github/stars/doctoolchain/doctoolchain) - 一种用于软件架构的“文档即代码”方法的实现,使用 arc42 作为模板。 - [软件架构文档终极指南](https://www.workingsoftware.dev/software-architecture-documentation-the-ultimate-guide/) - 使用适当的文档工具(包括 arc42)以精益方式编写、构建、可视化和管理软件架构文档。 - [C4 模型](https://c4model.com) - 使用上下文、容器、组件和代码来可视化软件架构的 C4 模型。 - - [c4-draw.io](https://github.com/tobiashochguertel/c4-draw.io) - 一个为 draw.io 提供 C4 符号元素的 C4 建模插件。 - - [C4-PlantUML](https://github.com/plantuml-stdlib/C4-PlantUML) - 包括宏、原型以及其他好处(如 VSCode Snippets)用于使用 PlantUML 创建 C4 图表。 + - [c4-draw.io](https://github.com/tobiashochguertel/c4-draw.io) ![GitHub Repo stars](https://img.shields.io/github/stars/tobiashochguertel/c4-draw.io) - 一个为 draw.io 提供 C4 符号元素的 C4 建模插件。 + - [C4-PlantUML](https://github.com/plantuml-stdlib/C4-PlantUML) ![GitHub Repo stars](https://img.shields.io/github/stars/plantuml-stdlib/C4-PlantUML) - 包括宏、原型以及其他好处(如 VSCode Snippets)用于使用 PlantUML 创建 C4 图表。 - [C4 图表 | Mermaid](https://mermaid.js.org/syntax/c4.html) - Mermaid 的 C4 图表语法与 plantUML 兼容。 - [Structurizr](https://github.com/structurizr) - 代码化的 C4 模型 - 使用 C4 模型可视化和记录您的软件架构。 - - [C4-Builder](https://github.com/adrianvlupu/C4-Builder) - 一个轻量级的 nodejs 命令行工具,用于仅使用文本构建、维护和共享软件架构项目。 - - [C4Sharp](https://github.com/8T4/c4sharp) - 一个基于 C4 模型的 .net 库,用于编码构建图表。 - - [Goa Design - Model](https://github.com/goadesign/model) - 在 Go 中创建您的软件架构模型和图表。Model DSL 在 Go 中实现,并遵循 C4 模型。 + - [C4-Builder](https://github.com/adrianvlupu/C4-Builder) ![GitHub Repo stars](https://img.shields.io/github/stars/adrianvlupu/C4-Builder) - 一个轻量级的 nodejs 命令行工具,用于仅使用文本构建、维护和共享软件架构项目。 + - [C4Sharp](https://github.com/8T4/c4sharp) ![GitHub Repo stars](https://img.shields.io/github/stars/8T4/c4sharp) - 一个基于 C4 模型的 .net 库,用于编码构建图表。 + - [Goa Design - Model](https://github.com/goadesign/model) ![GitHub Repo stars](https://img.shields.io/github/stars/goadesign/model) - 在 Go 中创建您的软件架构模型和图表。Model DSL 在 Go 中实现,并遵循 C4 模型。 -- [Log4brains](https://github.com/thomvaill/log4brains) - 直接在 IDE 中记录架构决策记录 (ADR),并自动将其发布为静态网站。 +- [Log4brains](https://github.com/thomvaill/log4brains) ![GitHub Repo stars](https://img.shields.io/github/stars/thomvaill/log4brains) - 直接在 IDE 中记录架构决策记录 (ADR),并自动将其发布为静态网站。 - [Google 的设计文档](https://www.industrialempathy.com/posts/design-docs-at-google/) - 概述 Google 如何使用和编写软件设计文档。 ### API 文档 @@ -132,25 +132,25 @@ API 是软件世界的通用语言,需要进行良好的文档化。 #### 通用 - [API 参考模板](https://gitlab.com/tgdp/templates/-/blob/main/api-reference/template-api-reference.md) - 由 The Good Docs Project 提供的开源模板。 -- [Slate](https://github.com/slatedocs/slate) - 从符合 Swagger 的 API 动态生成美观的静态文档。 - - [Widdershins](https://github.com/Mermade/widdershins) - OpenAPI / Swagger / AsyncAPI / Semoasa 定义转 Slate / ReSlate 兼容 markdown。 -- [DevDocs](https://github.com/freeCodeCamp/devdocs) - 将多个开发文档结合在一个干净有序的 Web UI 中,支持即时搜索、离线支持、移动版本、暗黑主题、快捷键等。 -- [Zeal](https://github.com/zealdocs/zeal) - 受到 Dash 启发的离线文档浏览器。 -- [apiDoc](https://github.com/apidoc/apidoc) - RESTful web API 文档生成器。 +- [Slate](https://github.com/slatedocs/slate) ![GitHub Repo stars](https://img.shields.io/github/stars/slatedocs/slate) - 从符合 Swagger 的 API 动态生成美观的静态文档。 + - [Widdershins](https://github.com/Mermade/widdershins) ![GitHub Repo stars](https://img.shields.io/github/stars/Mermade/widdershins) - OpenAPI / Swagger / AsyncAPI / Semoasa 定义转 Slate / ReSlate 兼容 markdown。 +- [DevDocs](https://github.com/freeCodeCamp/devdocs) ![GitHub Repo stars](https://img.shields.io/github/stars/freeCodeCamp/devdocs) - 将多个开发文档结合在一个干净有序的 Web UI 中,支持即时搜索、离线支持、移动版本、暗黑主题、快捷键等。 +- [Zeal](https://github.com/zealdocs/zeal) ![GitHub Repo stars](https://img.shields.io/github/stars/zealdocs/zeal) - 受到 Dash 启发的离线文档浏览器。 +- [apiDoc](https://github.com/apidoc/apidoc) ![GitHub Repo stars](https://img.shields.io/github/stars/apidoc/apidoc) - RESTful web API 文档生成器。 #### OpenAPI [OpenAPI 规范](https://swagger.io/specification/) 定义了一个标准、与语言无关的接口到 HTTP API。然后可以使用 OpenAPI 定义由文档生成工具显示 API。 -- [Swagger UI](https://github.com/swagger-api/swagger-ui) - 从符合 Swagger 的 API 动态生成美观的文档。 +- [Swagger UI](https://github.com/swagger-api/swagger-ui) ![GitHub Repo stars](https://img.shields.io/github/stars/swagger-api/swagger-ui) - 从符合 Swagger 的 API 动态生成美观的文档。 - [Swagger 宠物店](https://petstore3.swagger.io/) - 基于 OpenAPI 3.0 规范的样本宠物店服务器。 -- [Redoc](https://github.com/Redocly/redoc) - 用于从 OpenAPI (前 Swagger) 定义生成文档的开源工具。 -- [RapiDoc](https://github.com/rapi-doc/RapiDoc) - 用于 OpenAPI 规范查看的 WebComponent 自定义元素。 -- [Fern](https://github.com/fern-api/fern) - 从 OpenAPI 定义生成 SDK 和 API 文档。 -- [Elements](https://github.com/stoplightio/elements) - 由 OpenAPI 和 Markdown 驱动的美观 API 文档。 -- [Scalar](https://github.com/scalar/scalar) - 从 Swagger 文件生成交互式 API 文档。 -- [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) - 给定 OpenAPI 规范 (v2, v3),自动生成 API 客户端库 (SDK 生成)、服务器存根、文档和配置。 -- [GitBook](https://github.com/GitbookIO/gitbook) - 一个现代平台,用于从 OpenAPI 定义创建和管理交互式 API 文档。 +- [Redoc](https://github.com/Redocly/redoc) ![GitHub Repo stars](https://img.shields.io/github/stars/Redocly/redoc) - 用于从 OpenAPI (前 Swagger) 定义生成文档的开源工具。 +- [RapiDoc](https://github.com/rapi-doc/RapiDoc) ![GitHub Repo stars](https://img.shields.io/github/stars/rapi-doc/RapiDoc) - 用于 OpenAPI 规范查看的 WebComponent 自定义元素。 +- [Fern](https://github.com/fern-api/fern) ![GitHub Repo stars](https://img.shields.io/github/stars/fern-api/fern) - 从 OpenAPI 定义生成 SDK 和 API 文档。 +- [Elements](https://github.com/stoplightio/elements) ![GitHub Repo stars](https://img.shields.io/github/stars/stoplightio/elements) - 由 OpenAPI 和 Markdown 驱动的美观 API 文档。 +- [Scalar](https://github.com/scalar/scalar) ![GitHub Repo stars](https://img.shields.io/github/stars/scalar/scalar) - 从 Swagger 文件生成交互式 API 文档。 +- [OpenAPI Generator](https://github.com/OpenAPITools/openapi-generator) ![GitHub Repo stars](https://img.shields.io/github/stars/OpenAPITools/openapi-generator) - 给定 OpenAPI 规范 (v2, v3),自动生成 API 客户端库 (SDK 生成)、服务器存根、文档和配置。 +- [GitBook](https://github.com/GitbookIO/gitbook) ![GitHub Repo stars](https://img.shields.io/github/stars/GitbookIO/gitbook) - 一个现代平台,用于从 OpenAPI 定义创建和管理交互式 API 文档。 - [xyd](https://xyd.dev/docs/guides/openapi) - 更轻松地从 OpenAPI 定义生成可扩展的 API 文档。 #### GraphQL @@ -158,44 +158,45 @@ API 是软件世界的通用语言,需要进行良好的文档化。 [GraphQL](https://graphql.org/) 是一种 API 查询语言,提供了 API 中数据的完整且可理解的描述。 - [GitHub GraphQL API 文档](https://docs.github.com/en/graphql) - GitHub 提供的 GraphQL API 的一个很好的真实世界示例。 -- [SpectaQL](https://github.com/anvilco/spectaql) - 一个 Node.js 库,可以从任何 GraphQL 架构自动生成静态文档。 -- [GraphQLDocs](https://github.com/brettchalupa/graphql-docs) - 一个 Ruby 库和 CLI,用于轻松从 GraphQL 架构生成美观的文档。 -- [Magidoc](https://github.com/magidoc-org/magidoc) - 一个 JavaScript 库,可以从任何 GraphQL 架构自动生成静态文档。 +- [SpectaQL](https://github.com/anvilco/spectaql) ![GitHub Repo stars](https://img.shields.io/github/stars/anvilco/spectaql) - 一个 Node.js 库,可以从任何 GraphQL 架构自动生成静态文档。 +- [GraphQLDocs](https://github.com/brettchalupa/graphql-docs) ![GitHub Repo stars](https://img.shields.io/github/stars/brettchalupa/graphql-docs) - 一个 Ruby 库和 CLI,用于轻松从 GraphQL 架构生成美观的文档。 +- [Magidoc](https://github.com/magidoc-org/magidoc) ![GitHub Repo stars](https://img.shields.io/github/stars/magidoc-org/magidoc) - 一个 JavaScript 库,可以从任何 GraphQL 架构自动生成静态文档。 - [xyd](https://xyd.dev/docs/guides/graphql) - 更轻松地从 GraphQL 模式生成可扩展的 API 文档。 #### gRPC [gRPC](https://grpc.io/) 是一个现代的开源高性能远程过程调用 (RPC) 框架。 -- [protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc) - 从 .proto 文件中的注释生成 HTML、JSON、DocBook 和 Markdown 文档。 +- [protoc-gen-doc](https://github.com/pseudomuto/protoc-gen-doc) ![GitHub Repo stars](https://img.shields.io/github/stars/pseudomuto/protoc-gen-doc) - 从 .proto 文件中的注释生成 HTML、JSON、DocBook 和 Markdown 文档。 - [示例](https://rawgit.com/pseudomuto/protoc-gen-doc/master/examples/doc/example.html) - 由 protoc-gen-doc 生成的样本 HTML 文档。 -- [Sabledocs](https://github.com/markvincze/sabledocs) - 一个简单的 Protobuf 和 gRPC 合同的静态文档生成器。 +- [Sabledocs](https://github.com/markvincze/sabledocs) ![GitHub Repo stars](https://img.shields.io/github/stars/markvincze/sabledocs) - 一个简单的 Protobuf 和 gRPC 合同的静态文档生成器。 - [示例](https://markvincze.github.io/sabledocs/demo/) - 使用 sabledocs 从 Google Cloud SDK 的 Protobuf 合同的部分创建的样本文档。 #### AsyncAPI [AsyncAPI 规范](https://www.asyncapi.com/docs/reference/specification/v3.0.0) 是一个用于以机器可读格式描述消息驱动的 API 的项目,也可以用于生成 API 文档。 -- [Async API 生成器](https://github.com/asyncapi/generator) - 使用 AsyncAPI 定义生成几乎任何东西,包括 Markdown 文档和 HTML 文档。 -- [AsyncAPI React 组件](https://github.com/asyncapi/asyncapi-react) - 在浏览器中实时从规范渲染文档。 -- [宠物店 Kafka](https://github.com/swagger-api/petstore-kafka?tab=readme-ov-file#openapi-and-asyncapi) - 用 AsyncAPI 和 OpenAPI 描述的功能示例。 +- [Async API 生成器](https://github.com/asyncapi/generator) ![GitHub Repo stars](https://img.shields.io/github/stars/asyncapi/generator) - 使用 AsyncAPI 定义生成几乎任何东西,包括 Markdown 文档和 HTML 文档。 +- [AsyncAPI React 组件](https://github.com/asyncapi/asyncapi-react) ![GitHub Repo stars](https://img.shields.io/github/stars/asyncapi/asyncapi-react) - 在浏览器中实时从规范渲染文档。 +- [宠物店 Kafka](https://github.com/swagger-api/petstore-kafka?tab=readme-ov-file#openapi-and-asyncapi) ![GitHub Repo stars](https://img.shields.io/github/stars/swagger-api/petstore-kafka) - 用 AsyncAPI 和 OpenAPI 描述的功能示例。 #### RAML [RAML 规范](https://github.com/raml-org/raml-spec/blob/master/versions/raml-10/raml-10.md/) 提供了定义实际 RESTful API 的机制,创建客户端/服务器源代码,并为用户全面地记录 API。 -- [API 控制台](https://github.com/mulesoft/api-console) - 基于 RAML/OAS 文件的交互式 REST 控制台。 -- [RAML 转 HTML](https://github.com/raml2html/raml2html) - 一个简单的 RAML 到 HTML 文档生成器,为 Node.js 编写,支持主题。 +- [API 控制台](https://github.com/mulesoft/api-console) ![GitHub Repo stars](https://img.shields.io/github/stars/mulesoft/api-console) - 基于 RAML/OAS 文件的交互式 REST 控制台。 +- [RAML 转 HTML](https://github.com/raml2html/raml2html) ![GitHub Repo stars](https://img.shields.io/github/stars/raml2html/raml2html) - 一个简单的 RAML 到 HTML 文档生成器,为 Node.js 编写,支持主题。 - [世界音乐 API](https://rawgit.com/raml2html/default-theme/master/examples/world-music-api.html) - 使用 RAML 到 HTML 文档生成器的现场示例。 ### 代码文档 #### README -- [Best README Template](https://github.com/othneildrew/Best-README-Template) - 一个超棒的 README 模板,可以为您的项目起到开头作用。 -- [Awesome Readme](https://github.com/matiassingers/awesome-readme) - 精选的超棒 README 列表,包括示例、文章和工具。 +- [Best README Template](https://github.com/othneildrew/Best-README-Template) ![GitHub Repo stars](https://img.shields.io/github/stars/othneildrew/Best-README-Template) - 一个超棒的 README 模板,可以为您的项目起到开头作用。 +- [Awesome Readme](https://github.com/matiassingers/awesome-readme) ![GitHub Repo stars](https://img.shields.io/github/stars/matiassingers/awesome-readme) - 精选的超棒 README 列表,包括示例、文章和工具。 - [README 模板](https://gitlab.com/tgdp/templates/-/blob/main/readme/template-readme.md) - 由 The Good Docs Project 提供的开源模板。 -- [readme.so](https://github.com/octokatherine/readme.so) - 一个在线拖放编辑器,可以轻松构建 README。 +- [readme.so](https://github.com/octokatherine/readme.so) ![GitHub Repo stars](https://img.shields.io/github/stars/octokatherine/readme.so) - 一个在线拖放编辑器,可以轻松构建 README。 +- [NRG](https://github.com/nanolaba/readme-generator) ![GitHub Repo stars](https://img.shields.io/github/stars/nanolaba/readme-generator) - 多语言 README 生成器,从单个 `.src.md` 模板构建 README 文件,支持导入、组件和目录引擎。提供 CLI、Maven 插件和 Java 库。 #### 注释 @@ -203,7 +204,7 @@ API 是软件世界的通用语言,需要进行良好的文档化。 - [编写代码注释的最佳实践](https://stackoverflow.blog/2021/12/23/best-practices-for-writing-code-comments/) - 帮助你写出更好注释的 9 条规则,提供示例并解释如何以及何时应用它们。 - [工程师编写有意义的代码注释指南](https://stepsize.com/blog/the-engineers-guide-to-writing-code-comments) - 涵盖注释类型、何时以及如何编写代码注释、一些最佳实践,以及何时不编写它们。 -- [NERD Commenter](https://github.com/preservim/nerdcommenter) - Vim 插件,用于强大的注释功能。 +- [NERD Commenter](https://github.com/preservim/nerdcommenter) ![GitHub Repo stars](https://img.shields.io/github/stars/preservim/nerdcommenter) - Vim 插件,用于强大的注释功能。 #### 错误信息 @@ -214,56 +215,56 @@ API 是软件世界的通用语言,需要进行良好的文档化。 - [贡献模板](https://gitlab.com/tgdp/templates/-/blob/main/contributing-guide/template-contributing-guide.md) - 由 The Good Docs Project 提供的开源模板。 - [行为守则模板](https://gitlab.com/tgdp/templates/-/tree/main/code-of-conduct) - 由 The Good Docs Project 提供的开源模板。 - [风格指南模板](https://gitlab.com/tgdp/templates/-/blob/main/style-guide/template-style-guide.md) - 由 The Good Docs Project 提供的开源模板。 -- [许可证模板](https://github.com/licenses/license-templates) - 开源和其他许可证的模板。 +- [许可证模板](https://github.com/licenses/license-templates) ![GitHub Repo stars](https://img.shields.io/github/stars/licenses/license-templates) - 开源和其他许可证的模板。 #### 语言特定 - JavaScript - - [JSDoc](https://github.com/jsdoc/jsdoc) - 一个 JavaScript API 文档生成器。 - - [documentation.js](https://github.com/documentationjs/documentation) - 现代 JavaScript 的文档系统。 - - [Docz](https://github.com/doczjs/docz) - 为您的代码编写和发布美观的交互式文档。 - - [Storybook](https://github.com/storybookjs/storybook) - 一个用于 UI 开发、测试和文档的前端工坊。 + - [JSDoc](https://github.com/jsdoc/jsdoc) ![GitHub Repo stars](https://img.shields.io/github/stars/jsdoc/jsdoc) - 一个 JavaScript API 文档生成器。 + - [documentation.js](https://github.com/documentationjs/documentation) ![GitHub Repo stars](https://img.shields.io/github/stars/documentationjs/documentation) - 现代 JavaScript 的文档系统。 + - [Docz](https://github.com/doczjs/docz) ![GitHub Repo stars](https://img.shields.io/github/stars/doczjs/docz) - 为您的代码编写和发布美观的交互式文档。 + - [Storybook](https://github.com/storybookjs/storybook) ![GitHub Repo stars](https://img.shields.io/github/stars/storybookjs/storybook) - 一个用于 UI 开发、测试和文档的前端工坊。 - TypeScript - - [TSDoc](https://github.com/microsoft/tsdoc) - TypeScript 的文档注释标准。 + - [TSDoc](https://github.com/microsoft/tsdoc) ![GitHub Repo stars](https://img.shields.io/github/stars/microsoft/tsdoc) - TypeScript 的文档注释标准。 - Python - [Docstring Conventions](https://peps.python.org/pep-0257/) - 此 PEP 记录了与 Python 文档字符串相关的语义和约定。 - [Comments and Docstrings](https://github.com/google/styleguide/blob/gh-pages/pyguide.md#38-comments-and-docstrings) - 来自 Google Python 风格指南。 - [Documenting Python Code: A Complete Guide](https://realpython.com/documenting-python-code/#commenting-vs-documenting-code) - 涵盖注释和文档代码之间的区别、文档字符串的使用以及 Python 项目文档指南。 - PHP - - [phpDocumentor](https://github.com/phpDocumentor/phpDocumentor) - PHP 项目的事实标准文档工具,提供了一个强大的解决方案,可以轻松生成全面的文档。 + - [phpDocumentor](https://github.com/phpDocumentor/phpDocumentor) ![GitHub Repo stars](https://img.shields.io/github/stars/phpDocumentor/phpDocumentor) - PHP 项目的事实标准文档工具,提供了一个强大的解决方案,可以轻松生成全面的文档。 - C# - - [Docfx](https://github.com/dotnet/docfx) - .NET API 文档的静态站点生成器。 + - [Docfx](https://github.com/dotnet/docfx) ![GitHub Repo stars](https://img.shields.io/github/stars/dotnet/docfx) - .NET API 文档的静态站点生成器。 - C++ - - [Doxygen](https://github.com/doxygen/doxygen) - 从带注释的 C++ 源代码生成文档的事实标准工具。 + - [Doxygen](https://github.com/doxygen/doxygen) ![GitHub Repo stars](https://img.shields.io/github/stars/doxygen/doxygen) - 从带注释的 C++ 源代码生成文档的事实标准工具。 - Java - [JavaDoc](https://en.wikipedia.org/wiki/Javadoc) - 由 Sun Microsystems 为 Java 语言(现归 Oracle Corporation 所有)创建的文档生成器,用于从 Java 源代码生成 HTML 格式的 API 文档。 - - [Maven Javadoc Plugin](https://github.com/apache/maven-javadoc-plugin) - 使用 Javadoc 工具为指定项目生成 javadocs。 + - [Maven Javadoc Plugin](https://github.com/apache/maven-javadoc-plugin) ![GitHub Repo stars](https://img.shields.io/github/stars/apache/maven-javadoc-plugin) - 使用 Javadoc 工具为指定项目生成 javadocs。 - [javadoc.io](https://javadoc.io/) - 一个免费服务,为 Maven Central 索引和提供 JavaDoc。 - Kotlin - - [Dokka](https://github.com/Kotlin/dokka) - Kotlin 的 API 文档引擎。 + - [Dokka](https://github.com/Kotlin/dokka) ![GitHub Repo stars](https://img.shields.io/github/stars/Kotlin/dokka) - Kotlin 的 API 文档引擎。 - Go - [Go Doc Comments](https://go.dev/doc/comment) - 从 Go 源代码中提取文档。 - - [Swag](https://github.com/swaggo/swag) - 将 Go 注释转换为 Swagger Documentation 2.0。 + - [Swag](https://github.com/swaggo/swag) ![GitHub Repo stars](https://img.shields.io/github/stars/swaggo/swag) - 将 Go 注释转换为 Swagger Documentation 2.0。 - Rust - [Rustdoc](https://doc.rust-lang.org/nightly/rustdoc/) - 为 Rust 项目生成文档。 - - [Docs.rs](https://github.com/rust-lang/docs.rs) - 一个开源项目,用于托管 Rust 编程语言的 crate 文档。 + - [Docs.rs](https://github.com/rust-lang/docs.rs) ![GitHub Repo stars](https://img.shields.io/github/stars/rust-lang/docs.rs) - 一个开源项目,用于托管 Rust 编程语言的 crate 文档。 - Ruby - [TomDoc for Ruby](http://tomdoc.org/) - 一种代码文档规范,帮助您编写精确的文档,阅读起来很好看,格式足够结构化,可以被机器自动提取和处理。 - Perl - [perlpod](https://perldoc.perl.org/perlpod) - 普通旧文档格式 - 一种简单易用的标记语言,用于为 Perl、Perl 程序和 Perl 模块编写文档。 - SQL - - [SchemaSpy](https://github.com/schemaspy/schemaspy) - 简单轻松地记录您的数据库。 + - [SchemaSpy](https://github.com/schemaspy/schemaspy) ![GitHub Repo stars](https://img.shields.io/github/stars/schemaspy/schemaspy) - 简单轻松地记录您的数据库。 - CSS ### 测试文档 - 测试计划 - - [IEEE 测试计划模板](https://github.com/JennifferLockwood/test_plan_template) - HTML5 和 Markdown 格式的 IEEE 829 模板。 + - [IEEE 测试计划模板](https://github.com/JennifferLockwood/test_plan_template) ![GitHub Repo stars](https://img.shields.io/github/stars/JennifferLockwood/test_plan_template) - HTML5 和 Markdown 格式的 IEEE 829 模板。 - [SONiC 测试计划模板](https://github.com/sonic-net/SONiC/blob/master/doc/SONiC%20Test%20Plan%20Template.md) - 来自 Software for Open Networking in the Cloud (SONiC) 的测试计划模板。 - [在 VS Code 中编写测试计划项](https://github.com/microsoft/vscode/wiki/Writing-Test-Plan-Items) - VS Code 项目编写测试计划项 (TPI) 的指南。 - [性能测试计划文档](https://www.perfmatrix.com/performance-test-plan-document-template/) - 来自 PerfMatrix 的免费性能测试计划 .docx 模板。 - 测试用例 - - [手动软件测试的测试用例和模板](https://github.com/mfaisalkhatri/Manual_Testing) - 用于在 Web/Mobile 应用程序上执行手动测试和 API 测试的通用测试用例。 + - [手动软件测试的测试用例和模板](https://github.com/mfaisalkhatri/Manual_Testing) ![GitHub Repo stars](https://img.shields.io/github/stars/mfaisalkhatri/Manual_Testing) - 用于在 Web/Mobile 应用程序上执行手动测试和 API 测试的通用测试用例。 - [测试用例模板 (下载示例 Excel)](https://www.guru99.com/download-sample-test-case-template-with-explanation-of-important-fields.html) - 来自 Guru99 的免费测试用例模板,包含 Excel 和 Word 格式。 - [带示例的测试用例模板:免费 Excel 和 Word 示例下载](https://katalon.com/resources-center/blog/test-case-template-examples) - 来自 Katalon 的免费测试用例模板,附带指南和直接下载链接。 - 测试报告 @@ -294,63 +295,64 @@ API 是软件世界的通用语言,需要进行良好的文档化。 - [Sphinx](https://github.com/sphinx-doc/sphinx) ![GitHub Repo stars](https://img.shields.io/github/stars/sphinx-doc/sphinx) - 使创建智能和美观的文档变得容易。 - [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html) - Sphinx 使用的默认纯文本标记语言。 - [Read The Docs](https://about.readthedocs.com/) - 为开源社区托管文档,支持用 reStructuredText 编写的 Sphinx 文档。 -- [Markdoc](https://github.com/markdoc/markdoc) - 基于 Markdown 的语法和工具链,用于打造自定义文档站点。 +- [Markdoc](https://github.com/markdoc/markdoc) ![GitHub Repo stars](https://img.shields.io/github/stars/markdoc/markdoc) - 基于 Markdown 的语法和工具链,用于打造自定义文档站点。 - [Starlight](https://github.com/withastro/starlight) ![GitHub Repo stars](https://img.shields.io/github/stars/withastro/starlight) - 使用 Astro 构建美观、无障碍、高性能的文档网站。 - [Docco](https://github.com/jashkenas/docco) ![GitHub Repo stars](https://img.shields.io/github/stars/jashkenas/docco) - 只需百来行代码就能生成文档的项目,采用文学式编程风格。 - [bookdown](https://github.com/rstudio/bookdown) ![GitHub Repo stars](https://img.shields.io/github/stars/rstudio/bookdown) - 使用 R Markdown 编写书籍与技术文档。 - [Docus](https://github.com/nuxt-themes/docus) ![GitHub Repo stars](https://img.shields.io/github/stars/nuxt-themes/docus) - 使用 Vue 与 Markdown 构建以文档驱动的网站。 - [Doctave](https://github.com/Doctave/doctave) ![GitHub Repo stars](https://img.shields.io/github/stars/Doctave/doctave) - 开箱即用的开发者文档站点生成器。 - [xyd](https://github.com/livesession/xyd) ![GitHub Repo stars](https://img.shields.io/github/stars/livesession/xyd) - 一个全新的可扩展文档框架,专为所有人构建,由 LiveSession 提供支持。 +- [Sourcey](https://github.com/sourcey/sourcey) ![GitHub Repo stars](https://img.shields.io/github/stars/sourcey/sourcey) - 多源静态文档生成器。可消费 OpenAPI、MCP、Doxygen XML、godoc 和 Markdown,生成单个静态 HTML 站点。自托管,AGPL-3.0。 ### Wiki 构建器 -- [Wiki.js](https://github.com/Requarks/wiki) - 一个基于 Node.js 构建的现代且强大的 wiki 应用。 -- [MediaWiki](https://github.com/wikimedia/mediawiki) - 一个免费且开源的 wiki 软件包,使用 PHP 编写。它为维基百科和其他维基媒体项目提供平台。 -- [DokuWiki](https://github.com/dokuwiki/dokuwiki) - 一个简单易用且功能丰富的开源 wiki 软件,不需要数据库。 -- [Gollum](https://github.com/gollum/gollum) - 基于 Git 构建的轻量级 wiki 系统。 -- [VimWiki](https://github.com/vimwiki/vimwiki) - Vim 的个人 wiki,可用于编写文档。 +- [Wiki.js](https://github.com/Requarks/wiki) ![GitHub Repo stars](https://img.shields.io/github/stars/Requarks/wiki) - 一个基于 Node.js 构建的现代且强大的 wiki 应用。 +- [MediaWiki](https://github.com/wikimedia/mediawiki) ![GitHub Repo stars](https://img.shields.io/github/stars/wikimedia/mediawiki) - 一个免费且开源的 wiki 软件包,使用 PHP 编写。它为维基百科和其他维基媒体项目提供平台。 +- [DokuWiki](https://github.com/dokuwiki/dokuwiki) ![GitHub Repo stars](https://img.shields.io/github/stars/dokuwiki/dokuwiki) - 一个简单易用且功能丰富的开源 wiki 软件,不需要数据库。 +- [Gollum](https://github.com/gollum/gollum) ![GitHub Repo stars](https://img.shields.io/github/stars/gollum/gollum) - 基于 Git 构建的轻量级 wiki 系统。 +- [VimWiki](https://github.com/vimwiki/vimwiki) ![GitHub Repo stars](https://img.shields.io/github/stars/vimwiki/vimwiki) - Vim 的个人 wiki,可用于编写文档。 - [GitHub Wiki](https://docs.github.com/en/communities/documenting-your-project-with-wikis/about-wikis) - - [Awesome GitHub Wikis](https://github.com/MyHoneyBadger/awesome-github-wiki) - 精选的超棒 GitHub Wikis 列表,包括示例、技巧和窍门。 + - [Awesome GitHub Wikis](https://github.com/MyHoneyBadger/awesome-github-wiki) ![GitHub Repo stars](https://img.shields.io/github/stars/MyHoneyBadger/awesome-github-wiki) - 精选的超棒 GitHub Wikis 列表,包括示例、技巧和窍门。 - [联邦 Wiki](https://www.wikiwand.com/en/Federated_Wiki) - [联邦 Wiki](https://www.writethedocs.org/videos/na/2015/keynote-the-federated-wiki-ward-cunningham/) - 由 Ward Cunningham 使用联邦来简化共享。 - - [Node.js 服务器版本](https://github.com/fedwiki/wiki) - 作为 npm 包的联邦 Wiki node 服务器。 + - [Node.js 服务器版本](https://github.com/fedwiki/wiki) ![GitHub Repo stars](https://img.shields.io/github/stars/fedwiki/wiki) - 作为 npm 包的联邦 Wiki node 服务器。 ### 知识库 -- [Documize](https://github.com/documize/community) - 现代化的 Confluence 替代品,适合管理内部和外部文档。 -- [Trilium Notes](https://github.com/zadam/trilium) - 支持层级结构的笔记应用,可构建大型个人知识库。 -- [Seafile](https://github.com/haiwen/seafile) - 高性能的文件同步与分享平台,提供 Markdown 编辑、Wiki 等知识管理功能。 -- [Logseq](https://github.com/logseq/logseq) - 以隐私为先的开源知识管理与协作平台。 -- [MrDoc](https://github.com/zmister2016/MrDoc) - 适合个人和小团队的在线文档系统,可管理文档、Wiki 和笔记。 -- [AFFiNE](https://github.com/toeverything/AFFiNE) - 下一代知识库,集计划、整理与创作于一体。 -- [Docmost](https://github.com/docmost/docmost) - 开源协作式 Wiki 与文档软件,是 Confluence 和 Notion 的替代品。 +- [Documize](https://github.com/documize/community) ![GitHub Repo stars](https://img.shields.io/github/stars/documize/community) - 现代化的 Confluence 替代品,适合管理内部和外部文档。 +- [Trilium Notes](https://github.com/zadam/trilium) ![GitHub Repo stars](https://img.shields.io/github/stars/zadam/trilium) - 支持层级结构的笔记应用,可构建大型个人知识库。 +- [Seafile](https://github.com/haiwen/seafile) ![GitHub Repo stars](https://img.shields.io/github/stars/haiwen/seafile) - 高性能的文件同步与分享平台,提供 Markdown 编辑、Wiki 等知识管理功能。 +- [Logseq](https://github.com/logseq/logseq) ![GitHub Repo stars](https://img.shields.io/github/stars/logseq/logseq) - 以隐私为先的开源知识管理与协作平台。 +- [MrDoc](https://github.com/zmister2016/MrDoc) ![GitHub Repo stars](https://img.shields.io/github/stars/zmister2016/MrDoc) - 适合个人和小团队的在线文档系统,可管理文档、Wiki 和笔记。 +- [AFFiNE](https://github.com/toeverything/AFFiNE) ![GitHub Repo stars](https://img.shields.io/github/stars/toeverything/AFFiNE) - 下一代知识库,集计划、整理与创作于一体。 +- [Docmost](https://github.com/docmost/docmost) ![GitHub Repo stars](https://img.shields.io/github/stars/docmost/docmost) - 开源协作式 Wiki 与文档软件,是 Confluence 和 Notion 的替代品。 ### AI 工具 -- [Mintlify Writer](https://github.com/mintlify/writer) - 基于 AI 的 VS Code 扩展,高亮代码即可生成说明。 -- [Readme AI](https://github.com/eli64s/readme-ai) - 自动分析仓库并生成完善的 README,支持多种 LLM 与模板。 +- [Mintlify Writer](https://github.com/mintlify/writer) ![GitHub Repo stars](https://img.shields.io/github/stars/mintlify/writer) - 基于 AI 的 VS Code 扩展,高亮代码即可生成说明。 +- [Readme AI](https://github.com/eli64s/readme-ai) ![GitHub Repo stars](https://img.shields.io/github/stars/eli64s/readme-ai) - 自动分析仓库并生成完善的 README,支持多种 LLM 与模板。 - [GitBook AI](https://www.gitbook.com/solutions/ai) - GitBook 内置的 AI 助手,根据上下文提供写作建议。 ### 检查与格式化 -- [LanguageTool](https://github.com/languagetool-org/languagetool) - 支持多语言的语法和拼写检查工具。 -- [Spellcheck GitHub Actions](https://github.com/rojopolis/spellcheck-github-actions) - 在 GitHub Actions 中进行拼写检查。 -- [TeXtidote](https://github.com/sylvainhalle/textidote) - 用于 LaTeX 等格式的校对工具。 -- [alex](https://github.com/get-alex/alex) - 检测潜在不妥或冒犯性的用语。 -- [Lychee](https://github.com/lycheeverse/lychee) - 检查 Markdown、HTML 等文件中的失效链接。 -- [linkinator](https://github.com/JustinBeckwith/linkinator) - 极简的站点爬虫和失效链接检查器。 +- [LanguageTool](https://github.com/languagetool-org/languagetool) ![GitHub Repo stars](https://img.shields.io/github/stars/languagetool-org/languagetool) - 支持多语言的语法和拼写检查工具。 +- [Spellcheck GitHub Actions](https://github.com/rojopolis/spellcheck-github-actions) ![GitHub Repo stars](https://img.shields.io/github/stars/rojopolis/spellcheck-github-actions) - 在 GitHub Actions 中进行拼写检查。 +- [TeXtidote](https://github.com/sylvainhalle/textidote) ![GitHub Repo stars](https://img.shields.io/github/stars/sylvainhalle/textidote) - 用于 LaTeX 等格式的校对工具。 +- [alex](https://github.com/get-alex/alex) ![GitHub Repo stars](https://img.shields.io/github/stars/get-alex/alex) - 检测潜在不妥或冒犯性的用语。 +- [Lychee](https://github.com/lycheeverse/lychee) ![GitHub Repo stars](https://img.shields.io/github/stars/lycheeverse/lychee) - 检查 Markdown、HTML 等文件中的失效链接。 +- [linkinator](https://github.com/JustinBeckwith/linkinator) ![GitHub Repo stars](https://img.shields.io/github/stars/JustinBeckwith/linkinator) - 极简的站点爬虫和失效链接检查器。 - [Readability checker](https://www.thewriter.com/tools/readability) - 根据 Flesch 指标评估文本的可读性。 - [Capitalize My Title](https://capitalizemytitle.com/) - 按专业规则自动修正标题的大小写。 -- [CasePolice](https://github.com/antfu/case-police) - 扫描源码并纠正已知名称的大小写。 +- [CasePolice](https://github.com/antfu/case-police) ![GitHub Repo stars](https://img.shields.io/github/stars/antfu/case-police) - 扫描源码并纠正已知名称的大小写。 - [Tables Generator](https://www.tablesgenerator.com/) - 生成 HTML、Markdown、LaTeX 等格式的表格。 ### 绘图工具 -- [draw.io](https://github.com/jgraph/drawio) (开源) - 一个 JavaScript 客户端编辑器,用于通用图表绘制。 -- [Excalidraw](https://github.com/excalidraw/excalidraw) - 开源的手绘风格白板,用于快速勾画示意图。 -- [Mermaid](https://github.com/mermaid-js/mermaid) - 通过类 Markdown 语法绘制图表。 +- [draw.io](https://github.com/jgraph/drawio) ![GitHub Repo stars](https://img.shields.io/github/stars/jgraph/drawio) (开源) - 一个 JavaScript 客户端编辑器,用于通用图表绘制。 +- [Excalidraw](https://github.com/excalidraw/excalidraw) ![GitHub Repo stars](https://img.shields.io/github/stars/excalidraw/excalidraw) - 开源的手绘风格白板,用于快速勾画示意图。 +- [Mermaid](https://github.com/mermaid-js/mermaid) ![GitHub Repo stars](https://img.shields.io/github/stars/mermaid-js/mermaid) - 通过类 Markdown 语法绘制图表。 - [Mermaid Live Editor](https://mermaid-js.github.io/mermaid-live-editor/) - 在线编辑和预览 Mermaid 图表。 -- [PlantUML](https://github.com/plantuml/plantuml) - 使用简单语法创建各种 UML 图。 +- [PlantUML](https://github.com/plantuml/plantuml) ![GitHub Repo stars](https://img.shields.io/github/stars/plantuml/plantuml) - 使用简单语法创建各种 UML 图。 - [Lucidchart](https://www.lucidchart.com/) - 通过 AI 和数据导入自动生成可视化图表,也可手动绘制。 - [OmniGraffle](https://www.omnigroup.com/omnigraffle/) - Mac 平台上功能丰富的绘图工具。 - [架构制图:工具与方法论](https://developer.aliyun.com/article/774446) - 讨论了在架构文档中使用图表的好处,并强调了一些标准和最佳实践。 @@ -360,24 +362,24 @@ API 是软件世界的通用语言,需要进行良好的文档化。 文档不必局限于纯文本和静态图片。 - **屏幕录制** - - [Screenity](https://github.com/alyssaxuu/screenity) - 免费且隐私友好的录屏工具,无任何限制。 - - [Kap](https://github.com/wulkano/kap) - 基于 Web 技术的开源录屏软件。 - - [rrweb](https://github.com/rrweb-io/rrweb) - 用于录制并回放网页交互。 - - [ScreenToGif](https://github.com/NickeManarin/ScreenToGif) - 录制屏幕区域并保存为 GIF 或视频。 - - [Peek](https://github.com/phw/peek) - 简单易用的 GIF 录制器。 - - [Flameshot](https://github.com/flameshot-org/flameshot) - 功能强大的截图工具,易于使用。 + - [Screenity](https://github.com/alyssaxuu/screenity) ![GitHub Repo stars](https://img.shields.io/github/stars/alyssaxuu/screenity) - 免费且隐私友好的录屏工具,无任何限制。 + - [Kap](https://github.com/wulkano/kap) ![GitHub Repo stars](https://img.shields.io/github/stars/wulkano/kap) - 基于 Web 技术的开源录屏软件。 + - [rrweb](https://github.com/rrweb-io/rrweb) ![GitHub Repo stars](https://img.shields.io/github/stars/rrweb-io/rrweb) - 用于录制并回放网页交互。 + - [ScreenToGif](https://github.com/NickeManarin/ScreenToGif) ![GitHub Repo stars](https://img.shields.io/github/stars/NickeManarin/ScreenToGif) - 录制屏幕区域并保存为 GIF 或视频。 + - [Peek](https://github.com/phw/peek) ![GitHub Repo stars](https://img.shields.io/github/stars/phw/peek) - 简单易用的 GIF 录制器。 + - [Flameshot](https://github.com/flameshot-org/flameshot) ![GitHub Repo stars](https://img.shields.io/github/stars/flameshot-org/flameshot) - 功能强大的截图工具,易于使用。 - **音频录制** - [Tenacity](https://codeberg.org/tenacityteam/tenacity) - 易用的跨平台开源多轨音频编辑器。 - **终端录制** - - [asciinema](https://github.com/asciinema/asciinema) - 命令行终端录制工具。 - - [Terminalizer](https://github.com/faressoft/terminalizer) - 录制终端并生成 GIF 或网页播放器。 + - [asciinema](https://github.com/asciinema/asciinema) ![GitHub Repo stars](https://img.shields.io/github/stars/asciinema/asciinema) - 命令行终端录制工具。 + - [Terminalizer](https://github.com/faressoft/terminalizer) ![GitHub Repo stars](https://img.shields.io/github/stars/faressoft/terminalizer) - 录制终端并生成 GIF 或网页播放器。 - **动画制作** - - [Animockup](https://github.com/alyssaxuu/animockup) - 在线创建产品宣传动画。 + - [Animockup](https://github.com/alyssaxuu/animockup) ![GitHub Repo stars](https://img.shields.io/github/stars/alyssaxuu/animockup) - 在线创建产品宣传动画。 - **演示工具** - - [Slidev](https://github.com/slidevjs/slidev) - 面向开发者的幻灯片工具。 - - [reveal.js](https://github.com/hakimel/reveal.js) - 开源 HTML 演示框架。 - - [carbon](https://github.com/carbon-app/carbon) - 将代码片段变成精美的图片。 - - [Code Hike](https://github.com/code-hike/codehike) - 帮你打造出色的代码阅读体验,可用于博客、文档和教程。 + - [Slidev](https://github.com/slidevjs/slidev) ![GitHub Repo stars](https://img.shields.io/github/stars/slidevjs/slidev) - 面向开发者的幻灯片工具。 + - [reveal.js](https://github.com/hakimel/reveal.js) ![GitHub Repo stars](https://img.shields.io/github/stars/hakimel/reveal.js) - 开源 HTML 演示框架。 + - [carbon](https://github.com/carbon-app/carbon) ![GitHub Repo stars](https://img.shields.io/github/stars/carbon-app/carbon) - 将代码片段变成精美的图片。 + - [Code Hike](https://github.com/code-hike/codehike) ![GitHub Repo stars](https://img.shields.io/github/stars/code-hike/codehike) - 帮你打造出色的代码阅读体验,可用于博客、文档和教程。 - **免费图标与图片** - [Unsplash](https://unsplash.com/) - 高质量、可免费商用的图片网站。 - [Illustrations | Popsy](https://popsy.co/illustrations) - 免费矢量插图,适用于 Notion 和 Popsy 等。 @@ -386,7 +388,7 @@ API 是软件世界的通用语言,需要进行良好的文档化。 ### 商业化 - [Confluence](https://www.atlassian.com/software/confluence) - 企业常用的协作与文档管理工具。 - - [Confluence in a Docker container](https://github.com/cptactionhank/docker-atlassian-confluence) - 将 Confluence 打包进 Docker。 + - [Confluence in a Docker container](https://github.com/cptactionhank/docker-atlassian-confluence) ![GitHub Repo stars](https://img.shields.io/github/stars/cptactionhank/docker-atlassian-confluence) - 将 Confluence 打包进 Docker。 - [Writerside | JetBrains](https://www.jetbrains.com/writerside/) - JetBrains 出品的强大文档创作环境。 - [Project documentation | Slite](https://slite.com/solutions/project-documentation) - 将分散的项目文档集中到一起。 - [Swimm document](https://swimm.io/document) - 为开发者提供 AI 加持的代码文档解决方案。 @@ -414,21 +416,21 @@ API 是软件世界的通用语言,需要进行良好的文档化。 ### 示例 -- [Beautiful Docs](https://github.com/matheusfelipeog/beautiful-docs.git) - 指向有用、撰写良好且其他方面美观的文档的指针。 -- [Awesome Open Source Documents](https://github.com/44bits/awesome-opensource-documents) - 精选的超棒的开源或开源许可的文档、指南、书籍的列表。 -- [Awesome Documentation | vipulgupta2048](https://github.com/vipulgupta2048/awesome-documentation) - 精选的真实文档示例列表。 +- [Beautiful Docs](https://github.com/matheusfelipeog/beautiful-docs) ![GitHub Repo stars](https://img.shields.io/github/stars/matheusfelipeog/beautiful-docs) - 指向有用、撰写良好且其他方面美观的文档的指针。 +- [Awesome Open Source Documents](https://github.com/44bits/awesome-opensource-documents) ![GitHub Repo stars](https://img.shields.io/github/stars/44bits/awesome-opensource-documents) - 精选的超棒的开源或开源许可的文档、指南、书籍的列表。 +- [Awesome Documentation | vipulgupta2048](https://github.com/vipulgupta2048/awesome-documentation) ![GitHub Repo stars](https://img.shields.io/github/stars/vipulgupta2048/awesome-documentation) - 精选的真实文档示例列表。 - [9 Great API and Developer Documentation Examples](https://everydeveloper.com/developer-documentation-examples/) - 覆盖常见和不那么常见的文档范例。 ### 文档格式 - 转换工具 - [Pandoc](https://pandoc.org/) - 通用文档转换器,可在多种标记语言间互转。 - - [Mammoth](https://github.com/mwilliamson/mammoth.js) - 将 Word 文档 (.docx) 转换为 HTML。 + - [Mammoth](https://github.com/mwilliamson/mammoth.js) ![GitHub Repo stars](https://img.shields.io/github/stars/mwilliamson/mammoth.js) - 将 Word 文档 (.docx) 转换为 HTML。 - [Markdown](https://www.wikiwand.com/en/Markdown) - 轻量级标记语言,用纯文本即可编写格式化内容。 - - [MarkText](https://github.com/marktext/marktext) - 简洁优雅的 Markdown 编辑器,支持 Linux、macOS、Windows。 - - [Glow](https://github.com/charmbracelet/glow) - 基于终端的 Markdown 阅读器,可直接在命令行查看文档。 + - [MarkText](https://github.com/marktext/marktext) ![GitHub Repo stars](https://img.shields.io/github/stars/marktext/marktext) - 简洁优雅的 Markdown 编辑器,支持 Linux、macOS、Windows。 + - [Glow](https://github.com/charmbracelet/glow) ![GitHub Repo stars](https://img.shields.io/github/stars/charmbracelet/glow) - 基于终端的 Markdown 阅读器,可直接在命令行查看文档。 - [AsciiDoc](https://asciidoc.org) - 用于撰写技术内容的纯文本标记语言。 - - [Asciidoctor](https://github.com/asciidoctor/asciidoctor) - 快速的开源文本处理器,可将 AsciiDoc 转为 HTML5、PDF 等格式。 + - [Asciidoctor](https://github.com/asciidoctor/asciidoctor) ![GitHub Repo stars](https://img.shields.io/github/stars/asciidoctor/asciidoctor) - 快速的开源文本处理器,可将 AsciiDoc 转为 HTML5、PDF 等格式。 - [Antora](https://gitlab.com/antora/antora) - 模块化文档站点生成器,帮助组织并发布 AsciiDoc 内容。 - [reStructuredText](https://www.sphinx-doc.org/en/master/usage/restructuredtext/index.html) - Sphinx 默认使用的标记语言。 - [DocBook](https://docbook.org/) - 专为技术文档设计的 XML 架构。 @@ -471,7 +473,7 @@ API 是软件世界的通用语言,需要进行良好的文档化。 - [Website Accessibility Checker](https://www.accessibilitychecker.org/) - 免费扫描你的网站,找出可访问性问题并给出修复建议。 - [Color Contrast Checker](https://www.accessibilitychecker.org/color-contrast-checker/) - 检查站点是否符合 WCAG 色彩要求。 - [WebAIM](https://webaim.org/) - 专注 Web 可访问性的社区与资源。 -- [Pa11y](https://github.com/pa11y/pa11y) - 命令行或 Node.js 下运行的可访问性测试工具。 +- [Pa11y](https://github.com/pa11y/pa11y) ![GitHub Repo stars](https://img.shields.io/github/stars/pa11y/pa11y) - 命令行或 Node.js 下运行的可访问性测试工具。 - [Create accessible documents | UW Madison](https://it.wisc.edu/learn/make-it-accessible/create-accessible-documents/) - 提供提升 Word、HTML、PPT 和 PDF 文档可访问性的步骤。 ### SEO diff --git a/scripts/add_stars.py b/scripts/add_stars.py index fa2f503..dc8b4f6 100644 --- a/scripts/add_stars.py +++ b/scripts/add_stars.py @@ -34,28 +34,15 @@ def replacer(match): owner = match.group(3) repo = match.group(4) + # Strip anything that isn't part of the repo name so the badge points at + # the real repo: a trailing ".git", or a "?query"/"#fragment" suffix. + repo = re.split(r'[?#]', repo)[0] + if repo.endswith('.git'): + repo = repo[:-len('.git')] + # Construct badge badge = f" ![GitHub Repo stars](https://img.shields.io/github/stars/{owner}/{repo})" - # Check if followed by " - " or similar and normalize spaces - # If the text immediately following is a dash, we want to ensure there's exactly one space after the dash? - # Actually, the problem was double space BEFORE the dash or after the dash. - # Original: `[Link](url) - Description` - # Inserted: `[Link](url) [Badge] - Description` - # The badge logic inserts a leading space: " ![...]" - # So it becomes `[Link](url) ![...](...) - Description` - # The linter complained about `List item link and description must be separated with a dash`. - # This usually means parsing failed. - # The issue in line 341 was specifically `- Description`. - # My script doesn't touch the text AFTER the match insertion point usually. - # But if I can detect that I am inserting before " - ", I might want to help clean it up? - # Or simpler: The script just adds the badge. The lint error was pre-existing (latent) or caused by the shift in structure making the linter stricter. - # Actually, the linter rule `awesome-list-item` checks the structure. - # If I change `[Link] - Desc` to `[Link] [Badge] - Desc`, the linter still parses `[Badge]` as part of the "link" complex or just ignores it? - # In this specific case, I just fixed the file manually. - # Making the script robust to fixing existing formatting errors is maybe out of scope for "add stars", but good for "maintenance". - # Let's keep the script simple but correct. - return full_match + badge new_content = re.sub(pattern, replacer, content)