Skip to content

Commit 882da5c

Browse files
committed
[IMP] website_whatsapp: pre-commit auto fixes
1 parent 34b7b27 commit 882da5c

File tree

9 files changed

+43
-36
lines changed

9 files changed

+43
-36
lines changed

website_whatsapp/README.rst

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,19 @@ Website Whatsapp
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
20-
:target: https://github.com/OCA/website/tree/16.0/website_whatsapp
20+
:target: https://github.com/OCA/website/tree/18.0/website_whatsapp
2121
:alt: OCA/website
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_whatsapp
23+
:target: https://translation.odoo-community.org/projects/website-18-0/website-18-0-website_whatsapp
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=16.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/website&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
Enable a WhatsApp floating button on the website to be able to send a message quickly
31+
Enable a WhatsApp floating button on the website to be able to send a
32+
message quickly
3233

3334
**Table of contents**
3435

@@ -40,36 +41,37 @@ Configuration
4041

4142
To configure this module, you need to:
4243

43-
#. Go to **Website > Configuration > Settings**
44-
#. Search 'Use Whatsapp' option.
45-
#. Fill in your 'WhatsApp number' and the other optional values
44+
1. Go to **Website > Configuration > Settings**
45+
2. Search 'Use Whatsapp' option.
46+
3. Fill in your 'WhatsApp number' and the other optional values
4647

4748
Bug Tracker
4849
===========
4950

5051
Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/issues>`_.
5152
In case of trouble, please check there if your issue has already been reported.
5253
If you spotted it first, help us to smash it by providing a detailed and welcomed
53-
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_whatsapp%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
54+
`feedback <https://github.com/OCA/website/issues/new?body=module:%20website_whatsapp%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
5455

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

5758
Credits
5859
=======
5960

6061
Authors
61-
~~~~~~~
62+
-------
6263

6364
* Studio73
6465

6566
Contributors
66-
~~~~~~~~~~~~
67+
------------
6768

68-
* `Studio73 <https://www.studio73.es>`__:
69-
* Ioan Galan <[email protected]>
69+
- `Studio73 <https://www.studio73.es>`__:
70+
71+
- Ioan Galan <[email protected]>
7072

7173
Maintainers
72-
~~~~~~~~~~~
74+
-----------
7375

7476
This module is maintained by the OCA.
7577

@@ -89,6 +91,6 @@ Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
8991

9092
|maintainer-ioans73|
9193

92-
This module is part of the `OCA/website <https://github.com/OCA/website/tree/16.0/website_whatsapp>`_ project on GitHub.
94+
This module is part of the `OCA/website <https://github.com/OCA/website/tree/18.0/website_whatsapp>`_ project on GitHub.
9395

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

website_whatsapp/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
To configure this module, you need to:
2+
3+
1. Go to **Website \> Configuration \> Settings**
4+
2. Search 'Use Whatsapp' option.
5+
3. Fill in your 'WhatsApp number' and the other optional values

website_whatsapp/readme/CONFIGURE.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
- [Studio73](https://www.studio73.es):
2+
- Ioan Galan \<<[email protected]>\>

website_whatsapp/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
Enable a WhatsApp floating button on the website to be able to send a message quickly
1+
Enable a WhatsApp floating button on the website to be able to send a
2+
message quickly

website_whatsapp/static/description/index.html

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@
88

99
/*
1010
:Author: David Goodger ([email protected])
11-
:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11+
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
1212
:Copyright: This stylesheet has been placed in the public domain.
1313
1414
Default cascading style sheet for the HTML output of Docutils.
15+
Despite the name, some widely supported CSS2 features are used.
1516
1617
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
1718
customize this style sheet.
@@ -274,7 +275,7 @@
274275
margin-left: 2em ;
275276
margin-right: 2em }
276277

277-
pre.code .ln { color: grey; } /* line numbers */
278+
pre.code .ln { color: gray; } /* line numbers */
278279
pre.code, code { background-color: #eeeeee }
279280
pre.code .comment, code .comment { color: #5C6576 }
280281
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@
300301
span.pre {
301302
white-space: pre }
302303

303-
span.problematic {
304+
span.problematic, pre.problematic {
304305
color: red }
305306

306307
span.section-subtitle {
@@ -368,8 +369,9 @@ <h1 class="title">Website Whatsapp</h1>
368369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369370
!! source digest: sha256:77ac81d45dd2eac1e55963bb2fc443d4274d5b396c43906c61c60645905943eb
370371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
371-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/website/tree/16.0/website_whatsapp"><img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/website-16-0/website-16-0-website_whatsapp"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/website&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372-
<p>Enable a WhatsApp floating button on the website to be able to send a message quickly</p>
372+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/website/tree/18.0/website_whatsapp"><img alt="OCA/website" src="https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/website-18-0/website-18-0-website_whatsapp"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/website&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373+
<p>Enable a WhatsApp floating button on the website to be able to send a
374+
message quickly</p>
373375
<p><strong>Table of contents</strong></p>
374376
<div class="contents local topic" id="contents">
375377
<ul class="simple">
@@ -397,7 +399,7 @@ <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
397399
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/website/issues">GitHub Issues</a>.
398400
In case of trouble, please check there if your issue has already been reported.
399401
If you spotted it first, help us to smash it by providing a detailed and welcomed
400-
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_whatsapp%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
402+
<a class="reference external" href="https://github.com/OCA/website/issues/new?body=module:%20website_whatsapp%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
401403
<p>Do not contact contributors directly about support or help with technical issues.</p>
402404
</div>
403405
<div class="section" id="credits">
@@ -411,26 +413,24 @@ <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
411413
<div class="section" id="contributors">
412414
<h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
413415
<ul class="simple">
414-
<li><dl class="first docutils">
415-
<dt><a class="reference external" href="https://www.studio73.es">Studio73</a>:</dt>
416-
<dd><ul class="first last">
416+
<li><a class="reference external" href="https://www.studio73.es">Studio73</a>:<ul>
417417
<li>Ioan Galan &lt;<a class="reference external" href="mailto:ioan&#64;studio73.es">ioan&#64;studio73.es</a>&gt;</li>
418418
</ul>
419-
</dd>
420-
</dl>
421419
</li>
422420
</ul>
423421
</div>
424422
<div class="section" id="maintainers">
425423
<h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
426424
<p>This module is maintained by the OCA.</p>
427-
<a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
425+
<a class="reference external image-reference" href="https://odoo-community.org">
426+
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
427+
</a>
428428
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
429429
mission is to support the collaborative development of Odoo features and
430430
promote its widespread use.</p>
431431
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
432432
<p><a class="reference external image-reference" href="https://github.com/ioans73"><img alt="ioans73" src="https://github.com/ioans73.png?size=40px" /></a></p>
433-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/website/tree/16.0/website_whatsapp">OCA/website</a> project on GitHub.</p>
433+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/website/tree/18.0/website_whatsapp">OCA/website</a> project on GitHub.</p>
434434
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
435435
</div>
436436
</div>

website_whatsapp/templates/website.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
t-if="website.whatsapp_track_url"
1313
t-set="extra_info"
1414
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)"
15-
/><!-- %0A newline -->
15+
/>
16+
<!-- %0A newline -->
1617
<a
1718
t-if="website.whatsapp_number"
1819
target="_blank"

0 commit comments

Comments
 (0)