readme-generator
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseREADME Generator
README生成器
Quick Start
快速开始
Generate a README based on project type:
bash
undefined根据项目类型生成README:
bash
undefinedDetect project type
Detect project type
ls package.json && echo "Node.js project" ||
ls setup.py pyproject.toml && echo "Python project" ||
ls go.mod && echo "Go project"
ls setup.py pyproject.toml && echo "Python project" ||
ls go.mod && echo "Go project"
undefinedls package.json && echo "Node.js project" ||
ls setup.py pyproject.toml && echo "Python project" ||
ls go.mod && echo "Go project"
ls setup.py pyproject.toml && echo "Python project" ||
ls go.mod && echo "Go project"
undefinedInstructions
操作步骤
Step 1: Analyze Project
步骤1:分析项目
Gather project information:
- Project name (from package.json, pyproject.toml, etc.)
- Description (from manifest or git)
- Main language and framework
- Key features (scan source files)
- Dependencies (from manifest files)
收集项目信息:
- 项目名称(来自package.json、pyproject.toml等文件)
- 项目描述(来自清单文件或git)
- 主要语言与框架
- 核心功能(扫描源码文件)
- 依赖项(来自清单文件)
Step 2: Select Template
步骤2:选择模板
Choose template based on project type:
| Type | Template | Key Sections |
|---|---|---|
| Library | library | Installation, API, Examples |
| CLI Tool | cli | Installation, Commands, Options |
| Web App | webapp | Features, Setup, Deployment |
| API | api | Endpoints, Authentication, Examples |
根据项目类型选择模板:
| 类型 | 模板 | 核心章节 |
|---|---|---|
| 类库 | library | 安装、API、示例 |
| CLI工具 | cli | 安装、命令、选项 |
| Web应用 | webapp | 功能、设置、部署 |
| API | api | 端点、身份验证、示例 |
Step 3: Generate Core Sections
步骤3:生成核心章节
Title and Description:
markdown
undefined标题与描述:
markdown
undefinedProject Name
Project Name
Brief one-line description of what the project does.
**Installation:**
```markdownBrief one-line description of what the project does.
**安装:**
```markdownInstallation
Installation
```bash
npm install project-name
```bash
npm install project-name
or
or
pip install project-name
```
**Usage:**
```markdownpip install project-name
```
**使用说明:**
```markdownUsage
Usage
```javascript
const project = require('project-name');
// Basic example
project.doSomething();
```
undefined```javascript
const project = require('project-name');
// Basic example
project.doSomething();
```
undefinedStep 4: Add Project-Specific Content
步骤4:添加项目专属内容
Include relevant sections:
- Features: Bullet list of key capabilities
- API Reference: For libraries
- Configuration: For configurable tools
- Examples: Real-world use cases
- Contributing: How to contribute
- License: License information
包含相关章节:
- 功能:核心能力的项目符号列表
- API参考:适用于类库
- 配置:适用于可配置工具
- 示例:真实使用场景
- 贡献指南:如何参与贡献
- 许可证:许可证信息
Step 5: Add Badges and Links
步骤5:添加徽章与链接
Common badges:
markdown


常见徽章:
markdown


README Structure
README结构
Essential Sections (all projects)
必备章节(所有项目)
- Title and Description
- Installation
- Quick Start / Usage
- License
- 标题与描述
- 安装
- 快速开始/使用说明
- 许可证
Recommended Sections
推荐章节
- Features - What makes it useful
- Documentation - Link to full docs
- Examples - Common use cases
- Contributing - How to help
- Support - Where to get help
- 功能 - 项目实用特性
- 文档 - 完整文档链接
- 示例 - 常见使用场景
- 贡献指南 - 参与方式
- 支持 - 获取帮助的渠道
Optional Sections
可选章节
- Requirements - System dependencies
- Configuration - Setup options
- Troubleshooting - Common issues
- Changelog - Recent changes
- Acknowledgments - Credits
- 系统要求 - 系统依赖项
- 配置 - 设置选项
- 故障排除 - 常见问题
- 更新日志 - 近期变更
- 致谢 - 致谢名单
Advanced
进阶内容
For detailed information, see:
- Templates - README templates by project type
- Best Practices - Documentation standards and style guide
如需详细信息,请查看:
- 模板 - 按项目类型分类的README模板
- 最佳实践 - 文档标准与风格指南