Skip to content

Commit 61dea98

Browse files
committed
docs: improve docs
1 parent 6242519 commit 61dea98

File tree

2 files changed

+35
-138
lines changed

2 files changed

+35
-138
lines changed

README.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,26 @@
44
[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=wisarootl_leetcode-py&metric=security_rating)](https://sonarcloud.io/summary/new_code?id=wisarootl_leetcode-py)
55
[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=wisarootl_leetcode-py&metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=wisarootl_leetcode-py)
66
[![codecov](https://codecov.io/gh/wisarootl/leetcode-py/graph/badge.svg?token=TI97VUIA4Z)](https://codecov.io/gh/wisarootl/leetcode-py)
7-
[![tests](https://img.shields.io/github/actions/workflow/status/wisarootl/leetcode-py/ci-test.yml?branch=main&label=tests&logo=github)](https://github.com/wisarootl/zerv/actions/workflows/ci-test.yml)
8-
[![release](https://img.shields.io/github/actions/workflow/status/wisarootl/leetcode-py/cd.yml?branch=main&label=release&logo=github)](https://github.com/wisarootl/zerv/actions/workflows/cd.yml)
7+
[![tests](https://img.shields.io/github/actions/workflow/status/wisarootl/leetcode-py/ci-test.yml?branch=main&label=tests&logo=github)](https://github.com/wisarootl/leetcode-py/actions/workflows/ci-test.yml)
8+
[![release](https://img.shields.io/github/actions/workflow/status/wisarootl/leetcode-py/cd.yml?branch=main&label=release&logo=github)](https://github.com/wisarootl/leetcode-py/actions/workflows/cd.yml)
99
[![downloads](https://static.pepy.tech/personalized-badge/leetcode-py-sdk?period=total&units=international_system&left_color=grey&right_color=brightgreen&left_text=pypi%20downloads)](https://pepy.tech/projects/leetcode-py-sdk)
1010
[![python](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12%20%7C%203.13-brightgreen?logo=python)](https://pypi.org/project/leetcode-py-sdk/)
1111

1212
A Python package to generate professional LeetCode practice environments. Features automated problem generation from LeetCode URLs, beautiful data structure visualizations (TreeNode, ListNode, GraphNode), and comprehensive testing with 10+ test cases per problem. Built with professional development practices including CI/CD, type hints, and quality gates.
1313

14+
## Table of Contents
15+
16+
- [What's Included](#-whats-included)
17+
- [Quick Start](#-quick-start)
18+
- [Problem Structure](#-problem-structure)
19+
- [Key Features](#-key-features)
20+
- [Usage Patterns](#-usage-patterns)
21+
- [Helper Classes](#-helper-classes)
22+
- [Commands](#️-commands)
23+
- [Development Setup](#️-development-setup)
24+
- [Architecture](#️-architecture)
25+
- [Quality Metrics](#-quality-metrics)
26+
1427
**What makes this different:**
1528

1629
- 🤖 **[LLM-Assisted Workflow](https://github.com/wisarootl/leetcode-py/blob/main/docs/llm-assisted-problem-creation.md)**: Generate new problems instantly with AI assistance
@@ -30,15 +43,12 @@ A Python package to generate professional LeetCode practice environments. Featur
3043

3144
### System Requirements
3245

33-
- **Python 3.13+** - Modern Python runtime with latest type system features
34-
- **Poetry** - Dependency management and packaging
35-
- **Make** - Build automation (development workflows)
36-
- **Git** - Version control system
37-
- **Graphviz** - Graph visualization library (for data structure rendering)
46+
- **Python 3.10+** - Python runtime
47+
- **Graphviz** - Graph visualization library ([install guide](https://graphviz.org/download/))
3848

3949
```bash
4050
# Install the package
41-
pip install leetcode-py
51+
pip install leetcode-py-sdk
4252

4353
# Generate problems anywhere
4454
lcpy gen -n 1 # Generate Two Sum
@@ -150,30 +160,20 @@ _Interactive multi-cell playground with rich data structure visualization for ea
150160

151161
### CLI Usage (Global Installation)
152162

153-
Perfect for quick problem generation anywhere:
154-
155-
```bash
156-
# Generate specific problems
157-
lcpy gen -n 1 -n 125 -n 206 # Multiple problems by number
158-
lcpy gen -s two-sum -s valid-palindrome # Multiple problems by slug
159-
160-
# Bulk generation
161-
lcpy gen -t grind-75 # All Grind 75 problems
162-
lcpy gen -t grind-75 -d Easy # Only Easy problems from Grind 75
163-
164-
# Explore available problems
165-
lcpy list # All problems
166-
lcpy list -t grind-75 # Filter by tag
167-
lcpy list -d Medium # Filter by difficulty
168-
169-
# Fetch problem data
170-
lcpy scrape -n 1 > two_sum.json # Save problem data
171-
```
163+
Perfect for quick problem generation anywhere. See the 📖 **[Complete CLI Usage Guide](https://github.com/wisarootl/leetcode-py/blob/main/docs/cli-usage.md)** for detailed documentation with all options and examples.
172164

173165
## 🛠️ Development Setup
174166

175167
For working within this repository to generate additional LeetCode problems using LLM assistance:
176168

169+
### Development Requirements
170+
171+
- **Python 3.10+** - Modern Python runtime with latest type system features
172+
- **Poetry** - Dependency management and packaging
173+
- **Make** - Build automation (development workflows)
174+
- **Git** - Version control system
175+
- **Graphviz** - Graph visualization library ([install guide](https://graphviz.org/download/))
176+
177177
```bash
178178
# Clone repository for development
179179
git clone https://github.com/wisarootl/leetcode-py.git

docs/improvement-checklist.md

Lines changed: 8 additions & 111 deletions
Original file line numberDiff line numberDiff line change
@@ -4,130 +4,27 @@
44

55
### README.md Critical Issues
66

7-
- [ ] **Fix badge links**: Update tests and release badges from `wisarootl/zerv` to `wisarootl/leetcode-py`
8-
- [ ] **Python version consistency**: Change "Python 3.13+" to "Python 3.10+" to match badge
9-
- [ ] **Fix pip install command**: Update from `pip install leetcode-py` to `pip install leetcode-py-sdk`
7+
- [x] **Fix badge links**: Update tests and release badges from `wisarootl/zerv` to `wisarootl/leetcode-py`
8+
- [x] **Python version consistency**: Change "Python 3.13+" to "Python 3.10+" to match badge
9+
- [x] **Fix pip install command**: Update from `pip install leetcode-py` to `pip install leetcode-py-sdk`
1010

1111
### Navigation & Structure
1212

13-
- [ ] **Add Table of Contents**: Include TOC at top of README for better navigation
14-
- [ ] **Consolidate CLI sections**: Reduce redundancy between Quick Start, Usage Patterns, and CLI guide
15-
- [ ] **Reorganize sections**: Move Development Setup after CLI usage for better flow
13+
- [x] **Add Table of Contents**: Include TOC at top of README for better navigation
14+
- [x] **Consolidate CLI sections**: Reduce redundancy between Quick Start, Usage Patterns, and CLI guide
15+
- [x] **Reorganize sections**: Move Development Setup after CLI usage for better flow
1616

1717
## Content Enhancements
1818

1919
### README.md Improvements
2020

21-
- [ ] **Add "Getting Started in 5 Minutes"**: Absolute minimum steps for new users
22-
- [ ] **Performance metrics**: Add statistics like "Generate 75 problems in under 30 seconds"
23-
- [ ] **User personas**: Different paths for beginner vs advanced developers
24-
- [ ] **Comparison table**: Compare with other LeetCode practice tools
25-
- [ ] **More concrete examples**: Show before/after of problem generation
26-
27-
### CLI Usage Guide
28-
29-
- [ ] **Add troubleshooting section**: Common CLI errors and solutions
30-
- [ ] **Performance tips**: Best practices for bulk operations
31-
- [ ] **Combine multiple options**: Examples of complex CLI combinations
32-
- [ ] **Error handling examples**: Show specific error messages and fixes
21+
- [x] **Fix Quick Start system requirements**: Change from development requirements (Poetry/Make/Git) to CLI usage requirements (Python + Graphviz from https://graphviz.org/download/)
22+
- [x] **Move development system requirements**: Add proper development requirements to Development Setup section
3323

3424
### LLM-Assisted Problem Creation Guide
3525

36-
- [ ] **Prerequisites checklist**: Clear setup requirements at top
3726
- [ ] **Test case verification**: Section on verifying generated test correctness
38-
- [ ] **More prompt examples**: Expand good vs bad prompt examples
39-
- [ ] **Integration examples**: Show how it fits into development workflow
4027

4128
### CONTRIBUTING.md
4229

43-
- [ ] **Examples of contribution types**: Clarify "small changes" vs "larger changes"
44-
- [ ] **Link to issue templates**: Reference different contribution types
4530
- [ ] **Development workflow**: More detailed setup and testing instructions
46-
47-
## New Documentation
48-
49-
### Missing Documentation Files
50-
51-
- [ ] **API Reference** (`docs/api-reference.md`): Document helper classes with examples
52-
- TreeNode methods and usage
53-
- ListNode methods and usage
54-
- GraphNode methods and usage
55-
- DictTree methods and usage
56-
- [ ] **Troubleshooting Guide** (`docs/troubleshooting.md`): Common issues and solutions
57-
- [ ] **FAQ** (`docs/faq.md`): Frequently asked questions
58-
- [ ] **Performance Guide** (`docs/performance.md`): Optimization tips and benchmarks
59-
60-
### Enhanced Examples
61-
62-
- [ ] **Data structure examples**: Concrete usage of TreeNode, ListNode, etc.
63-
- [ ] **Integration examples**: How to use with existing projects
64-
- [ ] **Advanced usage**: Complex scenarios and edge cases
65-
66-
## Visual & Media
67-
68-
### Image Consistency
69-
70-
- [ ] **Standardize screenshots**: Ensure consistent IDE theme across all images
71-
- [ ] **Update outdated images**: Verify all screenshots reflect current UI
72-
- [ ] **Add missing visuals**: More examples of CLI output and generated files
73-
74-
### Links & References
75-
76-
- [ ] **Verify all links**: Check internal and external links work
77-
- [ ] **Add more references**: Link to LeetCode, Grind 75, related tools
78-
- [ ] **Fix image accessibility**: Ensure all images load correctly
79-
80-
## Technical Improvements
81-
82-
### SEO & Discoverability
83-
84-
- [ ] **Improve meta descriptions**: Better GitHub search results
85-
- [ ] **Add keywords**: More searchable terms in descriptions
86-
- [ ] **Tag optimization**: Better categorization and tagging
87-
88-
### Code Quality
89-
90-
- [ ] **Code example validation**: Ensure all code snippets work
91-
- [ ] **Import statement examples**: Show correct import patterns
92-
- [ ] **Error handling**: Better error message examples
93-
94-
## Organization & Maintenance
95-
96-
### File Structure
97-
98-
- [ ] **Organize docs folder**: Better categorization of documentation
99-
- [ ] **Cross-references**: Better linking between related docs
100-
- [ ] **Version consistency**: Ensure all docs reflect current version
101-
102-
### Content Maintenance
103-
104-
- [ ] **Regular review schedule**: Plan for keeping docs updated
105-
- [ ] **User feedback integration**: Process for incorporating user suggestions
106-
- [ ] **Automated checks**: Validate links and code examples in CI
107-
108-
## Implementation Priority
109-
110-
### Phase 1 (Immediate)
111-
112-
1. Fix badge links
113-
2. Update Python version consistency
114-
3. Fix pip install command
115-
4. Add Table of Contents
116-
117-
### Phase 2 (Short-term)
118-
119-
1. Create API reference
120-
2. Add troubleshooting guide
121-
3. Enhance CLI documentation
122-
4. Improve visual consistency
123-
124-
### Phase 3 (Long-term)
125-
126-
1. Create comprehensive FAQ
127-
2. Add performance guide
128-
3. Develop user persona paths
129-
4. Build comparison resources
130-
131-
---
132-
133-
**Note**: This checklist should be reviewed and updated regularly as the project evolves and user feedback is received.

0 commit comments

Comments
 (0)