Repository navigation
server(docs): Highlight the with_owned/2 example - #173
Merged
Merged
Conversation
why: The reference site renders the indented callback as prose, which joins statements when a reader copies the example. what: - Mark the callback as Elixir under the examples heading. - Name the pane command so the copied program fits within 80 columns.
why: Readers can now copy the highlighted callback from the reference. what: - Record the example formatting change under documentation.
tony
force-pushed
the
docs/with-owned-example
branch
from
December 5, 2026 17:56
323d660 to
8b03998
Compare
This was referenced Dec 5, 2026
This branch had an error being deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #170.
What changed, and why
The original docstring rendered as code in HexDocs, but the libtmux.org reference joined the alias and callback into prose. The example now has an
elixirfence and an Examples heading. A reader can copy one block that creates a private session, takes a snapshot and letsServer.with_owned/2retire the server.The site adapter fix also supports already-published indented docstrings. Companion pull request
This source fix can land independently of the adapter. Its docstring and changelog also apply cleanly alongside #169 and #172.
Checks run
Rebased checks
The full core suite passed 477 cases on tmux 3.8 in 38.49 s after rebasing onto #172. The unsupported-release case was skipped.
The published preview built from
323d660cshows one syntax-highlighted Elixir block. The example is byte-identical on the rebased head8b039984, including the blank line and callback indentation. Rendered exampleTool use
Codex edited the docstring and executed the example. A separate Codex reviewer compared the rendered lines with the source.