769eafb483
Flectra is Forked from Odoo v11 commit : (6135e82d73
)
14 lines
488 B
Python
14 lines
488 B
Python
# -*- coding: utf-8 -*-
|
|
from .directives import automodule_bound, autodirective_bound
|
|
from .extractor import _get_roots
|
|
|
|
|
|
def setup(app):
|
|
app.add_config_value('js_roots', _get_roots, 'env')
|
|
modules = {}
|
|
app.add_directive_to_domain('js', 'automodule', automodule_bound(app, modules)
|
|
)
|
|
autodirective = autodirective_bound(app, modules)
|
|
for n in ['autonamespace', 'automixin', 'autoclass', 'autofunction']:
|
|
app.add_directive_to_domain('js', n, autodirective)
|