Welcome to Astar Docs GitHub Repo.
This website is built using Docusaurus 2, a modern static website generator.
- Make sure
git
andyarn
exist as commands in your terminal/vscode: https://yarnpkg.com/ - Git/Github: understand what the following commands do
- managing branches (
git checkout main
andgit checkout -b feat/your-new-branch
- Commits (
git add .
andgit commit
,git push -u origin feat/your-new-branch
) - Creating PR in Github
- maybe: stashing (
git stash
andgit stash pop
are your best friends)
- managing branches (
- Markdown basics
- titles, subtitles
- lists
- hyperlinks
- Clone repo
git clone https://github.com/astarnetwork/astar-docs
- Install dependencies by running
yarn
(cd astar-docs
,yarn
) yarn start
- spin up realtime website
- Get latest version of docs locally
- Make sure you’re on the main branch (
git checkout main
) - Pull the latest version of the docs (
git pull
) - Create a new branch (
git checkout -b feat/new-feature-name-here
)
- Make sure you’re on the main branch (
- Create/update the docs as you please
- Spin up live docs (
yarn start
)- If you are working on a translation of a document use
yarn start --locale IT
(example for Italian) (checkout Docusaurus docs or further reference
- If you are working on a translation of a document use
- Add new page/tweaks/etc
- When you’re happy with it, ensure
yarn build
runs without errors
- Spin up live docs (
- PR and staging environment
- Commit your changes and push the new branch up to Github (
git add .
andgit commit
,git push -u origin feat/your-new-branch
) - Create New PR on Github (https://github.com/astarnetwork/astar-docs)
- Once PR is up, CICD will automatically build you a unique staging link you can see progress of this on Actions tab in Github
- Get feedback from team
- Commit your changes and push the new branch up to Github (
- When PR is ready for merge, merge it by clicking the button at the bottom saying Merge and Close
- Should be soon available at
[https://docs.astar.network](https://docs.astar.network)
- Likely, a broken build got pushed to
main
somehow. Remove the commit frommain
and force push tomain
, reopen PR in a new PR