Celestia Docs is built using Docusaurus 2, a modern static website generator. Learn more in the Docusaurus Documentation.
yarnyarn startThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
yarn buildThis command generates static content into the build directory and can be served using any static contents hosting service.
yarn lint-checkThis command checks for wrong formatting in .md and .mdx files using Prettier.
npx lint-stagedThis 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.
Using SSH:
USE_SSH=true yarn deployNot using SSH:
GIT_USER=<Your GitHub username> yarn deployIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the gh-pages branch.