summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-09-27 00:52:40 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-09-27 00:55:03 +0200
commit9d15a77f8d9b800804b3b4760aac1e9bc33586b2 (patch)
treeed85ed184ee49f20e4d88142b02cbac45ced3b45
parentc8bbc6c3cfb7780281ed3f08d553e0e850a85ba7 (diff)
downloaddocs-9d15a77f8d9b800804b3b4760aac1e9bc33586b2.tar.gz
docs-9d15a77f8d9b800804b3b4760aac1e9bc33586b2.tar.bz2
docs-9d15a77f8d9b800804b3b4760aac1e9bc33586b2.zip
sphinx extension: ebics domain
-rw-r--r--_exts/ebicsdomain.py14
1 files changed, 6 insertions, 8 deletions
diff --git a/_exts/ebicsdomain.py b/_exts/ebicsdomain.py
index d07860f..70b15c2 100644
--- a/_exts/ebicsdomain.py
+++ b/_exts/ebicsdomain.py
@@ -1,5 +1,9 @@
"""
EBICS documentation domain.
+
+:copyright: Copyright 2019 by Taler Systems SA
+:license: LGPLv3+
+:author: Florian Dold
"""
import re
@@ -8,22 +12,16 @@ from docutils import nodes
from typing import List, Optional, Iterable, Dict, Tuple
from typing import cast
-from pygments.lexer import RegexLexer, bygroups
-from pygments.lexers import get_lexer_by_name
-from pygments.token import Literal, Text, Operator, Keyword, Name, Number
-from pygments.util import ClassNotFound
-
from docutils import nodes
-from docutils.nodes import Element, Node, system_message
+from docutils.nodes import Element, Node
from docutils.statemachine import StringList
from sphinx import addnodes
from sphinx.roles import XRefRole
from sphinx.domains import Domain, ObjType, Index
-from sphinx.directives import ObjectDescription, directives
+from sphinx.directives import directives
from sphinx.util.docutils import SphinxDirective
from sphinx.util.nodes import make_refnode
-from sphinx.util.docfields import GroupedField, TypedField
from sphinx.util import logging
logger = logging.getLogger(__name__)