Skip to content

docs: Migrate to gp-sphinx workspace packages#541

Merged
tony merged 6 commits intomasterfrom
gp-sphinx
Apr 5, 2026
Merged

docs: Migrate to gp-sphinx workspace packages#541
tony merged 6 commits intomasterfrom
gp-sphinx

Conversation

@tony
Copy link
Copy Markdown
Member

@tony tony commented Apr 5, 2026

Summary

Migrates vcspull docs from repo-local Sphinx extensions/theme/config to
the published gp-sphinx shared documentation platform.

What changed

  • pyproject.toml / uv.lock replace the repo-managed Sphinx/Furo
    stack with published gp-sphinx==0.0.1a1 and
    sphinx-argparse-neo==0.0.1a1 from PyPI.
  • docs/conf.py is rewritten around merge_sphinx_config() so shared
    theme settings, fonts, extension defaults, and asset workarounds come
    from gp-sphinx.
  • Removes vendored docs implementation now shipped by shared packages:
    local argparse helpers, the embedded sphinx_argparse_neo package,
    sphinx_fonts.py, custom docs CSS/JS/templates, and related docs test
    coverage.
  • Adds follow-up docs lexer typing cleanups so the default just mypy
    target covers the docs extension modules cleanly.

Test plan

  • env -u VIRTUAL_ENV just test — 957 passed
  • env -u VIRTUAL_ENV just ruff — all checks passed
  • env -u VIRTUAL_ENV just mypy — no issues found
  • env -u VIRTUAL_ENV just build-docs — build succeeded, 65 warnings

tony added 3 commits April 5, 2026 10:15
why: Consolidate docs dependencies into the gp-sphinx shared platform.
what:
- Remove individual sphinx extension deps from dev and docs groups
- Add gp-sphinx==0.0.1a0 and sphinx-argparse-neo==0.0.1a0
- Update uv.lock
why: sphinx_fonts, argparse extensions, templates, static assets, and
     spa-nav.js are now provided by gp-sphinx packages. Upstream
     extension tests are covered by the PyPI packages.
what:
- Delete docs/_ext/ bundled extensions (sphinx_fonts, argparse_*, sphinx_argparse_neo/)
- Keep docs/_ext/vcspull_console_lexer.py, vcspull_output_lexer.py (project-specific)
- Delete docs/_static/css/custom.css, css/argparse-highlight.css, js/spa-nav.js
- Delete docs/_templates/ (page.html, sidebar/brand.html, sidebar/projects.html)
- Delete tests/docs/ upstream extension tests
- Keep tests/docs/_ext/test_vcspull_*_lexer.py (project-specific)
- Rewrite docs/conf.py to use merge_sphinx_config() and make_linkcode_resolve()
why: Bundled extension modules are now provided by PyPI packages.
what:
- Remove mypy overrides for sphinx_fonts, cli_usage_lexer, and related modules
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.27%. Comparing base (cb1c18b) to head (83f8dfd).
⚠️ Report is 7 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #541   +/-   ##
=======================================
  Coverage   84.27%   84.27%           
=======================================
  Files          29       29           
  Lines        3809     3809           
  Branches      758      758           
=======================================
  Hits         3210     3210           
  Misses        377      377           
  Partials      222      222           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

tony added 3 commits April 5, 2026 14:33
why: Mypy was flagging the console lexer fallback import path and stale test ignores even though the docs extensions are loaded from docs/_ext on sys.path.
what:
- replace the console lexer try/except import with the supported top-level import
- remove unused import-not-found ignores from the lexer tests
- keep lexer behavior unchanged while restoring a clean mypy run
why: The docs lexer tests import modules from docs/_ext, but the default mypy scope only covered src and tests so uv run mypy failed on unresolved imports and reported a stale docutils override.
what:
- add docs/_ext to the default mypy files list
- remove the unused docutils override entries
- keep the existing shtab and pygments import exceptions
why: The shared docs packages moved to 0.0.1a1 and this migration branch should match the published versions.
what:
- bump gp-sphinx and sphinx-argparse-neo pins from 0.0.1a0 to 0.0.1a1
- refresh uv.lock to resolve the published 0.0.1a1 packages
@tony tony marked this pull request as ready for review April 5, 2026 19:35
@tony tony merged commit 0c1bcd1 into master Apr 5, 2026
8 checks passed
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