Skip to content

Commit 3565b8c

Browse files
committed
bump version, edit changelog, fix docs
1 parent 5a71510 commit 3565b8c

File tree

6 files changed

+56
-10
lines changed

6 files changed

+56
-10
lines changed

doc/source/_static/style.css

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
2+
section#reference div.highlight pre {
3+
color: #b30000;
4+
display: block; /* ensures it's treated as a block */
5+
margin-left: auto; /* auto margins center block elements */
6+
margin-right: auto;
7+
width: fit-content;
8+
}
9+
body[data-theme="light"] section#reference div.highlight,
10+
body[data-theme="light"] section#reference div.highlight pre {
11+
background-color: #f8f8f8;
12+
}
13+
14+
body[data-theme="dark"] section#reference div.highlight,
15+
body[data-theme="dark"] section#reference div.highlight pre {
16+
background-color: #202020;
17+
}
18+
19+
/* AUTO → system prefers DARK (acts like dark unless user forced light) */
20+
@media (prefers-color-scheme: dark) {
21+
body:not([data-theme="light"]) #reference .highlight,
22+
body:not([data-theme="light"]) #reference .highlight pre {
23+
background-color: #202020;
24+
}
25+
}
26+
27+
/* AUTO → system prefers LIGHT (acts like light unless user forced dark) */
28+
@media (prefers-color-scheme: light) {
29+
body:not([data-theme="dark"]) #reference .highlight,
30+
body:not([data-theme="dark"]) #reference .highlight pre {
31+
background-color: #f8f8f8;
32+
}
33+
}

doc/source/changelog.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
Change Log
55
==========
66

7+
v2.2.4 (2025-09-18)
8+
===================
9+
10+
* Fixed `Avoid depending on typing_extensions. <https://github.com/django-commons/django-enum/pull/134>`_
11+
712
v2.2.3 (2025-04-28)
813
===================
914

doc/source/conf.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,8 @@
7272
# Add any paths that contain custom static files (such as style sheets) here,
7373
# relative to this directory. They are copied after the builtin static files,
7474
# so a file named "default.css" will overwrite the builtin "default.css".
75-
html_static_path = []
75+
html_static_path = ['_static']
76+
html_css_files = ['style.css']
7677

7778
todo_include_todos = True
7879

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "django-enum"
3-
version = "2.2.3"
3+
version = "2.2.4"
44
description = "Full and natural support for enumerations as Django model fields."
55
requires-python = ">=3.9,<4.0"
66
authors = [

src/django_enum/__init__.py

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,19 @@
11
r"""
22
::
33
4-
____ _ _____
5-
| _ \(_) __ _ _ __ __ _ ___ | ____|_ __ _ _ _ __ ___
6-
| | | | |/ _` | '_ \ / _` |/ _ \ | _| | '_ \| | | | '_ ` _ \
7-
| |_| | | (_| | | | | (_| | (_) | | |___| | | | |_| | | | | | |
8-
|____// |\__,_|_| |_|\__, |\___/ |_____|_| |_|\__,_|_| |_| |_|
9-
|__/ |___/
4+
██████╗ ██╗ █████╗ ███╗ ██╗ ██████╗ ██████╗
5+
██╔══██╗ ██║██╔══██╗████╗ ██║██╔════╝ ██╔═══██╗
6+
██║ ██║ ██║███████║██╔██╗ ██║██║ ███╗██║ ██║
7+
██║ ██║██ ██║██╔══██║██║╚██╗██║██║ ██║██║ ██║
8+
██████╔╝╚█████╔╝██║ ██║██║ ╚████║╚██████╔╝╚██████╔╝
9+
╚═════╝ ╚════╝ ╚═╝ ╚═╝╚═╝ ╚═══╝ ╚═════╝ ╚═════╝
10+
11+
███████╗███╗ ██╗██╗ ██╗███╗ ███╗
12+
██╔════╝████╗ ██║██║ ██║████╗ ████║
13+
█████╗ ██╔██╗ ██║██║ ██║██╔████╔██║
14+
██╔══╝ ██║╚██╗██║██║ ██║██║╚██╔╝██║
15+
███████╗██║ ╚████║╚██████╔╝██║ ╚═╝ ██║
16+
╚══════╝╚═╝ ╚═══╝ ╚═════╝ ╚═╝ ╚═╝
1017
1118
1219
Full and natural support for enumerations as Django model fields.
@@ -16,7 +23,7 @@
1623

1724
__all__ = ["EnumField"]
1825

19-
VERSION = (2, 2, 3)
26+
VERSION = (2, 2, 4)
2027

2128
__title__ = "Django Enum"
2229
__version__ = ".".join(str(i) for i in VERSION)

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)