File: domain.py

package info (click to toggle)
sphinxcontrib-datatemplates 0.11.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 580 kB
  • sloc: python: 828; makefile: 172; xml: 38; javascript: 1
file content (31 lines) | stat: -rw-r--r-- 874 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from sphinx.domains import Domain
from . import directive


class DataTemplateDomain(Domain):

    name = 'datatemplate'
    label = 'DataTemplate Replacement'
    directives = {
        'nodata': directive.DataTemplateNoData,
        'json': directive.DataTemplateJSON,
        'yaml': directive.DataTemplateYAML,
        'csv': directive.DataTemplateCSV,
        'xml': directive.DataTemplateXML,
        'dbm': directive.DataTemplateDBM,
        'import-module': directive.DataTemplateImportModule,
    }

    def get_objects(self):
        return []

    def resolve_xref(self, env, fromdocname, builder, typ, target, node,
                     contnode):
        return None

    def resolve_any_xref(self, env, fromdocname, builder, target, node,
                         contnode):
        return []

    def merge_domaindata(self, docnames, otherdata):
        pass