Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: add documentation contribution instructions #6294

Merged
merged 6 commits into from
Jan 18, 2024

Conversation

philknows
Copy link
Member

Motivation

This PR is to persist the instructions for building docs locally for revision before submission.

Description

This PR modifies contribution.md to include the reference details for future contributors.

@philknows philknows requested a review from a team as a code owner January 14, 2024 20:02
Copy link

codecov bot commented Jan 14, 2024

Codecov Report

Merging #6294 (dfc7be6) into unstable (098d35a) will decrease coverage by 3.85%.
Report is 15 commits behind head on unstable.
The diff coverage is n/a.

Additional details and impacted files
@@             Coverage Diff              @@
##           unstable    #6294      +/-   ##
============================================
- Coverage     80.38%   76.53%   -3.85%     
============================================
  Files           202      248      +46     
  Lines         19620    25943    +6323     
  Branches       1176     1449     +273     
============================================
+ Hits          15771    19855    +4084     
- Misses         3821     6058    +2237     
- Partials         28       30       +2     

This comment was marked as off-topic.

CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
CONTRIBUTING.md Outdated Show resolved Hide resolved
@matthewkeil
Copy link
Member

LGTM! 🚀

@@ -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`
Copy link
Member

@nflaig nflaig Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

to clarify yarn docs:build just builds part of the docs, namely the CLI references, if there are no updates to those I don't think this step is required. It also copies some files over to docs dir, so has to be run at least once. Might be fine how we documented it here though.

yarn docs:serve will watch for changes and hot reload the UI

Copy link
Contributor

@ensi321 ensi321 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might be fine how we documented it here though.

Yea I agree. Just high level description here in CONTRIBUTING.md. For details of command usage, contributors will need to look deeper.

Copy link
Member

@matthewkeil matthewkeil Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nflaig I think its a nice to have for those that do not know there are generated sections. Perhaps a comment that it only needs to be run once but having it noted seems important to me.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's always better to include too much than too little, even if one step is not always required, executing it won't hurt, it'll just be redundant, but it covers all cases if they just do it every time.

Copy link
Contributor

@ensi321 ensi321 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

User
Give me a stylish way of saying LGTM

ChatGPT
A stylish way to say "LGTM" (Looks Good To Me) could be, "All systems are green on this end," or "Everything's shining bright from my viewpoint."

Everything's shining bright from my viewpoint

@philknows philknows merged commit 551fd8e into unstable Jan 18, 2024
12 of 15 checks passed
@philknows philknows deleted the philknows/docs-contribution branch January 18, 2024 01:38
ensi321 pushed a commit to ensi321/lodestar that referenced this pull request Jan 22, 2024
* add documentation contribution instructions

* docs contribution to include cmd and wordlist

* spell check documentation

* add wordlist check script

* word list correction

* incorporate feedback
@wemeetagain
Copy link
Member

🎉 This PR is included in v1.15.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants