Coder Social home page Coder Social logo

htuna07 / 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 20.08 MB

Source for https://aptos.dev

License: Apache License 2.0

Shell 0.61% JavaScript 2.26% Python 13.94% Rust 1.84% TypeScript 6.93% CSS 1.58% Makefile 0.05% HTML 3.21% Move 69.56% MDX 0.03%

developer-docs's Introduction

Developer Documentation

This Aptos Developer Documentation is built using Docusaurus 2 and displayed on https://aptos.dev/. Follow the below steps to build the docs locally and test your contribution.

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

This step will configure the Docusaurus static site generator.

  1. Start the server locally. This will also open the locally built docs in your default browser.

NOTE: This step will not generate static html files, but will render the docs dynamically.

pnpm start
  1. See your changes staged at: http://localhost:3000/

  2. Create a pull request with your changes as described in our Contributing README.

(Optional) Build static html files

Execute the below steps if you want to generate static html documentation files. A build directory will be created with the static html files and assets contained in it.

  1. Make sure you install dependencies.
pnpm install
  1. Build static html files with pnpm.
pnpm build

This command generates static html content and places it in the build directory.

  1. Finally, use the below command to start the documentation server on your localhost.
pnpm run 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

gregnazario avatar moonclavedev avatar 0xmaayan avatar banool avatar aluon avatar brmataptos avatar nnsw3 avatar 0xmigo avatar johnchanguk avatar junkil-park avatar rahxephon89 avatar darren-wangg avatar joaolago1113 avatar omahs 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.