Skip to content

Commit

Permalink
Merge pull request #576 from acsone/add-context-sbi
Browse files Browse the repository at this point in the history
Add a CONTEXT fragment to the readme generator
  • Loading branch information
sbidoul authored Sep 2, 2023
2 parents 58557dd + 486172e commit 4228ec4
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 1 deletion.
13 changes: 13 additions & 0 deletions template/module/readme/CONTEXT.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
[ This file is optional but strongly suggested to allow end-users to evaluate the
module's usefulness in their context. ]

It should explain the “why” of the module:

- in which context or use cases this module can be useful (practical examples are welcome!).
- what is the business requirement that generated the need to develop this module

It can also inform on related modules:

- modules it depends on and their features
- other modules that can work well together with this one
- suggested setups where the module is useful (eg: multicompany, multi-website)
1 change: 1 addition & 0 deletions tools/gen_addon_readme.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

FRAGMENTS = (
"DESCRIPTION",
"CONTEXT",
"INSTALL",
"CONFIGURE",
"USAGE",
Expand Down
3 changes: 2 additions & 1 deletion tools/gen_addon_readme.rst.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@
.. contents::
:local:

{{ fragment('INSTALL', 'Installation') }}
{{ fragment('CONTEXT', 'Use Cases / Context') }}
{{- fragment('INSTALL', 'Installation') }}
{{- fragment('CONFIGURE', 'Configuration') }}
{{- fragment('USAGE', 'Usage') }}
{{- fragment('DEVELOP', 'Development') }}
Expand Down

0 comments on commit 4228ec4

Please sign in to comment.