Skip to content

Commit 140065e

Browse files
committed
Improved docs
1 parent 0b9c94a commit 140065e

File tree

5 files changed

+39
-4
lines changed

5 files changed

+39
-4
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist
44
__pycache__
55
.coverage
66
poetry.lock
7-
/site
7+
/site
8+
.cache

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
ORMs and developers often end up in a love/hate relationship. The advantages of ORMs (the mapping of objects) can be negated by their compromises (have to learn their pseudo sql syntax, less control over the generated sql, low performance).
88

9-
sqlorm intends to provide a solution where sql stays front and center and where the behavior of the ORM is what you expect and no more. SQL is seamlessly integrated through functions and model methods using python doc strings.
9+
Sqlorm intends to provide a solution where SQL stays front and center and where the behavior of the ORM is what you expect and no more. SQL is seamlessly integrated through functions and model methods using Python doc strings.
1010

1111
- Thin layer on top of [DBAPI 2.0](https://peps.python.org/pep-0249/)
1212
- Use SQL as usual

docs/index.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Introduction
22

3+
SQL-focused Python ORM
4+
5+
Sqlorm intends to provide a solution where SQL stays front and center and where the behavior of the ORM is what you expect and no more. SQL is seamlessly integrated through functions and model methods using Python doc strings.
6+
37
## Installation
48

59
pip install sqlorm-py

mkdocs.yml

+31-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,31 @@
11
site_name: sqlorm
2-
theme: material
2+
repo_url: https://github.com/hyperflask/sqlorm
3+
edit_uri: edit/main/docs/
4+
5+
theme:
6+
name: material
7+
palette:
8+
- media: "(prefers-color-scheme)"
9+
toggle:
10+
icon: material/brightness-auto
11+
name: Switch to light mode
12+
- media: "(prefers-color-scheme: light)"
13+
primary: blue grey
14+
toggle:
15+
icon: material/weather-sunny
16+
name: Switch to dark mode
17+
- media: "(prefers-color-scheme: dark)"
18+
scheme: slate
19+
primary: black
20+
toggle:
21+
icon: material/weather-night
22+
name: Switch to light mode
23+
features:
24+
- content.action.edit
25+
- toc.integrate
26+
icon:
27+
edit: material/pencil
28+
329
nav:
430
- index.md
531
- engine.md
@@ -19,4 +45,7 @@ markdown_extensions:
1945

2046
plugins:
2147
- search
22-
- callouts
48+
- callouts
49+
- git-committers:
50+
repository: hyperflask/sqlorm
51+
branch: main

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ pytest-cov = "^4.1.0"
2323
ruff = "^0.4.3"
2424
mkdocs-material = "^9.5.24"
2525
mkdocs-callouts = "^1.13.2"
26+
mkdocs-git-committers-plugin-2 = "^2.3.0"
2627

2728
[tool.ruff]
2829
include = ["sqlorm/**/*.py"]

0 commit comments

Comments
 (0)