From 551fd8e4553d07c835e31e2b7939ab5f18c5f95f Mon Sep 17 00:00:00 2001 From: Phil Ngo <58080811+philknows@users.noreply.github.com> Date: Wed, 17 Jan 2024 20:38:10 -0500 Subject: [PATCH] docs: add documentation contribution instructions (#6294) * add documentation contribution instructions * docs contribution to include cmd and wordlist * spell check documentation * add wordlist check script * word list correction * incorporate feedback --- CONTRIBUTING.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b5990d2eabbf..fbc23571aa37 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -229,6 +229,20 @@ Run script to download dashboards to `./dashboards` folder node scripts/download_dashboards.mjs ``` +## Contributing to Documentation + +When submitting PRs for documentation updates, build and run the documentation locally to ensure functionality before submission. For first time documentation contributors, install the python dependencies with `yarn docs:install`. Build the documentation locally with `yarn docs:build` and serve with `yarn docs:serve` + +Your locally served documentation will then be accessible at http://localhost:8000. + +If you run into build issues due to circular dependencies, branch switching or other incompatibilities, try cleaning your modules and rebuild your dependencies with: + +```sh +yarn clean && yarn clean:nm && yarn && yarn build +``` + +We also use a spelling [word list](https://github.com/ChainSafe/lodestar/blob/unstable/.wordlist.txt) as part of our documentation checks. If using unrecognized words or abbreviations, please extend the word list to pass checks. Make sure the list is sorted with `./scripts/wordlist_sort.sh` and checked with `./scripts/wordlist_sort_check.sh` for sorting and duplicates. + ## Label Guide Issues and pull requests are subject to the following labeling guidelines.