Skip to content

Commit 55b4333

Browse files
committed
Initial documentation.
1 parent 0a097c6 commit 55b4333

File tree

4 files changed

+104
-3
lines changed

4 files changed

+104
-3
lines changed

.pre-commit-config.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
default_language_version:
4+
python: python3.12
5+
repos:
6+
- repo: https://github.com/pre-commit/pre-commit-hooks
7+
rev: v4.5.0
8+
hooks:
9+
- id: check-yaml
10+
- id: check-toml
11+
- id: end-of-file-fixer
12+
- id: trailing-whitespace
13+
- repo: https://github.com/astral-sh/ruff-pre-commit
14+
rev: v0.11.12
15+
hooks:
16+
- id: ruff
17+
args: ["--fix"]
18+
# Run the formatter.
19+
- id: ruff-format

CONTRIBUTING.md

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Contributing to the Render Engine Projects
2+
3+
Render Engine CLI is the CLI tool for the Render Engin static site generator. Please refer to
4+
the main [CONTRIBUTING.md](https://github.com/render-engine/render-engine/blob/main/CONTRIBUTING.md)
5+
for more details on how to contribute.
6+
7+
## Render Engine CLI Specific Topics
8+
9+
Render Engine CLI is a `uv` based project. For more information on installing `uv` and using it
10+
please see the [uv documentation](https://docs.astral.sh/uv/#installation).To get started, for
11+
this repository and check out your fork.
12+
13+
```shell
14+
git clone <url to fork>
15+
```
16+
17+
Once you have checked out the repository, run `uv sync` and then activate the `venv` that was
18+
created:
19+
20+
```shell
21+
uv sync
22+
source .venv/bin/activate
23+
```
24+
25+
Once you have done this you will be in the virtual environment and ready to work. It is recommended
26+
that you do a local, editable install of the CLI in your virtual environment so that you can easily
27+
work with the changes you have made.
28+
29+
```shell
30+
uv pip install -e .
31+
```
32+
33+
This will allow you to test your changes via the command line.

README.md

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
## Render Engine CLI
2+
3+
[![PyTest](https://github.com/render-engine/render-engine-cli/actions/workflows/test.yml/badge.svg)](https://github.com/render-engine/render-engine-cli/actions/workflows/test.yml)
4+
[![Ruff](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json)](https://github.com/astral-sh/ruff)
5+
[![Discord](https://img.shields.io/discord/1174377880118104156?label=Discord&color=purple)](https://discord.gg/2xMQ4j4d8m)
6+
7+
Render Engine CLI is the CLI tool for the Render Engine static site generator.
8+
9+
## Learn More
10+
11+
- [CLI Documentation](https://render-engine.readthedocs.io/en/latest/cli/)
12+
- [Check out the Render Engien Documentation](https://render-engine.readthedocs.io/en/latest/)
13+
- [Contributors and Builders, Check out the Wiki](https://github.com/render-engine/render-engine/wiki)
14+
- [Join the community!](https://discord.gg/2xMQ4j4d8m)
15+
16+
## Installing the Render Engine CLI
17+
18+
To use the render engine, you must have Python 3.10 or greater installed. You can download Python from [python.org](https://python.org).
19+
20+
- Linux/MacOS: [python.org](https://python.org)
21+
- Windows: [Microsoft Store](https://apps.microsoft.com/store/detail/python-311/9NRWMJP3717K)
22+
23+
The Render Engine CLI is available in PyPI and can be installed via `pip` or `uv`:
24+
25+
```shell
26+
pip install render-engine-cli # via pip
27+
uv pip install render-engine-cli # via uv
28+
```
29+
30+
Since render engine itself is one of the dependencies of the CLI there is no need to isntall
31+
them separately. With that, the version of render engine in the CLI dependencies is not pinned
32+
to a specific version so if you want to pin it you can do so either in your `requirements.txt`
33+
(`pip`) or `pyproject.toml` (`uv`) files.
34+
35+
```shell
36+
# requirements.text
37+
render-engine-cli
38+
render-engine==<version to pin>
39+
40+
41+
# pyproject.toml
42+
[project]
43+
dependencies = [
44+
"render-engine-cli",
45+
"render-engine==<version to pin>"
46+
]
47+
```
48+
49+
## Getting Started
50+
51+
Check out the [Getting Started](https://render-engine.readthedocs.io/en/latest/page/) Section in the [Documentation](https://render-engine.readthedocs.io)

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ requires-python = ">=3.10"
77
dependencies = [
88
"click>=8.2.1",
99
"cookiecutter>=2.6.0",
10-
"render-engine>=2025.5.1",
10+
"render-engine",
1111
"rich>=14.0.0",
1212
"toml>=0.10.2",
1313
"watchfiles>=1.1.0",
@@ -55,5 +55,3 @@ select = ["E", "F", "I", "UP"]
5555
[build-system]
5656
requires = ["setuptools", "setuptools_scm", "wheel"]
5757
build-backend = "setuptools.build_meta"
58-
59-

0 commit comments

Comments
 (0)