Skip to content

aptos-labs/developer-docs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Aptos Developer Docs


πŸ“– Aptos Developer Documentation

Official Aptos developer documentation, providing everything you need to set up, develop, and test your projects.

πŸ“Œ Table of Contents

πŸ“Œ For additional instructions, see the README.md inside apps/nextra/.

Aptos uses lychee-broken-link-checker to verify broken links in Markdown files.

Results can be viewed here:
πŸ”— GitHub Actions: Link Checking


πŸ’» Installation

βš™οΈ Requirements

Before you proceed, ensure you have installed the following dependencies:

  • Node.js
    πŸ“Œ Install via Homebrew:

    brew install node
  • pnpm (package manager)
    πŸ“Œ Install the latest version:

    curl -fsSL https://get.pnpm.io/install.sh | sh -

πŸ“‚ Clone the Repository

git clone https://github.com/aptos-labs/developer-docs.git

πŸ“¦ Install Dependencies

πŸ“Œ If you are using macOS M1 Sonoma or later, first run:

pnpm add node-gyp -g

πŸ“Œ Then install all dependencies:

pnpm install

πŸš€ Develop on Nextra

⚠ Important: For more details, see apps/nextra/README.md.

1️⃣ Set up the environment

πŸ“Œ Ensure your .env is properly configured inside apps/nextra/.env.
Use .env.example as a template.

πŸ“Œ Validate the setup:

pnpm prebuild

2️⃣ Build Nextra

pnpm run build

πŸ“Œ This command builds apps/nextra and all dependent local packages.

3️⃣ Navigate to the subdirectory

cd apps/nextra

4️⃣ Run the local development server

pnpm run dev

πŸ“Œ Server will be available at:
πŸ”— http://localhost:3000


🐞 Debugging

πŸ“Œ Fix formatting issues by running:

pnpm fmt

πŸ”„ Regenerating Contributors

πŸ“Œ The src/contributors.json file (which powers the author list at the bottom of doc pages) needs manual updates.

1️⃣ Authenticate with GitHub

πŸ“Œ Install GitHub CLI:
πŸ”— Installation Guide

πŸ“Œ Log into your GitHub account:

gh auth login --scopes read:user,user:email

2️⃣ Generate the contributor list

pnpm contributors

πŸ“Œ The updated list will now appear in the documentation.


πŸ”— Useful Links

Website Docs Discord X (Twitter) GitHub Discussions


πŸ“œ License

This project is licensed under the Apache 2.0.
See LICENSE for more details.


🀝 Contributors

A huge thank you to everyone who has contributed to this project! πŸ™Œ