Skip to content

Commit

Permalink
[BOT] post-merge updates
Browse files Browse the repository at this point in the history
  • Loading branch information
OCA-git-bot committed Feb 6, 2024
1 parent 7eab0c1 commit f698684
Show file tree
Hide file tree
Showing 6 changed files with 572 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ addon | version | maintainers | summary
[website_forum_subscription](website_forum_subscription/) | 15.0.1.0.0 | | Adds a button to allow subscription from the website
[website_google_tag_manager](website_google_tag_manager/) | 15.0.2.0.0 | | Add support for Google Tag Manager
[website_legal_page](website_legal_page/) | 15.0.2.0.0 | | Website Legal Page
[website_local_font](website_local_font/) | 15.0.1.0.0 | | Allows to add local fonts on Odoo website
[website_odoo_debranding](website_odoo_debranding/) | 15.0.1.0.1 | | Remove Odoo Branding from Website
[website_plausible](website_plausible/) | 15.0.1.1.1 | [![LoisRForgeFlow](https://github.com/LoisRForgeFlow.png?size=30px)](https://github.com/LoisRForgeFlow) | Track website users using plausible
[website_snippet_big_button](website_snippet_big_button/) | 15.0.1.1.0 | | A snippet that adds two big buttons
Expand Down
2 changes: 1 addition & 1 deletion setup/_metapackage/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.0.20230628.0
15.0.20240206.0
1 change: 1 addition & 0 deletions setup/_metapackage/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
'odoo-addon-website_forum_subscription>=15.0dev,<15.1dev',
'odoo-addon-website_google_tag_manager>=15.0dev,<15.1dev',
'odoo-addon-website_legal_page>=15.0dev,<15.1dev',
'odoo-addon-website_local_font>=15.0dev,<15.1dev',
'odoo-addon-website_odoo_debranding>=15.0dev,<15.1dev',
'odoo-addon-website_plausible>=15.0dev,<15.1dev',
'odoo-addon-website_snippet_big_button>=15.0dev,<15.1dev',
Expand Down
114 changes: 114 additions & 0 deletions website_local_font/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
==================
Website Local Font
==================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:930bdcdf59bc63c62067cea62dd9455a4fce03a5e068593af522209d6c9a9d65
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github
:target: https://github.com/OCA/website/tree/15.0/website_local_font
:alt: OCA/website
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/website-15-0/website-15-0-website_local_font
: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=15.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module allows to add local fonts on Odoo website.

By default,Odoo only allows to upload fonts available from Google(fonts.google.com) and they can be made available locally or from Google's server in addition to the fonts made available via website theme modules.But there's no option to upload and have local fonts available across all website themes.


To overcome this limitation, this module has been developed to allow users to upload proprietary (or custom) fonts in the most widely used font formats - otf,ttf,woff and woff2 and make it available across all website themes.

The fonts can be deleted as well if not needed anymore.

**Table of contents**

.. contents::
:local:

Usage
=====

To upload local fonts and use it for the website, you need to :

1.Go to website (with editor enabled),click on 'Edit' and go to 'THEMES' section.Under Font Family, you would find an option 'Add a Local Font'.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/AddALocalFontOption.png

2.When you click on the 'Add a Local Font' option, a wizard would open with two fields- 'Font File' and 'Font Name'.Upload the file with one of the supported file formats and the font name would be automatically updated based on the file.You can update the name or leave it as it is.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/SaveTheFont.png

3.Click on 'Save & Reload' Button, you will see the font is applied to the elements of the website.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/FontAppliedOnWebsite.png

4.If you want to see the list of local fonts or delete the locally uploaded fonts,click on 'Edit' on website and go to 'THEMES' section.Under Font Family, you would find the newly added font.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/NewlyAddedFont.png

5.If you want to delete this locally added font , you can click on the delete icon next to it.Once, you click on the delete icon, it would open up a confirmation dialog.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/DeleteFontConfirmation.png

6.Once you click on 'Ok' button, the page would be refreshed and you would see the font is changed for the website and also the font is not found in the list.

.. image:: https://raw.githubusercontent.com/OCA/website/15.0/website_local_font/static/description/FontDeleted.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/website/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 <https://github.com/OCA/website/issues/new?body=module:%20website_local_font%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
~~~~~~~

* Onestein

Contributors
~~~~~~~~~~~~

* `Onestein <https://www.onestein.nl>`_:

* Anjeel Haria

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

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.

This module is part of the `OCA/website <https://github.com/OCA/website/tree/15.0/website_local_font>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Binary file added website_local_font/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit f698684

Please sign in to comment.