From 27bad8c3e32049ec69a588df0558e57a0b928309 Mon Sep 17 00:00:00 2001 From: Victor Feyens Date: Fri, 30 Apr 2021 13:24:57 +0000 Subject: [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 Co-authored-by: Antoine Vandevenne --- doc/_extensions/autojsdoc/parser/tests/support.py | 73 ----------------------- 1 file changed, 73 deletions(-) delete mode 100644 doc/_extensions/autojsdoc/parser/tests/support.py (limited to 'doc/_extensions/autojsdoc/parser/tests/support.py') 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': [ - ('', jsdoc.LiteralDoc({'name': 'value', 'value': "ok"})), - ], - }), - 'dep2': jsdoc.ModuleDoc({ - 'module': 'dep2', - '_members': [ - ('', jsdoc.LiteralDoc({'value': 42.})), - ], - }), - 'dep3': jsdoc.ModuleDoc({ - 'module': 'dep3', - '_members': [ - ('', jsdoc.LiteralDoc({'value': 56.})), - ], - }), - 'Class': jsdoc.ModuleDoc({ - 'module': 'Class', - '_members': [ - ('', jsdoc.ClassDoc({ - 'name': 'Class', - 'doc': "Base Class" - })), - ], - }), - 'mixins': jsdoc.ModuleDoc({ - 'module': 'mixins', - '_members': [ - ('', jsdoc.NSDoc({ - 'name': 'mixins', - '_members': [ - ('Bob', jsdoc.ClassDoc({'class': "Bob"})), - ] - })), - ], - }), - 'Mixin': jsdoc.ModuleDoc({ - 'module': 'Mixin', - '_members': [ - ('', jsdoc.MixinDoc({ - '_members': [ - ('a', jsdoc.FunctionDoc({'function': 'a'})), - ] - })), - ], - }) -} -- cgit v1.2.3