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 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 \
--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/jobiols/gen-readme.git
rev: 1.2.2
hooks:
- id: gen-readme
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file gen_odoo_readme-1.3.22.tar.gz
.
File metadata
- Download URL: gen_odoo_readme-1.3.22.tar.gz
- Upload date:
- Size: 19.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5dea25feb2483a6d78cce15b94af1211f2bb0b812a411a0f1738e7b90b4bebb3 |
|
MD5 | e91595cee69c22dcb0827ace1a64983d |
|
BLAKE2b-256 | 3efbeecd259fe745b49796b96ba24f5ed0f8a21aa75a948eb0e7e22312890a53 |
File details
Details for the file gen_odoo_readme-1.3.22-py3-none-any.whl
.
File metadata
- Download URL: gen_odoo_readme-1.3.22-py3-none-any.whl
- Upload date:
- Size: 22.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 944826d062353e86fb121b14a47e7726b9449729536d14c63c25e1c65877a625 |
|
MD5 | 64f40b08b0f8ff65026adcfb2243f43e |
|
BLAKE2b-256 | 68c6d8f31ed927a017ade591a54e2cca4bdc09b6ba7fb294c19b5c67c0ebcc11 |