Code Monkey home page Code Monkey logo

gen-readme's Introduction

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

gen-readme's People

Contributors

jobiols avatar dependabot[bot] avatar

Stargazers

 avatar Pelayo García avatar

Watchers

 avatar  avatar

gen-readme's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.