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 we 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 pip 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 \
    --org-name quilsoft-org \
    --repo-name star_enterprises \
    --branch 16.0 \
    --addons-dir "$PWD"

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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gen_odoo_readme-1.0.13-py3-none-any.whl (21.7 kB view details)

Uploaded Python 3

File details

Details for the file gen-odoo-readme-1.0.13.tar.gz.

File metadata

  • Download URL: gen-odoo-readme-1.0.13.tar.gz
  • Upload date:
  • Size: 19.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for gen-odoo-readme-1.0.13.tar.gz
Algorithm Hash digest
SHA256 b2afa600fd58a9dafadb0fddc7ecf38b68a5cbd9f3f99daa14c9f35a6a3600d0
MD5 3354156be1de074a764850c469ecc193
BLAKE2b-256 19d16a3fd67f0aac42cd36b87e3c64452a010c9869c3d6b7e7276907d041d8a4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gen_odoo_readme-1.0.13-py3-none-any.whl
Algorithm Hash digest
SHA256 1bc86d9fb6101da9c0ee1df0c417e35b4023a565f284c2c5430456254cb3c7e6
MD5 d3522c0e1d4adc3676740ec3943454a2
BLAKE2b-256 309644525c220da672b43a6fc130447aa79d84356fab50706dbcdafb90bf7ad7

See more details on using hashes here.

Supported by

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