Repository navigation
Redesign the README and move the manual into guides - #313
Merged
Merged
Conversation
- Restructure into Features, Installation, Quick start, Usage, Signing, Compatibility and Documentation, and remove duplicated sections - Document personal_sign, Ethers.Signature, SIWE, EIP-7702, receipts, batch, fee estimation, access lists and state overrides - Replace examples with ones that were run against mainnet and anvil - Fix broken links and anchors, use canonical ethers.hexdocs.pm URLs - Link llms.txt from the README and from the HexDocs page head - Move the keccak module note to the configuration guide - Update the development setup in CONTRIBUTING.md Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
- Move the feature overview to a list near the bottom, lead with an example - Use plain Elixir examples with result comments instead of iex prompts - Use GitHub alerts for callouts and render them as ExDoc admonitions - Add a hidden llms.txt pointer at the top - Stop floating the logo over the title underline Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
- README: tagline, one example covering read, write and events, installation, a script that runs when pasted, how calls work, and a grouped feature list - New guides: Getting Started (the HexDocs landing page), Contracts, Transactions, Events, Signing and Verification, a cheatsheet and a Livebook tour, grouped in the sidebar - The README is no longer a HexDocs page, so the alert-converting markdown processor is removed and guides use ExDoc admonitions - Add usage-rules.md and usage-rules/ for coding agents, following the layout of the Ash libraries, and ship them and the guides in the Hex package - EXTRA_DOCS runs extra pages through the docs build to check their references Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
test/doc_examples.exs evaluates the "Try it" script of the README and every cell of the Livebook tour against this checkout. A scheduled workflow runs it, so a dead RPC endpoint or a renamed function fails there instead of going stale in the docs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
The topic rules repeated what the guides say. usage-rules.md now only describes how the library is used and points coding agents at the guides shipped in the package and at llms.txt. The docs-build hook that validated the longer rules is removed with them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Keeps the redesigned README. The EIP-7708 section that main added to the old README moves to the events guide, and the transactions guide mentions Ethers.Transaction.Unknown. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq
Merged
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.
The README was 520 lines and doubled as the manual, with several broken links and examples. This PR turns it into a 164-line landing page and moves the reference material into HexDocs guides.
Preview: README on this branch
README
iex, and a "Run in Livebook" buttonEthers.call/2,Ethers.send_transaction/2and friends execute themllms.txtMyContract/MyTokenmix-up, calls to the built-in ERC-20 withoutto:, the deadllamarpcendpoint, the empty "Inspecting" headingDocumentation on HexDocs
<link rel="describedby">tollms.txtEthers.Transaction.Unknownfrom Return Ethers.Transaction.Unknown for unregistered transaction types #308For coding agents
usage-rules.md: a 16-line pointer that explains how the library is used and links to the packaged guides and tollms.txt, including the version-specific URLguides/andusage-rules.mdship in the Hex packageKeeping examples honest
test/doc_examples.exsexecutes the README script and every cell of the Livebook tour against the checkout.github/workflows/doc-examples.ymlruns it weekly and on demand. It depends on a public RPC endpoint, so it does not run on PRsOther
CONTRIBUTING.md: the development setup listssolc,jqand anvil, drops the separate prepare step (mix testruns it), and gains a Documentation sectionguides/configuration.mdtakes over the note on replacing the keccak moduleassets/social_preview.pngfor the repository's social previewVerification
mix run test/doc_examples.exs README.md guides/tour.livemdpasses, and a deliberately broken example fails itmix docsbuilds with the same 14 warnings asmain(changelog history, the configuration guide, one moduledoc) and none from the new filesmix format --check-formattedandmix credo --strictpasssolc). No library code changes here, and CI runs it.Before merging
getting-started.html,contracts.html, ...). The install line and the "Try it" script use~> 1.0, and the Livebook button and theusage-rules.mdlink point atmain.SKIP_EX_KECCAK:mix.exsmakesex_abioptional under that flag whileex_keccakstays a hard dependency, so the flag may not do what the old README said. The guide wording is neutral and the dependency is untouched.hexdocs.pm/ethersinstead ofethers.hexdocs.pm.<ul type="none"><summary><h1>to avoid GitHub's underline running into the logo. It relies on GitHub's current stylesheet.🤖 Generated with Claude Code
https://claude.ai/code/session_012hqvXAod2q9mWy3P7EiDTq