From 882da5cf0cdbbf56ff30d9500c63ceb07d007ad8 Mon Sep 17 00:00:00 2001 From: eugenio Date: Mon, 16 Dec 2024 12:46:05 +0100 Subject: [PATCH] [IMP] website_whatsapp: pre-commit auto fixes --- website_whatsapp/README.rst | 30 ++++++++++--------- website_whatsapp/pyproject.toml | 3 ++ website_whatsapp/readme/CONFIGURE.md | 5 ++++ website_whatsapp/readme/CONFIGURE.rst | 5 ---- website_whatsapp/readme/CONTRIBUTORS.md | 2 ++ website_whatsapp/readme/CONTRIBUTORS.rst | 2 -- .../{DESCRIPTION.rst => DESCRIPTION.md} | 3 +- .../static/description/index.html | 26 ++++++++-------- website_whatsapp/templates/website.xml | 3 +- 9 files changed, 43 insertions(+), 36 deletions(-) create mode 100644 website_whatsapp/pyproject.toml create mode 100644 website_whatsapp/readme/CONFIGURE.md delete mode 100644 website_whatsapp/readme/CONFIGURE.rst create mode 100644 website_whatsapp/readme/CONTRIBUTORS.md delete mode 100644 website_whatsapp/readme/CONTRIBUTORS.rst rename website_whatsapp/readme/{DESCRIPTION.rst => DESCRIPTION.md} (74%) diff --git a/website_whatsapp/README.rst b/website_whatsapp/README.rst index aa03db207b..6dbeef42ee 100644 --- a/website_whatsapp/README.rst +++ b/website_whatsapp/README.rst @@ -17,18 +17,19 @@ Website Whatsapp :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github - :target: https://github.com/OCA/website/tree/16.0/website_whatsapp + :target: https://github.com/OCA/website/tree/18.0/website_whatsapp :alt: OCA/website .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_whatsapp + :target: https://translation.odoo-community.org/projects/website-18-0/website-18-0-website_whatsapp :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png - :target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -Enable a WhatsApp floating button on the website to be able to send a message quickly +Enable a WhatsApp floating button on the website to be able to send a +message quickly **Table of contents** @@ -40,9 +41,9 @@ Configuration To configure this module, you need to: -#. Go to **Website > Configuration > Settings** -#. Search 'Use Whatsapp' option. -#. Fill in your 'WhatsApp number' and the other optional values +1. Go to **Website > Configuration > Settings** +2. Search 'Use Whatsapp' option. +3. Fill in your 'WhatsApp number' and the other optional values Bug Tracker =========== @@ -50,7 +51,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -58,18 +59,19 @@ Credits ======= Authors -~~~~~~~ +------- * Studio73 Contributors -~~~~~~~~~~~~ +------------ -* `Studio73 `__: - * Ioan Galan +- `Studio73 `__: + + - Ioan Galan Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -89,6 +91,6 @@ Current `maintainer `__: |maintainer-ioans73| -This module is part of the `OCA/website `_ project on GitHub. +This module is part of the `OCA/website `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/website_whatsapp/pyproject.toml b/website_whatsapp/pyproject.toml new file mode 100644 index 0000000000..4231d0cccb --- /dev/null +++ b/website_whatsapp/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/website_whatsapp/readme/CONFIGURE.md b/website_whatsapp/readme/CONFIGURE.md new file mode 100644 index 0000000000..363417d883 --- /dev/null +++ b/website_whatsapp/readme/CONFIGURE.md @@ -0,0 +1,5 @@ +To configure this module, you need to: + +1. Go to **Website \> Configuration \> Settings** +2. Search 'Use Whatsapp' option. +3. Fill in your 'WhatsApp number' and the other optional values diff --git a/website_whatsapp/readme/CONFIGURE.rst b/website_whatsapp/readme/CONFIGURE.rst deleted file mode 100644 index 69bce37d8e..0000000000 --- a/website_whatsapp/readme/CONFIGURE.rst +++ /dev/null @@ -1,5 +0,0 @@ -To configure this module, you need to: - -#. Go to **Website > Configuration > Settings** -#. Search 'Use Whatsapp' option. -#. Fill in your 'WhatsApp number' and the other optional values diff --git a/website_whatsapp/readme/CONTRIBUTORS.md b/website_whatsapp/readme/CONTRIBUTORS.md new file mode 100644 index 0000000000..1bd17ca07b --- /dev/null +++ b/website_whatsapp/readme/CONTRIBUTORS.md @@ -0,0 +1,2 @@ +- [Studio73](https://www.studio73.es): + - Ioan Galan \<\> diff --git a/website_whatsapp/readme/CONTRIBUTORS.rst b/website_whatsapp/readme/CONTRIBUTORS.rst deleted file mode 100644 index 946245f774..0000000000 --- a/website_whatsapp/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1,2 +0,0 @@ -* `Studio73 `__: - * Ioan Galan diff --git a/website_whatsapp/readme/DESCRIPTION.rst b/website_whatsapp/readme/DESCRIPTION.md similarity index 74% rename from website_whatsapp/readme/DESCRIPTION.rst rename to website_whatsapp/readme/DESCRIPTION.md index 676ff11fa3..e5e8d93da8 100644 --- a/website_whatsapp/readme/DESCRIPTION.rst +++ b/website_whatsapp/readme/DESCRIPTION.md @@ -1 +1,2 @@ -Enable a WhatsApp floating button on the website to be able to send a message quickly +Enable a WhatsApp floating button on the website to be able to send a +message quickly diff --git a/website_whatsapp/static/description/index.html b/website_whatsapp/static/description/index.html index 8cb07e6adb..ff3341a98d 100644 --- a/website_whatsapp/static/description/index.html +++ b/website_whatsapp/static/description/index.html @@ -8,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $ :Copyright: This stylesheet has been placed in the public domain. Default cascading style sheet for the HTML output of Docutils. +Despite the name, some widely supported CSS2 features are used. See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to customize this style sheet. @@ -274,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +pre.code .ln { color: gray; } /* line numbers */ pre.code, code { background-color: #eeeeee } pre.code .comment, code .comment { color: #5C6576 } pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold } @@ -300,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,8 +369,9 @@

Website Whatsapp

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:77ac81d45dd2eac1e55963bb2fc443d4274d5b396c43906c61c60645905943eb !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/website Translate me on Weblate Try me on Runboat

-

Enable a WhatsApp floating button on the website to be able to send a message quickly

+

Beta License: AGPL-3 OCA/website Translate me on Weblate Try me on Runboat

+

Enable a WhatsApp floating button on the website to be able to send a +message quickly

Table of contents

    @@ -397,7 +399,7 @@

    Bug Tracker

    Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us to smash it by providing a detailed and welcomed -feedback.

    +feedback.

    Do not contact contributors directly about support or help with technical issues.

@@ -411,26 +413,24 @@

Authors

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

ioans73

-

This module is part of the OCA/website project on GitHub.

+

This module is part of the OCA/website project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

diff --git a/website_whatsapp/templates/website.xml b/website_whatsapp/templates/website.xml index ada998c930..0ce46b1618 100644 --- a/website_whatsapp/templates/website.xml +++ b/website_whatsapp/templates/website.xml @@ -12,7 +12,8 @@ t-if="website.whatsapp_track_url" t-set="extra_info" t-value="'{} %0A%0A*Sent from: {}{}*'.format(extra_info, request.website and request.website.domain or request.env['ir.config_parameter'].sudo().get_param('web.base.url'), request.httprequest.full_path)" - /> + /> +