Skip to content

Commit 185d9d4

Browse files
committed
fix: clean up whitespace in various files, update documentation structure, and enhance pagination metadata handling
1 parent 84ef8cd commit 185d9d4

24 files changed

Lines changed: 971 additions & 3872 deletions

.github/workflows/docs-check.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ jobs:
4545
import os
4646
import re
4747
import sys
48-
48+
4949
broken_links = []
50-
50+
5151
for root, dirs, files in os.walk('docs'):
5252
for file in files:
5353
if file.endswith('.md'):
@@ -66,7 +66,7 @@ jobs:
6666
target_path = os.path.join('docs', link_url)
6767
if not os.path.exists(target_path):
6868
broken_links.append(f'{filepath}: {link_url}')
69-
69+
7070
if broken_links:
7171
print('Broken internal links found:')
7272
for link in broken_links:
@@ -81,4 +81,4 @@ jobs:
8181
# Basic spell check for common technical terms
8282
echo "Performing basic spell check..."
8383
# This is a simple check - in production you might want to use a proper spell checker
84-
find docs -name "*.md" -exec grep -i "teh\|adn\|nad\|hte\|tha\|documetnation\|implmentation" {} + | head -10 || true
84+
find docs -name "*.md" -exec grep -i "teh\|adn\|nad\|hte\|tha\|documetnation\|implmentation" {} + | head -10 || true

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
- name: Build documentation
5454
run: |
5555
uv run mkdocs build --clean --strict
56-
56+
5757
- name: Upload artifact
5858
uses: actions/upload-pages-artifact@v3
5959
with:
@@ -79,4 +79,4 @@ jobs:
7979
needs: build
8080
steps:
8181
- name: Documentation build successful
82-
run: echo "Documentation built successfully for PR"
82+
run: echo "Documentation built successfully for PR"

Makefile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,3 @@ docs-clean: ## Clean documentation build artifacts
4040
help:
4141
@echo "Usage: make <target>"
4242
@awk 'BEGIN {FS = ":.*##"} /^[0-9a-zA-Z_-]+:.*?## / { printf " * %-20s -%s\n", $$1, $$2 }' $(MAKEFILE_LIST)
43-
44-

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ uvicorn main:app --reload
125125
"""
126126
This creates the following endpoints:
127127
- GET /companies/ - List companies with pagination
128-
- POST /companies/ - Create new company
128+
- POST /companies/ - Create new company
129129
- GET /companies/{item_id}/ - Get specific company
130130
- PUT /companies/{item_id}/ - Update company
131131
- DELETE /companies/{item_id}/ - Delete company
@@ -156,7 +156,7 @@ GET /companies/1/ (with single wrapper):
156156
{
157157
"data": {
158158
"id": 1,
159-
"name": "Acme Corp",
159+
"name": "Acme Corp",
160160
"full_name": "Acme Corporation Ltd.",
161161
"created_at": "2023-01-01T10:00:00Z",
162162
"updated_at": "2023-01-01T10:00:00Z"

docs/DEVELOPMENT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,4 +59,4 @@ When adding new documentation:
5959
2. Use clear, descriptive headings
6060
3. Include practical examples
6161
4. Test code examples before committing
62-
5. Update navigation in `mkdocs.yml` if needed
62+
5. Update navigation in `mkdocs.yml` if needed

docs/assets/extra.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
--content-padding: 1rem;
4242
--font-weight-semibold: 600;
4343
--font-weight-normal: 400;
44-
44+
4545
}
4646

4747
.md-nav__link--active, .md-tabs__item--active {
@@ -95,7 +95,7 @@ code {
9595
border-radius: var(--border-radius-small) !important;
9696
}
9797

98-
li code, td code {
98+
li code, td code, p > code {
9999
border: 1px solid var(--border-color) !important;
100100
}
101101

@@ -190,4 +190,4 @@ pre .md-code__content,
190190
}
191191
.admonition-title {
192192
padding: 0.7rem 2.3rem !important;
193-
}
193+
}

docs/index.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ uvicorn main:app --reload
129129
"""
130130
This creates the following endpoints:
131131
- GET /companies/ - List companies with pagination
132-
- POST /companies/ - Create new company
132+
- POST /companies/ - Create new company
133133
- GET /companies/{item_id}/ - Get specific company
134134
- PUT /companies/{item_id}/ - Update company
135135
- DELETE /companies/{item_id}/ - Delete company
@@ -160,7 +160,7 @@ GET /companies/1/ (with single wrapper):
160160
{
161161
"data": {
162162
"id": 1,
163-
"name": "Acme Corp",
163+
"name": "Acme Corp",
164164
"full_name": "Acme Corporation Ltd.",
165165
"created_at": "2023-01-01T10:00:00Z",
166166
"updated_at": "2023-01-01T10:00:00Z"
@@ -169,7 +169,7 @@ GET /companies/1/ (with single wrapper):
169169

170170
GET /companies/stats/ (custom action):
171171
{
172-
"data": 123
172+
"total": 123
173173
}
174174
"""
175175
```
@@ -222,7 +222,7 @@ Ready to build amazing APIs? Start with our [Quick Start guide](quick-start.md)
222222
Want to dive deeper? Explore our comprehensive guides:
223223

224224
- [ViewSets](viewsets/index.md) - Learn about the core ViewSet concepts
225-
- [Schemas](schemas.md) - Master schema generation and meta classes
225+
- [Meta & Schemas](schemas.md) - Master schema generation and meta classes
226226
- [Permissions](permissions.md) - Secure your APIs with permission classes
227227
- [Pagination](pagination.md) - Implement efficient data pagination
228228
- [State Management](state.md) - Manage request-scoped state

0 commit comments

Comments
 (0)