Skip to content

theme(feat[sidebar]): Add django-search-query project link#67

Merged
tony merged 2 commits into
mainfrom
sidebar-django-search-query
Jul 19, 2026
Merged

theme(feat[sidebar]): Add django-search-query project link#67
tony merged 2 commits into
mainfrom
sidebar-django-search-query

Conversation

@tony

@tony tony commented Jul 19, 2026

Copy link
Copy Markdown
Member

Adds django-search-query to the sidebar project roster, with its companion package linked as (admin) following the existing (cli) / (db) / (mcp) idiom for satellite packages.

Adding that sub-link surfaced a gap in the sidebar's active-link detection. Links without a path match on hostname alone; links with a path match on prefix. On https://django-search-query.git-pull.com/packages/django-admin-search-query/ both rules fire, so the parent and the child were marked active at once. The same applied to agentgrep / (mcp) and libtmux / (pytest).

Detection now keeps only the deepest matching path, so the most specific link wins:

Location Before After
django-search-query.git-pull.com/packages/django-admin-search-query/ django-search-query + admin admin
agentgrep.org/mcp/ agentgrep + mcp mcp
libtmux.git-pull.com/pytest-plugin/ libtmux + pytest pytest
bare host roots unchanged unchanged

/admin/ on that host returns 403; /packages/django-admin-search-query/ is the live path and is what the link targets.

The template ships in sphinx-gp-theme and is shadowed byte-for-byte by gp-sphinx's own docs/_templates override, so both copies carry the change.

Verified with ruff, mypy, the full pytest suite, and just build-docs.

why: django-search-query and its admin companion package were missing
from the sidebar project roster. Adding the sub-package link exposed a
detection gap: a bare-host link and a same-host sub-path link both
matched, so the parent and child lit up together.

what:
- Add django-search-query with an (admin) sub-link to the django group
- Mark only the deepest matching link active in sidebar detection,
  so agentgrep/(mcp) and libtmux/(pytest) also resolve to one entry
- Mirror the template into the docs/_templates override
@codecov-commenter

codecov-commenter commented Jul 19, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.65%. Comparing base (3f1c339) to head (df03463).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #67   +/-   ##
=======================================
  Coverage   92.65%   92.65%           
=======================================
  Files         273      273           
  Lines       21520    21520           
=======================================
  Hits        19939    19939           
  Misses       1581     1581           

☔ View full report in Codecov by Harness.
📢 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.

why: Record the user-visible sidebar highlighting change for the
forthcoming release.

what:
- Add a Fixes entry under the unreleased heading
@tony
tony merged commit 8bb0dec into main Jul 19, 2026
44 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.

2 participants