Skip to content

docs: improve documentation, fix broken links, and add parameter desc…#17

Open
phessophissy wants to merge 1 commit into
magicstx:mainfrom
phessophissy:docs/improve-documentation-and-fix-links
Open

docs: improve documentation, fix broken links, and add parameter desc…#17
phessophissy wants to merge 1 commit into
magicstx:mainfrom
phessophissy:docs/improve-documentation-and-fix-links

Conversation

@phessophissy
Copy link
Copy Markdown

Description

This PR improves documentation quality, fixes broken links, and adds missing parameter descriptions across the Magic Protocol documentation.

Changes

📄 README.md

  • Fixed: Malformed link to bridge.clar contract (was [./contracts/bridge.clar](bridge.clar))
  • Added: Table of contents for better navigation
  • Added: Protocol overview explaining trustless BTC-xBTC atomic swaps
  • Added: Architecture section with core components and swap flow diagrams
  • Added: Project structure documentation
  • Added: Testing instructions (yarn test, clarinet test)
  • Added: Environment variables documentation
  • Added: Contributing guidelines

📄 docs/README.md

  • Fixed: Broken links using incorrect .mdinet/ path → corrected to ./../.clarinet/
  • Reorganized: Contracts into Core, Supporting, and External Dependencies sections
  • Added: Contract architecture diagram
  • Added: Descriptions for each contract's purpose

📄 docs/bridge.md

  • Added: Descriptions for 40+ function parameters that were previously empty
  • Parameters now include helpful context about types and expected values

Example parameter improvements:

Before After
txid | (buff 32) | txid | (buff 32) | The 32-byte Bitcoin transaction ID
controller | principal | controller | principal | The STX address of the supplier controller
hash | (buff 32) | hash | (buff 32) | 32-byte hash (SHA256 of preimage)

Motivation

  • 📖 Improve developer experience for new contributors
  • 🔗 Fix navigation issues caused by broken links
  • 📝 Make contract documentation more accessible and understandable

Type of Change

  • Documentation update
  • Bug fix
  • New feature
  • Breaking change

Testing

  • ✅ Verified all links resolve correctly
  • ✅ No code changes, documentation only

Checklist

  • Documentation has been updated
  • Changes follow project conventions
  • Self-review completed

…riptions

- README.md improvements:
  - Fixed malformed link to bridge.clar contract
  - Added table of contents for better navigation
  - Added protocol overview explaining trustless BTC-xBTC swaps
  - Added architecture section with swap flow diagrams
  - Added project structure documentation
  - Added testing instructions
  - Added environment variables documentation
  - Added contributing guidelines

- docs/README.md fixes:
  - Fixed broken links using incorrect '.mdinet/' path
  - Reorganized into Core Contracts, Supporting Contracts, and External Dependencies
  - Added contract architecture diagram
  - Added descriptions for each contract

- docs/bridge.md improvements:
  - Added descriptions for all function parameters that were previously empty
  - Parameters now include helpful context about types and expected values
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