flectra/doc/_extensions/autojsdoc/ext/__init__.py
flectra-admin 769eafb483 [INIT] Inception of Flectra from Odoo
Flectra is Forked from Odoo v11 commit : (6135e82d73)
2018-01-16 11:45:59 +05:30

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)