Skip to content

Commit fd10bab

Browse files
committed
chore: update documentation structure and build process, replacing MkDocs with static site generation and pdoc for improved site management
1 parent 2cb92b8 commit fd10bab

File tree

97 files changed

+2712
-1319
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

97 files changed

+2712
-1319
lines changed

.devcontainer/OVERVIEW.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ A complete containerized development environment for YokedCache with Redis, Memc
4646
### Development Tools
4747
- **Pre-commit hooks** for code quality
4848
- **Coverage reporting** with pytest-cov
49-
- **Documentation building** with MkDocs
49+
- **Documentation building** with static HTML (`build_docs_site.py`) and pdoc
5050
- **CLI tools** for cache management
5151
- **Development helper script** (`./dev.sh`)
5252

.devcontainer/PORT-UPDATE-SUMMARY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ redis-cli -h redis -p 56379
5757
nc -z memcached 11211
5858

5959
# Documentation server
60-
mkdocs serve --dev-addr=0.0.0.0:58080
60+
`./dev.sh docs-serve` (static site on port 58080)
6161

6262
# Jupyter Lab
6363
jupyter lab --ip=0.0.0.0 --port=58888 --allow-root

.devcontainer/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This directory contains a complete containerized development environment for Yok
2828
- **VS Code Extensions**: Python, Pylance, Black, isort, flake8, mypy, pytest
2929
- **Code Quality**: Pre-commit hooks, linting, type checking
3030
- **Testing**: pytest with coverage reporting
31-
- **Documentation**: MkDocs for documentation building
31+
- **Documentation**: Static site via `scripts/build_docs_site.py` and pdoc (`./dev.sh docs`)
3232

3333
### Optional Monitoring Stack
3434
- **Redis Insight** (GUI for Redis) - Port 8001

.devcontainer/dev.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,21 @@ case "$1" in
9292
"docs"|"doc")
9393
log_info "Building documentation..."
9494
activate_env
95-
mkdocs build
95+
pip install -q -e ".[docs]" 2>/dev/null || true
96+
python scripts/build_docs_site.py
97+
cp CHANGELOG.md site/changelog.md 2>/dev/null || true
98+
python -m pdoc yokedcache -o site/api --template-directory site-src/pdoc-template
9699
log_success "Documentation built in site/"
97100
;;
98101

99102
"docs-serve")
100103
log_info "Starting documentation server..."
101104
activate_env
102-
mkdocs serve --dev-addr=0.0.0.0:58080
105+
pip install -q -e ".[docs]" 2>/dev/null || true
106+
python scripts/build_docs_site.py
107+
cp CHANGELOG.md site/changelog.md 2>/dev/null || true
108+
python -m pdoc yokedcache -o site/api --template-directory site-src/pdoc-template
109+
cd site && python -m http.server 58080 --bind 0.0.0.0
103110
;;
104111

105112
"redis-cli")

.flake8

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Flake8 does not read [tool.flake8] from pyproject.toml without a plugin.
2+
# Keep in sync with [tool.flake8] in pyproject.toml.
3+
[flake8]
4+
max-line-length = 88
5+
extend-ignore = E203, E501, W503

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Paste any error messages or stack traces here
3333
**Environment (please complete the following information):**
3434
- OS: [e.g. Ubuntu 20.04, Windows 10, macOS 12]
3535
- Python version: [e.g. 3.9.5]
36-
- YokedCache version: [e.g. 0.1.0]
36+
- YokedCache version: [e.g. 1.0.0-beta]
3737
- Redis version: [e.g. 7.0.5]
3838
- FastAPI version: [e.g. 0.104.1]
3939

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Describe the tests that have been performed to verify the changes. Include instr
4848
- [ ] Integration tests pass
4949
- [ ] Manual testing performed
5050
- [ ] Performance testing (if applicable)
51-
- [ ] Documentation builds correctly (`mkdocs build --strict`)
51+
- [ ] Documentation site builds (`python scripts/build_docs_site.py` after `pip install -e ".[docs]"`)
5252

5353
### Test Instructions
5454

.github/workflows/docs-seo.yml

Lines changed: 0 additions & 63 deletions
This file was deleted.

.github/workflows/docs.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.

.github/workflows/manual-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55
inputs:
66
version:
7-
description: 'Version to release (e.g., 0.3.0)'
7+
description: 'Version to release (e.g., 1.0.0-beta)'
88
required: true
99
type: string
1010
prerelease:

0 commit comments

Comments
 (0)