Skip to content

Commit 95095ea

Browse files
authored
v2.0.0 (#105)
1 parent 9e48d7b commit 95095ea

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

CHANGELOG.md

+7-2
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ Using the following categories, list your changes in this order:
2222

2323
## [Unreleased]
2424

25+
Nothing (yet)
26+
27+
## [2.0.0]- 2022-10-17
28+
2529
### Added
2630

27-
- `use_origin` hook to return the browser's `location.origin`.
31+
- `use_origin` hook for returning the browser's `location.origin`.
2832

2933
### Changed
3034

@@ -145,7 +149,8 @@ Using the following categories, list your changes in this order:
145149

146150
- Support for IDOM within the Django
147151

148-
[unreleased]: https://github.com/idom-team/django-idom/compare/1.2.0...HEAD
152+
[unreleased]: https://github.com/idom-team/django-idom/compare/2.0.0...HEAD
153+
[2.0.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0
149154
[1.2.0]: https://github.com/idom-team/django-idom/compare/1.1.0...1.2.0
150155
[1.1.0]: https://github.com/idom-team/django-idom/compare/1.0.0...1.1.0
151156
[1.0.0]: https://github.com/idom-team/django-idom/compare/0.0.5...1.0.0

docs/src/features/components.md

+6-3
Original file line numberDiff line numberDiff line change
@@ -115,8 +115,11 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
115115
def my_component():
116116
return html.div(
117117
hello_world_view(
118-
args=["value_1", "value_2"],
119-
kwargs={"key1": "abc", "key2": "123"},
118+
None, # Your request object (optional)
119+
"value_1",
120+
"value_2",
121+
key1="abc",
122+
key2="123",
120123
),
121124
)
122125
```
@@ -143,7 +146,7 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
143146
def my_component():
144147
return html.div(
145148
hello_world_view(
146-
request=example_request,
149+
example_request,
147150
),
148151
)
149152
```

docs/src/stylesheets/extra.css

+12
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,15 @@
1515
padding-top: 0;
1616
padding-bottom: 0.35em;
1717
}
18+
19+
body[data-md-color-scheme="slate"]
20+
.md-typeset
21+
:is(.admonition, details):is(.question, .help, .faq) {
22+
border-color: #366517;
23+
}
24+
25+
body[data-md-color-scheme="slate"]
26+
.md-typeset
27+
:-webkit-any(.admonition, details):-webkit-any(.question, .help, .faq) {
28+
border-color: #366517;
29+
}

src/django_idom/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from django_idom.websocket.paths import IDOM_WEBSOCKET_PATH
44

55

6-
__version__ = "1.2.0"
6+
__version__ = "2.0.0"
77
__all__ = [
88
"IDOM_WEBSOCKET_PATH",
99
"IdomWebsocket",

0 commit comments

Comments
 (0)