GNUnet 0.22.2
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)
 
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__() [1/2]

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

◆ __init__() [2/2]

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

References typescriptdomain.MyPygmentsBridge.builder, AddressUriMergeResult.builder, typescriptdomain.MyPygmentsBridge.dest, GNUNET_CADET_ChannelInternals.dest, GNUNET_CADET_ChannelInfoMessage.dest, CadetChannel.dest, typescriptdomain.MyPygmentsBridge.docname, typescriptdomain.MyPygmentsBridge.formatter, typescriptdomain.MyPygmentsBridge.formatter_args, typescriptdomain.MyPygmentsBridge.line, Channel.line, typescriptdomain.MyPygmentsBridge.path, GNUNET_CADET_PeerPathDetail.path, GNUNET_Uri.path, CadetPeerPathEntry.path, CadetConnection.path, EvaluationSummary.path, DistanceVectorHop.path, and typescriptdomain.MyPygmentsBridge.trim_doctest_flags.

Member Function Documentation

◆ highlight_block() [1/2]

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, AddressUriMergeResult.builder, typescriptdomain.MyPygmentsBridge.docname, typescriptdomain.MyPygmentsBridge.highlight_block(), typescriptdomain.MyPygmentsBridge.line, Channel.line, typescriptdomain.MyPygmentsBridge.path, GNUNET_CADET_PeerPathDetail.path, GNUNET_Uri.path, CadetPeerPathEntry.path, CadetConnection.path, EvaluationSummary.path, and DistanceVectorHop.path.

Referenced by typescriptdomain.MyPygmentsBridge.highlight_block().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ highlight_block() [2/2]

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, AddressUriMergeResult.builder, typescriptdomain.MyPygmentsBridge.docname, typescriptdomain.MyPygmentsBridge.highlight_block(), typescriptdomain.MyPygmentsBridge.line, Channel.line, typescriptdomain.MyPygmentsBridge.path, GNUNET_CADET_PeerPathDetail.path, GNUNET_Uri.path, CadetPeerPathEntry.path, CadetConnection.path, EvaluationSummary.path, and DistanceVectorHop.path.

Here is the call graph for this function:

Field Documentation

◆ dest

typescriptdomain.MyPygmentsBridge.dest

Definition at line 500 of file typescriptdomain.py.

Referenced by typescriptdomain.MyPygmentsBridge.__init__().

◆ trim_doctest_flags

typescriptdomain.MyPygmentsBridge.trim_doctest_flags

Definition at line 501 of file typescriptdomain.py.

Referenced by typescriptdomain.MyPygmentsBridge.__init__().

◆ formatter_args

typescriptdomain.MyPygmentsBridge.formatter_args

Definition at line 502 of file typescriptdomain.py.

Referenced by typescriptdomain.MyPygmentsBridge.__init__().

◆ formatter

typescriptdomain.MyPygmentsBridge.formatter

Definition at line 507 of file typescriptdomain.py.

Referenced by typescriptdomain.MyPygmentsBridge.__init__().

◆ 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 files: