Skip to main content

Tool to create README.rst files for Odoo

Project description

README GENERATOR AND VALIDATOR FOR ODOO

This plugin is based on oca-gen-addon-readme from the repository OCA/maintainer-tools.git. The original version is licensed under AGPL-3.

You can find the terms of the license in the LICENSE file available in this repository.

This small utility generates high-quality README.rst files along with a web page, which is displayed when reviewing the module's information. The webpage is located in the static/index.html directory.

The README generation starts by creating a readme directory in the module, containing a number of .rst files called Fractions where the developer can describe the module's functionalities in detail.

tony_stark_module
├── views
├── readme
|   ├── CONFIGURE.rst
|   ├── CONTRIBUTORS.rst
|   ├── CREDITS.rst
|   ├── DESCRIPTION.rst
|   ├── HISTORY.rst
|   ├── INSTALL.rst
|   ├── READMAP.rst
|   └── USAGE.rst
├── reports
├── static
└── views

What gen_readme does:

  1. If the readme directory does not exist in the module, gen-readme will create the directory in situ, with all the fragments plus an empty README.
  2. Make sure that the CONTRIBUTORS.rst section includes the developer(s) who created or modified the module, as there may be multiple authors.
  3. Ensure that the word count in the DESCRIPTION section is at a reasonable level. This can be adjusted using a parameter.
  4. Check that the module's manifest contains the author key, which usually refers to the intellectual property owner, typically the partner.
  5. Additionally, at the request of Raiver Figueroa, ensure that the module has an icon.

pre-commit hook

You can use this module as a pre-commit plugin this way

- repo: https://github.com/quilsoft-org/gen-readme.git
    rev: 1.3.53
    hooks:
    - id: gen-readme
      args:
        - --min-description-words=20
        - --website=https://quilsoft.com
        - --org-name=quilsoft-org
        - --author=Quilsoft

Local Installation

You can install the plugin locally and run it against a set of modules. To do this, you need to install it with:

sudo pipx install gen-odoo-readme

See proyect details in pypi.org/gen-odoo/readme

Use the gen-readme --help command for detailed usage instructions:

Usage: gen_readme.py [OPTIONS] [FILES]...

main function for gen_readme

Options:
--addons DIRECTORY              Directory containing several addons, the
                                README will be generated for all installable
                                addons found there...
--min-description-words INTEGER
                                Minimum number of words that the DESCRIPTION
                                section must contain. Default: 40
--website TEXT                  Partner website; the logo at the end of the
                                README is taken from this website
--org-name TEXT                 Github Organization from the partner.
                                Default: quilsoft-org
--author TEXT                   Tipically the intelectual author of the
                                module Default: Quilsoft
--help                          Show this message and exit.

When working locally, you must provide the --addons-dir DIRECTORY option to make it work

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gen_odoo_readme-1.3.56.tar.gz (20.5 kB view details)

Uploaded Source

Built Distribution

gen_odoo_readme-1.3.56-py3-none-any.whl (23.0 kB view details)

Uploaded Python 3

File details

Details for the file gen_odoo_readme-1.3.56.tar.gz.

File metadata

  • Download URL: gen_odoo_readme-1.3.56.tar.gz
  • Upload date:
  • Size: 20.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for gen_odoo_readme-1.3.56.tar.gz
Algorithm Hash digest
SHA256 60e21878b784a7d95a74f37f6c8f7176d4e490108276e12c6cdd3d57f32a87c3
MD5 da58eb16a88090fa31ddce9cf34d0e84
BLAKE2b-256 e069d5b4fe856b58659afa0091189c8af50dc8a9175e0027b19b3ba7313f7266

See more details on using hashes here.

File details

Details for the file gen_odoo_readme-1.3.56-py3-none-any.whl.

File metadata

File hashes

Hashes for gen_odoo_readme-1.3.56-py3-none-any.whl
Algorithm Hash digest
SHA256 932cafb6a06ccfe14fc14c7be563d396ec8ff925b8965f8e2f78195f6a2af9fd
MD5 8d99715bcb4d12a738640cbe43053a7f
BLAKE2b-256 3cb3fa52a9a6bd73313cb2456b530bc4a3d51af7dcc74bc818dc9f0b1c74b374

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page