Skip to content

Commit 7346065

Browse files
authored
Initial documentation. (#4)
1 parent d742700 commit 7346065

File tree

7 files changed

+155
-11
lines changed

7 files changed

+155
-11
lines changed

.github/workflows/lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Format and Lint
2+
on:
3+
pull_request:
4+
branches: [main]
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: write
9+
pull-requests: write
10+
11+
jobs:
12+
lint-python:
13+
name: Format and Lint Python
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v4
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
19+
- name: Run Ruff
20+
run: uv run ruff check . --output-format=github
21+
- name: Ruff format
22+
run: uv run ruff format . --check
23+
24+
lint-docs:
25+
name: Lint Markdown
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- name: Markdown Lint base-files
30+
uses: DavidAnson/markdownlint-cli2-action@v20
31+
with:
32+
globs: |
33+
*.md
34+
.github/**/*.md
35+
config: ./.markdownlint.json
36+
# - name: Markdown Lint Docs
37+
# uses: DavidAnson/markdownlint-cli2-action@v20
38+
# with:
39+
# globs: docs/**/*.md
40+
# config: docs/.markdownlint.json

.github/workflows/test.yml

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,8 @@ on:
1717
- "tests/**"
1818
- "pyproject.toml"
1919
jobs:
20-
lint-and-format:
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- name: Install uv
25-
uses: astral-sh/setup-uv@v5
26-
- name: Run Ruff
27-
run: uv run ruff check . --output-format=github
28-
- name: Ruff format
29-
run: uv run ruff format . --check
3020
test-against-python-matrix:
21+
name: PyTest
3122
strategy:
3223
matrix:
3324
python-version: ["3.10", "3.11", "3.12", "3.13"]

.markdownlint.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"MD013": false,
3+
"MD041": false
4+
}

.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: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
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+
31+
uv pip install . && uv pip install -e .
32+
```
33+
34+
**NOTE**: The above actually has you installing the CLI as uneditable and then as editable. This
35+
is only needed as long as the main Render Engine install includes an entry point as there is a
36+
conflict. The `uv pip install .` will overwrite the entry point for `render-engine` while the
37+
second command, `uv pip insall -e .` will convert it to an editable install.
38+
39+
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 & 1 deletion
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",

0 commit comments

Comments
 (0)