ResearchCodeReviewCommunity / dev-review

website with resources for researchers learning about code review during development
https://dev-review.readthedocs.io/en/latest/
5 stars 3 forks source link

Code Review During Development

This repository is automatically built from markdown files by Sphinx and the MyST parser using ReadTheDocs. This site uses the Sphinx Book theme. This site is available here: https://dev-review.readthedocs.io/en/latest/

The content of the website is contained in markdown files located in the docs/ folder and are structured like so

docs/
├── flowcharts    <-- any mermaid flowcharts used in multiple locations
│   └── high-level.md
├── glossary.md    <-- a glossary of important terms for code review
├── guidelines    <-- more general guidelines for code review apart from the more prescriptive recipes
│   ├── approach.md
│   └── points-to-check-for-reviewers.md
├── index.md    <-- the landing page of the website
├── recipes    <-- our suggested steps to follow during the code review process
│   ├── explain_code_structure.md
│   ├── find_a_reviewer.md
│   ├── lonecoder.md
│   ├── meet_and_agree_on_objectives.md
│   ├── perform_code_review.md
│   └── recipe_template.md
└── refs-related.md    <-- references for material related to code review

Dependencies

We use nox as a task-runner to create development environments and to build the docs. There are many ways to install but we recommend the following:

  1. use a system package manager to install pipx
  2. use pipx to install nox so you can use it across projects
  3. finally ask nox to create a development environment

Clone this repository

After generating your SSH keys as suggested here. You can then clone the repository by typing (or copying) the following line in a terminal at your preferred path in your machine:

git clone git@github.com:ResearchCodeReviewCommunity/dev-review.git

Development

To preview changes, you can build and serve the website locally.

nox -s docs -- serve

Open your favorite web-browser using the following url:

Serving HTTP on 0.0.0.0 port 8000 (http://0.0.0.0:8000/) ...

Contributing

Commit changes to any other branch than main, open a pull request and request for reviews as common practice following the pull request workflow with git.
Once your changes are merged into main branch, the site will be automatically built and deployed and will be live roughly 1 minute later.

:warning: Do not commit directly to main. :warning: