Skip to main content

Tool to create README.rst files for Odoo

Project description

README GENERATOR

This package is based on the oca-gen-addon-readme from the OCA/maintainer-tools.git repo wich is licensed AGPL-3

This is a small utility that generates high quality README for our odoo modules in an automated way.

The sections of the final README are organized in fragments. They must be put inside a readme folder respecting this structure.

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

eg. To generate the final README for each module of the repository we can say (if we are stand in the repository root)

gen-readme --repo-name=stark-enterprises --branch=16.0 --addon-dir="$PWD"

The result is a fully pypi compilant README.rst in the root of each module of the repo

Installation

sudo pipx install gen-odoo-readme

see proyect in https://pypi.org/project/gen-odoo-readme/

Use el comando gen-readme --help para obtener esta ayuda

Usage: gen-readme [OPTIONS]

Options:
--org-name TEXT             Organization name  [required]
--repo-name TEXT            Repository name, eg. server-tools.  [required]
--branch TEXT               Odoo series. eg 11.0.  [required]
--addons-dir DIRECTORY      Directory containing several addons, the README
                            will be generated for all installable addons
                            found there.  [required]
--gen-html / --no-gen-html  Generate index html file.
--help                      Show this message and exit.

Recomendation

We recommend to set a small make_readme.sh file in each repo as this

#!/usr/bin/env bash
#################################
# Generate the odoo README.rst documentacion for each module in
# the current repository.
# you must install this: pip install gen-odoo-readme

gen-readme \
    --web https://quilsoft.com \
    --org-name quilsoft-org \
    --repo-name star_enterprises \
    --branch 16.0 \
    --addons-dir "$PWD"

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.45
    hooks:
    - id: gen-readme

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.46.tar.gz (20.0 kB view details)

Uploaded Source

Built Distribution

gen_odoo_readme-1.3.46-py3-none-any.whl (22.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gen_odoo_readme-1.3.46.tar.gz
  • Upload date:
  • Size: 20.0 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.46.tar.gz
Algorithm Hash digest
SHA256 2f2f02fdeaf3769d18304e4f1683da077eddf59d26bc2023a6f26502cfea00c0
MD5 4f2ac7513aacf915ef1bf4eac4287b36
BLAKE2b-256 7c99b17c6a1e444e46fb69cbd6eb7d94b6bbc7415d5f3a0bd501d3c5bc9547b1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gen_odoo_readme-1.3.46-py3-none-any.whl
Algorithm Hash digest
SHA256 759c34ce077af635929f55bfd88c60594251f77f757ea6a4dde5c1f6b0da7816
MD5 c48b660007f5af278b33c2ba301f6049
BLAKE2b-256 918e7fba89d040d51638b8908fb3ff11bcb29645c67e06bf6b17e0bda861b2d0

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