From 95095ea53627dd9b8e5e3eb7396b92e8660a8da2 Mon Sep 17 00:00:00 2001 From: Mark <16909269+Archmonger@users.noreply.github.com> Date: Mon, 17 Oct 2022 21:35:01 -0700 Subject: [PATCH] v2.0.0 (#105) --- CHANGELOG.md | 9 +++++++-- docs/src/features/components.md | 9 ++++++--- docs/src/stylesheets/extra.css | 12 ++++++++++++ src/django_idom/__init__.py | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 033c7d85..8506c821 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 @@ -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 diff --git a/docs/src/features/components.md b/docs/src/features/components.md index aee6f60d..77b086b6 100644 --- a/docs/src/features/components.md +++ b/docs/src/features/components.md @@ -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", ), ) ``` @@ -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, ), ) ``` diff --git a/docs/src/stylesheets/extra.css b/docs/src/stylesheets/extra.css index 79881677..259625f9 100644 --- a/docs/src/stylesheets/extra.css +++ b/docs/src/stylesheets/extra.css @@ -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; +} diff --git a/src/django_idom/__init__.py b/src/django_idom/__init__.py index 998ab5a6..39893c7e 100644 --- a/src/django_idom/__init__.py +++ b/src/django_idom/__init__.py @@ -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",