Skip to content

AnchorRegistry/ar-python-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

anchorregistry — Documentation

Source for anchorregistry.readthedocs.io.

Built with Sphinx + nbsphinx + ReadTheDocs. Docs are generated from .rst pages and executable Jupyter notebooks that run against the live AnchorRegistry contract.


Structure

docs/
├── conf.py                  # Sphinx configuration
├── index.rst                # Landing page + toctree
├── quickstart.rst           # pip install → first call → output
├── configuration.rst        # configure(), env vars, network switching
├── api.rst                  # autodoc — all public functions
├── contract.rst             # contract reference — address, ABI, Etherscan
├── requirements.txt         # ReadTheDocs build dependencies
│
└── notebooks/
    ├── quickstart.ipynb     # get_by_arid — single anchor, live output
    ├── querying.ipynb       # all five query functions demonstrated
    ├── recover.ipynb        # full registry reconstruction — the trust proof
    ├── watermark.ipynb      # SPDX-Anchor / DAPX-Anchor generation
    └── dataframe.ipynb      # to_dataframe() — analytics use case

Build locally

# Install dependencies
pip install sphinx sphinx-rtd-theme nbsphinx ipython anchorregistry
brew install pandoc   # required by nbsphinx

# Build
sphinx-build -b html docs docs/_build/html

# View
open docs/_build/html/index.html

Clean rebuild:

rm -rf docs/_build && sphinx-build -b html docs docs/_build/html

Notebooks

Notebooks use nbsphinx_execute = "never" — outputs are pre-saved from real Sepolia runs. The docs build fast and reliably on ReadTheDocs without needing an RPC endpoint at build time.

To re-execute notebooks against Sepolia:

pip install jupyter anchorregistry

# Set your RPC endpoint
export BASE_RPC_URL=https://sepolia.infura.io/v3/YOUR_KEY

jupyter nbconvert --to notebook --execute --inplace docs/notebooks/*.ipynb

After mainnet deploy, re-run against mainnet and save new outputs before publishing.


ReadTheDocs

Auto-builds on every push to main. Build config: .readthedocs.yaml.


Related

About

Python client docs for AnchorRegistry

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors