Skip to content

Complete the capability directory in the Server docstring - #813

Open
tony wants to merge 1 commit into
masterfrom
server-directory
Open

tony wants to merge 1 commit into
masterfrom
server-directory

Conversation

@tony

@tony tony commented Nov 1, 2026 •

Copy link
Copy Markdown
Member

Closes #812

Part of libtmux/docs#231

The libtmux.Server docstring's task directory, which #857 added, now covers the members it left out. The additions keep the shape the docs site draws as a capability directory (groupDirectory): each group is a bold-led paragraph of guidance followed by a Label: ... list that holds only references, which libtmux.org needs to render a group as a directory rather than prose.

  • The Clients group lists refreshing, suspending and locking a client and locking the server, and notes that these need an attached client. Two groups join before Running a command: Messages, prompts and access (the command list, the message log, prompt history and access control) and Things that need a terminal (menus, prompts and confirmations, with the terminal and tmux 3.3 requirements their methods document).
  • Each group is guidance followed by a Label: ... list of :meth: and :attr: roles, so Sphinx links every member. The prose states only what the member docstrings and the package contract in src/libtmux/AGENTS.md say; no deprecated member is listed.
  • The parameters, examples and references of the docstring are unchanged.

The site does not read Sphinx roles in the directory yet; libtmux/docs#231 adds it. Until that lands the section reads as ordinary reStructuredText, which Sphinx renders as before.

Checked:

  • ruff format --check, ruff check and the Server doctests pass
  • sphinx-build of docs/ succeeds with no warnings, and every role in the section is a link in the generated libtmux.server page

@codecov

codecov Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.87%. Comparing base (c7ba4d3) to head (7815fa6).
⚠️ Report is 30 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #813      +/-   ##
==========================================
- Coverage   56.94%   56.87%   -0.08%     
==========================================
  Files          29       29              
  Lines        4267     4267              
  Branches      855      855              
==========================================
- Hits         2430     2427       -3     
- Misses       1530     1533       +3     
  Partials      307      307              

☔ 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.

@tony
tony marked this pull request as ready for review November 1, 2026 14:59
@tony
tony force-pushed the server-directory branch from de4e3cd to 8b00005 Compare November 7, 2026 02:19
@tony tony changed the title Add a capability directory to the Server docstring Complete the capability directory in the Server docstring Nov 22, 2026
@tony
tony force-pushed the server-directory branch 2 times, most recently from 5401c4c to 06fef9c Compare November 22, 2026 14:53
why: The Server docstring's task directory left out the client controls,
the message and prompt commands, access control, and the methods that
need a terminal client, so those members had no entry point.

what:
- List refresh, suspend and lock for clients and the server, and note
  they need an attached client
- Add a group for the command list, message log, prompt history and
  access control
- Add a group for menus, prompts and confirmations, with the terminal
  and tmux 3.3 requirements their methods document
@tony tony added the documentation Docs, examples, recipes label Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs, examples, recipes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Write the Server capability directory in the shape the docs site draws

1 participant