Contributing to Docs
The OXN documentation is a living resource — corrections, additions, and clarifications from the community are welcome.
Quick suggestions
Every page has a "Suggest an edit" link at the bottom (points to the source .md file on GitHub). For small fixes — typos, broken links, wrong version numbers — this is the fastest path.
Local development
To work on the docs locally:
git clone https://github.com/oxn-network/oxn-docs
cd oxn-docs
npm install
npm start # dev server at http://localhost:3000
npm run build # production build
npm run serve # serve the built site
The build supports both English and Chinese locales. Preview Chinese:
npm start -- --locale zh-CN
Style guide
Voice
- Direct, active voice. "Set
gasLimitto 500,000" beats "ThegasLimitshould be set to 500,000". - Second person for instructions. "You'll need Node.js 18+" beats "One needs Node.js 18+".
- Assume the reader knows Ethereum but is new to OXN.
Code samples
- Complete and runnable when possible. Fragmented snippets frustrate readers.
- Include imports and pragma lines in Solidity examples.
- Include
gasLimiton every OXN transaction example. - Prefer
pariscompiler settings.
Terminology
- OXN — the chain, the brand.
- BLUAI / TBLUAI — native token symbols displayed in wallets.
TBLUAIon testnet (no economic value),BLUAIon mainnet. UseBLUAIwhen describing the token concept,TBLUAIwhen describing concrete testnet display. 0x…— EVM addresses.oxn1…— native addresses.- Encrypted call — a transaction with an encrypted CBOR envelope.
- Signed query — an authenticated
eth_callthat populatesmsg.sender.
Be consistent with the Glossary.
Formatting
- Use Markdown tables for reference data.
- Use
:::info,:::warning,:::dangercallouts for important notes. - Fence code blocks with the language for syntax highlighting.
- Left-hand sidebar order is set by
sidebar_positionin frontmatter.
Adding a new page
- Create a new
.mdfile in the appropriate section folder underdocs/. - Add frontmatter (
title,sidebar_position,description). - Write content.
- Create the corresponding translated file under
i18n/zh-CN/docusaurus-plugin-content-docs/current/<section>/. - Build locally to verify no broken links.
- Submit a PR.
PR review process
Reviewers check:
- Technical accuracy.
- Consistency with style guide.
- Both locales present (if adding new pages).
- Build passes locally.
- Cross-links to related pages.
Getting help with contributions
For non-trivial contributions — new pages, larger reorganizations — open a discussion issue first to align on scope.