GNUnet  0.20.0
typescriptdomain.MyPygmentsBridge Class Reference
Inheritance diagram for typescriptdomain.MyPygmentsBridge:
[legend]
Collaboration diagram for typescriptdomain.MyPygmentsBridge:
[legend]

Public Member Functions

def __init__ (self, builder, trim_doctest_flags)
 
def highlight_block (self, source, lang, opts=None, force=False, location=None, **kwargs)
 

Data Fields

 dest
 
 trim_doctest_flags
 
 formatter_args
 
 formatter
 
 builder
 
 path
 
 line
 
 docname
 

Detailed Description

Definition at line 498 of file typescriptdomain.py.

Constructor & Destructor Documentation

◆ __init__()

def typescriptdomain.MyPygmentsBridge.__init__ (   self,
  builder,
  trim_doctest_flags 
)

Definition at line 499 of file typescriptdomain.py.

499  def __init__(self, builder, trim_doctest_flags):
500  self.dest = "html"
501  self.trim_doctest_flags = trim_doctest_flags
502  self.formatter_args = {
503  "style": SphinxStyle,
504  "_builder": builder,
505  "_bridge": self,
506  }
507  self.formatter = LinkingHtmlFormatter
508  self.builder = builder
509  self.path = None
510  self.line = None
511  self.docname = None
512 

Member Function Documentation

◆ highlight_block()

def typescriptdomain.MyPygmentsBridge.highlight_block (   self,
  source,
  lang,
  opts = None,
  force = False,
  location = None,
**  kwargs 
)

Definition at line 513 of file typescriptdomain.py.

515  ):
516  if isinstance(location, tuple):
517  docname, line = location
518  self.line = line
519  self.path = self.builder.env.doc2path(docname)
520  self.docname = docname
521  elif isinstance(location, Element):
522  self.line = location.line
523  self.path = location.source
524  self.docname = self.builder.env.path2doc(self.path)
525  return super().highlight_block(source, lang, opts, force, location, **kwargs)
526 
527 

References typescriptdomain.MyPygmentsBridge.builder, typescriptdomain.MyPygmentsBridge.docname, typescriptdomain.MyPygmentsBridge.line, Channel.line, typescriptdomain.MyPygmentsBridge.path, CadetPeerPathEntry.path, CadetConnection.path, EvaluationSummary.path, GNUNET_CADET_PeerPathDetail.path, GNUNET_Uri.path, DistanceVectorHop.path, and SplittedHTTPAddress.path.

Field Documentation

◆ dest

typescriptdomain.MyPygmentsBridge.dest

Definition at line 500 of file typescriptdomain.py.

◆ trim_doctest_flags

typescriptdomain.MyPygmentsBridge.trim_doctest_flags

Definition at line 501 of file typescriptdomain.py.

◆ formatter_args

typescriptdomain.MyPygmentsBridge.formatter_args

Definition at line 502 of file typescriptdomain.py.

◆ formatter

typescriptdomain.MyPygmentsBridge.formatter

Definition at line 507 of file typescriptdomain.py.

◆ builder

typescriptdomain.MyPygmentsBridge.builder

◆ path

typescriptdomain.MyPygmentsBridge.path

◆ line

typescriptdomain.MyPygmentsBridge.line

◆ docname

typescriptdomain.MyPygmentsBridge.docname

The documentation for this class was generated from the following file: