Repository navigation
Conversation
tony
force-pushed
the
example-style
branch
4 times, most recently
from
October 4, 2026 16:54
f4b87f5 to
7e5382c
Compare
tony
force-pushed
the
example-style
branch
5 times, most recently
from
October 4, 2026 23:18
7d63629 to
412e01d
Compare
tony
force-pushed
the
example-style
branch
3 times, most recently
from
October 5, 2026 05:56
8fe9a89 to
53893ed
Compare
tony
force-pushed
the
example-style
branch
5 times, most recently
from
October 5, 2026 23:20
da1eed4 to
1cee3c5
Compare
tony
force-pushed
the
example-style
branch
2 times, most recently
from
October 11, 2026 06:22
a462f2f to
c6391cc
Compare
tony
force-pushed
the
example-style
branch
2 times, most recently
from
October 11, 2026 10:45
93e1747 to
9c0ef68
Compare
tony
force-pushed
the
example-style
branch
2 times, most recently
from
October 11, 2026 12:53
f950125 to
ba04a4e
Compare
why: Ruby examples need a width that fits the site's code blocks, and contributors need a check they can run before posting an update. what: - Format source at 100 columns and examples at 80 with syntax_tree. - Keep Standard in charge of scripts and refresh copied examples and API source links after a write.
why: The format check needs a clean baseline for current Ruby code and the examples people copy from the documentation. what: - Run the formatter over the current sources and examples. - Regenerate the marked excerpts and API source links.
why: The compatibility workflow reports Ruby source that drifts from the format used for the checked-in examples. what: - Check Ruby formatting before the release artifact dry run. - Document the write and read-only commands in CONTRIBUTING.
why: Git blame can skip layout changes when tracing the history of a line. what: - Add the formatter commit to .git-blame-ignore-revs.
why: The capture example starts a greeting worker before sending input and checking its screen and exit status. what: - Name the greeting command and refresh its two README excerpts.
why: The initializer supplies both client metadata and capabilities, while the authored program needs its shell commands in order. what: - Name the client metadata and capabilities in the CLI initializer. - Join the three shell commands without changing their bytes.
why: The release example fits the code block when the command is copied with a version number. what: - Continue the command after the timing prefix.
why: Example width, markers, and sync rules were unwritten, so authors could not tell which lines a formatter owns and which a width check would own. what: - Add the shared Examples section after Markdown and examples - Add the repository's limit, formatter scope, example markers and sync commands, with a real before and after - Anchor the Code blocks rules the shared section links to
why: Agents editing an example program or code block need to find the Examples rules. what: - Add code examples to the WRITING.md routing line and link the section
why: Readers copy Ruby programs, client configuration and shell commands from fixed-width code blocks. The shared action verifies those lines along with the port's example policy and exceptions. what: - Run the pinned width action in compatibility and document its local read-only check. - Name the remaining long expressions, wrap the commands and refresh copied excerpts.
why: Formatting the workspace gemspec put each shipped file on its own line. The negative case needs to remove the file whatever its layout. what: - Remove the changelog through the copied gemspec's file list.
why: Contributors can check format and example width before release. what: - Record the formatter and example width check under 0.1.4.
This branch was previously 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.
examples/.The original merge order calls for the shared site’s 80-column layout at laptop widths. This pass verified the Ruby change on Linux. Docs layout dependency
What changed
Policy
.github/WRITING.mdincludes the shared example rules and explains the files, source markers, width and excerpt commands for Ruby.AGENTS.mdlinks to that section.Tooling
scripts/formatuses the locked Syntax Tree version until formatting is stable, then refreshes copied examples and API source links.--checkis read-only..git-blame-ignore-revslists the formatter commit. Rungit config blame.ignoreRevsFile .git-blame-ignore-revsto skip that layout change locally..github/example-width.tomland checks Markdown and Ruby, YAML and JSON example sources. The manifest keeps its expected output intact. The allowlist records the deliberately wide example in WRITING.md. Shared checkerExamples
Evidence
--print-width. An unformatted line caused the read-only gate to fail and left the source bytes intact. The shared checker rejected a wide Markdown line and a stale allow entry. Both gates passed on the rebased source. Syntax Tree usageHow to verify
$ mise exec -- bundle exec scripts/format --checkDownload the same checker used by CI and run it from the checkout. Pinned shared checker
$ python3 /path/to/check_example_width.py --root .$ mise exec -- bundle exec scripts/examples/examples --check$ mise exec -- bundle exec scripts/check outer