Skip to content

Commit

Permalink
v2.0.0 (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Archmonger authored Oct 18, 2022
1 parent 9e48d7b commit 95095ea
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 6 deletions.
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ Using the following categories, list your changes in this order:

## [Unreleased]

Nothing (yet)

## [2.0.0]- 2022-10-17

### Added

- `use_origin` hook to return the browser's `location.origin`.
- `use_origin` hook for returning the browser's `location.origin`.

### Changed

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

- Support for IDOM within the Django

[unreleased]: https://github.com/idom-team/django-idom/compare/1.2.0...HEAD
[unreleased]: https://github.com/idom-team/django-idom/compare/2.0.0...HEAD
[2.0.0]: https://github.com/idom-team/django-idom/compare/1.2.0...2.0.0
[1.2.0]: https://github.com/idom-team/django-idom/compare/1.1.0...1.2.0
[1.1.0]: https://github.com/idom-team/django-idom/compare/1.0.0...1.1.0
[1.0.0]: https://github.com/idom-team/django-idom/compare/0.0.5...1.0.0
Expand Down
9 changes: 6 additions & 3 deletions docs/src/features/components.md
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,11 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
def my_component():
return html.div(
hello_world_view(
args=["value_1", "value_2"],
kwargs={"key1": "abc", "key2": "123"},
None, # Your request object (optional)
"value_1",
"value_2",
key1="abc",
key2="123",
),
)
```
Expand All @@ -143,7 +146,7 @@ Convert any Django view into a IDOM component by usng this decorator. Compatible
def my_component():
return html.div(
hello_world_view(
request=example_request,
example_request,
),
)
```
Expand Down
12 changes: 12 additions & 0 deletions docs/src/stylesheets/extra.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,15 @@
padding-top: 0;
padding-bottom: 0.35em;
}

body[data-md-color-scheme="slate"]
.md-typeset
:is(.admonition, details):is(.question, .help, .faq) {
border-color: #366517;
}

body[data-md-color-scheme="slate"]
.md-typeset
:-webkit-any(.admonition, details):-webkit-any(.question, .help, .faq) {
border-color: #366517;
}
2 changes: 1 addition & 1 deletion src/django_idom/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django_idom.websocket.paths import IDOM_WEBSOCKET_PATH


__version__ = "1.2.0"
__version__ = "2.0.0"
__all__ = [
"IDOM_WEBSOCKET_PATH",
"IdomWebsocket",
Expand Down

0 comments on commit 95095ea

Please sign in to comment.