Skip to content

msakuta/aptos-developer-docs

 
 

Repository files navigation

Developer Documentation

Visit the README.md under apps/docusaurus for more steps on building / developing in this repo

We now use lychee-broken-link-checker to check for broken links in the GitHub Markdown. We use a corresponding link checker for pages on Aptos.dev.

With results visible at: https://github.com//aptos-labs/developer-docs/actions/workflows/links.yml

Installation

IMPORTANT: These installation steps apply to macOS environment.

Requirements

Before you proceed, make sure you install the following tools.

  • Install Node.js by executing the below command on your Terminal:
brew install node
  • Install the latest pnpm by executing the below command on your Terminal:
curl -fsSL https://get.pnpm.io/install.sh | sh -

Clone the Developer docs repo

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

Build and serve the docs locally

  1. Run pnpm.
pnpm install
  1. Build the repository
pnpm build
  1. Navigate to the correct subdirectory

Docusaurus

cd apps/docusaurus

Nextra

cd apps/nextra
  1. Run the development server

Docusaurus

pnpm serve

Nextra

pnpm dev

See the README.md in each respective app for more information

Debugging

Fix formatting issues by running:

pnpm fmt

Regenerating contributors

The src/contributors.json file (which powers the list of Authors at the bottom of doc pages) needs to be manually generated.

In order to generate the contributor map you must authenticate with GitHub. The best way to do that is using GitHub CLI ([installation guide(https://github.com/cli/cli#installation)]). Once you have the GitHub CLI installed, you can run the following command to authenticate:

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

Once that is done, you can generate the map with this command:

pnpm contributors

Releases

No releases published

Packages

No packages published

Languages

  • Move 44.0%
  • MDX 28.1%
  • TypeScript 10.4%
  • Python 8.9%
  • HTML 4.0%
  • CSS 2.1%
  • Other 2.5%