Skip to content

Add documentation scaffolding with MkDocs Material - #68

Open
phinate wants to merge 5 commits into
pr07-ci-workflowsfrom
pr08-docs-scaffolding
Open

Add documentation scaffolding with MkDocs Material#68
phinate wants to merge 5 commits into
pr07-ci-workflowsfrom
pr08-docs-scaffolding

Conversation

@phinate

@phinate phinate commented Mar 19, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Add docs dependency group: mkdocs-material>=9.0, mkdocstrings[python]>=0.27
  • Add mkdocs.yml with Material theme, search, and mkdocstrings plugin
  • Add placeholder docs/index.md and docs/reference.md (auto-generated API docs)
  • All docs files are conditional on the include_docs Copier variable

Test plan

  • uv sync --group docs && uv run mkdocs serve starts a local dev server without errors
  • uv run mkdocs build --strict builds the site without warnings
  • mkdocstrings renders the package's __init__.py docstring on the reference page
  • Setting include_docs: false in Copier answers excludes all docs files and the docs dependency group

🤖 Generated with Claude Code

Nathan Simpson and others added 5 commits March 19, 2026 12:30
- Remove all [tool.mypy] configuration
- Add [tool.ty] configuration with environment, rules, and src settings
- ty runs via uvx (not as a project dependency)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Simplify rule selection to core best-practice set
- Add target-version templated from min_python_version
- Add per-file-ignores for tests
- Add isort known-first-party config
- Configure format quote-style and indent-style
- Remove legacy isort.required-imports and typing-conditional config

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Replace mypy hook with validate-pyproject
- Use ruff-check (with --fix) and ruff-format from astral-sh
- Add uv-lock hook to keep lockfile in sync
- Add note about pending ty pre-commit hook (astral-sh/ty#269)
- Add check-toml hook

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CI:
- Split into parallel lint, typecheck, and test jobs
- Use astral-sh/setup-uv with caching
- Derive Python version matrix from min_python_version
- Use uv sync --locked to verify lockfile
- Add concurrency group to cancel stale runs

CD:
- Replace pipx run build with uv build
- Update to actions/upload-artifact@v4 and download-artifact@v4
- Simplify to only trigger on release published

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Add docs dependency group (mkdocs-material, mkdocstrings)
- Add mkdocs.yml with Material theme config
- Add placeholder docs/index.md and docs/reference.md
- All docs files are conditional on include_docs copier variable

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@phinate
phinate force-pushed the pr07-ci-workflows branch from b772fb8 to 18921c6 Compare March 19, 2026 13:03
@phinate
phinate force-pushed the pr08-docs-scaffolding branch from 15cf9e3 to 9a066fb Compare March 19, 2026 13:03
@phinate
phinate force-pushed the pr07-ci-workflows branch 3 times, most recently from e8dea74 to 5d2133a Compare March 20, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant