diff options
| author | Victor Feyens <vfe@odoo.com> | 2021-04-30 13:24:57 +0000 |
|---|---|---|
| committer | Antoine Vandevenne (anv) <anv@odoo.com> | 2021-05-04 08:09:20 +0000 |
| commit | 27bad8c3e32049ec69a588df0558e57a0b928309 (patch) | |
| tree | b60e430163d486c8c1fd052738c9854aeb8300f5 /doc/_extensions/autojsdoc/parser/tests/support.py | |
| parent | 75a122bbae3a32bfa79da3506179fc63a8bced5d (diff) | |
[MOV] doc: move documentation to a dedicated repository
In odoo/documentation-user#945, the developer documentation is merged
with the user documentation in a single repository and build config.
This commit then removes source files for the developer documentation
from the odoo/odoo repository.
DOC PR: https://github.com/odoo/documentation-user/pull/945
task-2351938
task-2352371
task-2205684
task-2352544
Co-authored-by: Victor Feyens <vfe@odoo.com>
Co-authored-by: Antoine Vandevenne <anv@odoo.com>
Diffstat (limited to 'doc/_extensions/autojsdoc/parser/tests/support.py')
| -rw-r--r-- | doc/_extensions/autojsdoc/parser/tests/support.py | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/doc/_extensions/autojsdoc/parser/tests/support.py b/doc/_extensions/autojsdoc/parser/tests/support.py deleted file mode 100644 index f533f98d90c..00000000000 --- a/doc/_extensions/autojsdoc/parser/tests/support.py +++ /dev/null @@ -1,73 +0,0 @@ -# -*- coding: utf-8 -*- -import operator - -import pyjsparser - -from autojsdoc.parser import jsdoc, parser - -params = operator.attrgetter('name', 'type', 'doc') - - -def parse(s, source=None): - tree = pyjsparser.parse(s) - mods = parser.ModuleMatcher(source).visit(tree) - post(mods) - return mods - -def post(mods): - modules = dict(BASE_MODULES) - modules.update((m.name, m) for m in mods) - - for mod in mods: - mod.post_process(modules) - -BASE_MODULES = { - 'other': jsdoc.ModuleDoc({ - 'module': 'other', - '_members': [ - ('<exports>', jsdoc.LiteralDoc({'name': 'value', 'value': "ok"})), - ], - }), - 'dep2': jsdoc.ModuleDoc({ - 'module': 'dep2', - '_members': [ - ('<exports>', jsdoc.LiteralDoc({'value': 42.})), - ], - }), - 'dep3': jsdoc.ModuleDoc({ - 'module': 'dep3', - '_members': [ - ('<exports>', jsdoc.LiteralDoc({'value': 56.})), - ], - }), - 'Class': jsdoc.ModuleDoc({ - 'module': 'Class', - '_members': [ - ('<exports>', jsdoc.ClassDoc({ - 'name': 'Class', - 'doc': "Base Class" - })), - ], - }), - 'mixins': jsdoc.ModuleDoc({ - 'module': 'mixins', - '_members': [ - ('<exports>', jsdoc.NSDoc({ - 'name': 'mixins', - '_members': [ - ('Bob', jsdoc.ClassDoc({'class': "Bob"})), - ] - })), - ], - }), - 'Mixin': jsdoc.ModuleDoc({ - 'module': 'Mixin', - '_members': [ - ('<exports>', jsdoc.MixinDoc({ - '_members': [ - ('a', jsdoc.FunctionDoc({'function': 'a'})), - ] - })), - ], - }) -} |
