MarcinSPro / docs

Celestia Documentation Site

Home Page:https://docs.celestia.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Celestia Docs Page

Celestia Docs is built using Docusaurus 2, a modern static website generator. Learn more in the Docusaurus Documentation.

Installation πŸ› οΈ

yarn

Local Development πŸ–₯️

yarn start

This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.

Build πŸ‘·β€β™€οΈ

yarn build

This command generates static content into the build directory and can be served using any static contents hosting service.

Lint πŸ”Ž

yarn lint-check

This command checks for wrong formatting in .md and .mdx files using Prettier.

Format πŸ“

npx lint-staged

This command will format .md and .mdx files with Prettier that are in staging area.

Please note that npx lint-staged only works for the files that are in the staging area. If a file is not formatted and not in the staging area, you will need to add the unformatted file to the staging area first using git add <file>, then you can run npx lint-staged. This command will then format the files that are in the staging area.

Deployment πŸš€

Using SSH:

USE_SSH=true yarn deploy

Not using SSH:

GIT_USER=<Your GitHub username> yarn deploy

If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.

About

Celestia Documentation Site

https://docs.celestia.org

License:Apache License 2.0


Languages

Language:JavaScript 82.2%Language:CSS 9.1%Language:MDX 7.5%Language:Shell 1.1%