From adbf5ac75774279c4627c2b93ad27a0533cf7773 Mon Sep 17 00:00:00 2001 From: Justine Doutreloux Date: Thu, 7 Nov 2024 16:58:52 +0100 Subject: [PATCH] [IMP] : pre-commit auto fixes --- document_page/README.rst | 50 +++++++++---------- document_page/__manifest__.py | 2 +- document_page/demo/document_page.xml | 2 - document_page/static/description/index.html | 21 ++++---- document_page/tests/test_document_page.py | 4 +- document_page/views/document_page_history.xml | 1 - document_page/views/report_document_page.xml | 2 - .../wizard/document_page_create_menu.xml | 11 ++-- .../wizard/document_page_show_diff.xml | 1 - 9 files changed, 44 insertions(+), 50 deletions(-) diff --git a/document_page/README.rst b/document_page/README.rst index 10cc4500..075a9eda 100644 --- a/document_page/README.rst +++ b/document_page/README.rst @@ -17,13 +17,13 @@ Document Page :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fknowledge-lightgray.png?logo=github - :target: https://github.com/OCA/knowledge/tree/17.0/document_page + :target: https://github.com/OCA/knowledge/tree/18.0/document_page :alt: OCA/knowledge .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/knowledge-17-0/knowledge-17-0-document_page + :target: https://translation.odoo-community.org/projects/knowledge-18-0/knowledge-18-0-document_page :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/knowledge&target_branch=17.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/knowledge&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| @@ -51,11 +51,11 @@ Usage To use this module, you need to: -- Go to Knowledge menu -- Click on Categories to create the document's category you need with - the template -- Click on Pages to create pages and select the previous category to - use the template +- Go to Knowledge menu +- Click on Categories to create the document's category you need with + the template +- Click on Pages to create pages and select the previous category to use + the template Bug Tracker =========== @@ -63,7 +63,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. @@ -78,32 +78,32 @@ Authors Contributors ------------ -- Gervais Naoussi -- Maxime Chambreuil -- Iván Todorovich -- Jose Maria Alzaga -- Lois Rilo -- Simone Orsi -- `Tecnativa `__: +- Gervais Naoussi +- Maxime Chambreuil +- Iván Todorovich +- Jose Maria Alzaga +- Lois Rilo +- Simone Orsi +- `Tecnativa `__: - - Ernesto Tejeda - - Víctor Martínez + - Ernesto Tejeda + - Víctor Martínez Trobz -- Dung Tran -- `Sygel `__: +- Dung Tran +- `Sygel `__: - - Ángel García de la Chica Herrera + - Ángel García de la Chica Herrera Other credits ------------- The development of this module has been financially supported by: -- Odoo SA -- Savoir-faire Linux -- Camptocamp +- Odoo SA +- Savoir-faire Linux +- Camptocamp Maintainers ----------- @@ -118,6 +118,6 @@ 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/knowledge `_ project on GitHub. +This module is part of the `OCA/knowledge `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/document_page/__manifest__.py b/document_page/__manifest__.py index e7a125a7..ce6b3141 100644 --- a/document_page/__manifest__.py +++ b/document_page/__manifest__.py @@ -4,7 +4,7 @@ { "name": "Document Page", - "version": "17.0.1.1.0", + "version": "18.0.1.0.0", "category": "Knowledge Management", "author": "OpenERP SA, Odoo Community Association (OCA)", "images": [ diff --git a/document_page/demo/document_page.xml b/document_page/demo/document_page.xml index 450f7575..de2419a3 100644 --- a/document_page/demo/document_page.xml +++ b/document_page/demo/document_page.xml @@ -1,6 +1,5 @@ - - diff --git a/document_page/static/description/index.html b/document_page/static/description/index.html index 82000774..f05b31c6 100644 --- a/document_page/static/description/index.html +++ b/document_page/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 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code { 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.option { span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -368,7 +369,7 @@ ul.auto-toc { !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:2e45555d4116872b6ac3f1149a0c3fd28e8950e71d153b8fcfe0e3b7b524527f !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

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

+

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

This module allows you to write web pages for internal documentation.

Table of contents

@@ -402,8 +403,8 @@ addons list.

  • Go to Knowledge menu
  • Click on Categories to create the document’s category you need with the template
  • -
  • Click on Pages to create pages and select the previous category to -use the template
  • +
  • Click on Pages to create pages and select the previous category to use +the template
  • @@ -411,7 +412,7 @@ use the template

    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.

    @@ -458,11 +459,13 @@ If you spotted it first, help us to smash it by providing a detailed and welcome

    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.

    -

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

    +

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

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

    diff --git a/document_page/tests/test_document_page.py b/document_page/tests/test_document_page.py index 22b03c2a..7a2cc96b 100644 --- a/document_page/tests/test_document_page.py +++ b/document_page/tests/test_document_page.py @@ -45,9 +45,7 @@ class TestDocumentPage(common.TransactionCase): page.menu_id = menu self.assertEqual( page.backend_url, - "/web#id={}&model=document.page&view_type=form&action={}".format( - page.id, menu.action.id - ), + f"/web#id={page.id}&model=document.page&view_type=form&action={menu.action.id}", ) def test_page_copy(self): diff --git a/document_page/views/document_page_history.xml b/document_page/views/document_page_history.xml index 8ac65aae..12dc52f2 100644 --- a/document_page/views/document_page_history.xml +++ b/document_page/views/document_page_history.xml @@ -1,6 +1,5 @@ - document.page.history.tree diff --git a/document_page/views/report_document_page.xml b/document_page/views/report_document_page.xml index eaff83dd..9da9041c 100644 --- a/document_page/views/report_document_page.xml +++ b/document_page/views/report_document_page.xml @@ -1,6 +1,5 @@ -