Coder Social home page Coder Social logo

soaresa / developer-docs Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aptos-labs/developer-docs

0.0 0.0 0.0 24.31 MB

Source for https://aptos.dev

Home Page: https://developer-docs-nextra.vercel.app

License: Apache License 2.0

Shell 0.29% JavaScript 1.83% Python 6.94% Rust 0.89% TypeScript 11.72% CSS 1.59% Makefile 0.02% HTML 2.82% Move 33.73% MDX 40.16%

developer-docs's Introduction

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

Install deps

You may have to run the following command first if you are on macOS M1 Sonoma or newer

pnpm add node-gyp -g
pnpm install

Develop on Nextra (New)

Note: PLEASE SEE apps/nextra/README.md for more details!

  1. Setup environment

Ensure you have configured your .env properly under apps/nextra/.env. There is a .env.example there that you can duplicate and rename to .env for simplicity.

To ensure you have the right setup, you can run

pnpm prebuild
  1. Build Nextra
npx turbo run build --filter={apps/nextra}...

This will build apps/nextra and all local packages it depends on.

  1. Navigate to the correct subdirectory
cd apps/nextra
  1. Run development server
pnpm dev

Develop on Docusaurus (Legacy)

  1. Navigate to the correct subdirectory
cd apps/docusaurus
  1. Build the repository
pnpm build
  1. Navigate to the correct subdirectory
pnpm serve

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

developer-docs's People

Contributors

hariria avatar gregnazario avatar jmintuitive avatar 0xmaayan avatar kshitjee avatar blakezimmerman avatar banool avatar moonclavedev avatar heliuchuan avatar wgb5445 avatar michelle-aptos avatar yuseiwhite avatar msmouse avatar wrwg avatar zjma avatar junkil-park avatar 0xaptosj avatar gotenjbz avatar sitalkedia avatar johnchanguk avatar rex1fernando avatar lightmark avatar igor-aptos avatar dependabot[bot] avatar 0xzihan avatar vgao1996 avatar ghostwalker562 avatar joshlind avatar brmataptos avatar angieyth avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.