File: just.md

package info (click to toggle)
rocm-docs-core 1.23.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,632 kB
  • sloc: python: 1,960; sh: 160; javascript: 152; cpp: 29; makefile: 27
file content (48 lines) | stat: -rw-r--r-- 1,563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
---
myst:
    html_meta:
        "description": "Just is a command runner used to quickly setup an environment for documentation development"
        "keywords": "Documentation development environment, Environment for documentation development, Just, Documentation configuration"
---

# Just

[`just`](https://github.com/casey/just) is a command runner used to
quickly setup an environment for documentation development.

The aim is to make contributing to `rocm-docs-core` more approachable
by providing ready-to-use environments for development.

## Usage

### Setting up a development environment

`just devenv`

This creates a Python virtual environment,
installs the dependencies, and sets up the pre-commit hooks.

### Running linting commands

> These commands work on both Linux and Windows

`just check-codestyle`

Check files for formatting errors and report them.

`just fix-codestyle`

Automatically fix errors that have suggested fixes.

## GitHub

GitHub Actions CI is extended to run these tools on PRs
(using the `just`-based entry-points).

Development container setup and settings are added
for Visual Studio Development containers (and GitHub Codespaces) and Gitpod.

- [VS Code Dev Containers Guide](https://code.visualstudio.com/docs/devcontainers/containers)
  - [Dev Container Dockerfile and Configuration](https://github.com/ROCm/rocm-docs-core/tree/develop/.devcontainer)
- [Gitpod Guide](https://www.gitpod.io/docs/introduction/getting-started)
  - [Gitpod Configuration](https://github.com/ROCm/rocm-docs-core/blob/develop/.gitpod.yml)