Skip to content

Redesign the README and move the manual into guides - #313

Merged
alisinabh merged 13 commits into
mainfrom
docs/readme-redesign
Nov 16, 2026
Merged

alisinabh merged 13 commits into
mainfrom
docs/readme-redesign

Conversation

@alisinabh

Copy link
Copy Markdown
Member

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

  • Header with six badges, a one-sentence tagline and one example that covers reading, writing and events
  • Installation, a "Try it" script that runs when pasted into iex, and a "Run in Livebook" button
  • "How it works": contract functions return values, and Ethers.call/2, Ethers.send_transaction/2 and friends execute them
  • A feature list in four groups, and links to the guides
  • A hidden comment at the top pointing to llms.txt
  • Fixes from the old README: dead anchor and license link, MyContract/MyToken mix-up, calls to the built-in ERC-20 without to:, the dead llamarpc endpoint, the empty "Inspecting" heading

Documentation on HexDocs

For coding agents

  • usage-rules.md: a 16-line pointer that explains how the library is used and links to the packaged guides and to llms.txt, including the version-specific URL
  • guides/ and usage-rules.md ship in the Hex package

Keeping examples honest

  • test/doc_examples.exs executes the README script and every cell of the Livebook tour against the checkout
  • .github/workflows/doc-examples.yml runs it weekly and on demand. It depends on a public RPC endpoint, so it does not run on PRs

Other

  • CONTRIBUTING.md: the development setup lists solc, jq and anvil, drops the separate prepare step (mix test runs it), and gains a Documentation section
  • guides/configuration.md takes over the note on replacing the keccak module
  • assets/social_preview.png for the repository's social preview
  • Two changelog entries

Verification

  • Every example with output was run against Ethereum mainnet or a local anvil fork of it. The hero example and the custom-error examples use a hypothetical contract.
  • mix run test/doc_examples.exs README.md guides/tour.livemd passes, and a deliberately broken example fails it
  • mix docs builds with the same 14 warnings as main (changelog history, the configuration guide, one moduledoc) and none from the new files
  • mix format --check-formatted and mix credo --strict pass
  • The test suite was not run locally (broken local solc). No library code changes here, and CI runs it.
  • The new workflow has not run on GitHub yet

Before merging

  • The README links to HexDocs pages that exist only once 1.0 docs are published (getting-started.html, contracts.html, ...). The install line and the "Try it" script use ~> 1.0, and the Livebook button and the usage-rules.md link point at main.
  • SKIP_EX_KECCAK: mix.exs makes ex_abi optional under that flag while ex_keccak stays a hard dependency, so the flag may not do what the old README said. The guide wording is neutral and the dependency is untouched.
  • The social preview image has to be uploaded by hand in the repository settings, and the repository homepage still points at hexdocs.pm/ethers instead of ethers.hexdocs.pm.
  • The README title uses <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

alisinabh and others added 13 commits November 16, 2026 00:55
- 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
- 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
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
@alisinabh
alisinabh merged commit c49b57b into main Nov 16, 2026
5 checks passed
@alisinabh
alisinabh deleted the docs/readme-redesign branch November 16, 2026 07:02
@alisinabh alisinabh mentioned this pull request Nov 23, 2026
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.

1 participant