Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
Loading...
Searching...
No Matches
github_alerts Namespace Reference

Classes

class  GithubAlertsToAdmonitions
 

Functions

int _convert_blockquotes (nodes.document doctree, *, bool debug=False)
 
 setup (app)
 

Variables

 _ALERT_HEADER = re.compile(r"^\s*\[\!(?P<kind>[A-Za-z]+)\]\s*(?P<title>.*)")
 
dict _KIND_MAP
 
 logger = logging.getLogger(__name__)
 

Function Documentation

◆ _convert_blockquotes()

int github_alerts._convert_blockquotes ( nodes.document doctree,
* ,
bool debug = False )
protected
Convert GitHub alert blockquotes into admonitions. Returns count converted.

Definition at line 31 of file github_alerts.py.

◆ setup()

github_alerts.setup ( app)

Definition at line 92 of file github_alerts.py.

Variable Documentation

◆ _ALERT_HEADER

github_alerts._ALERT_HEADER = re.compile(r"^\s*\[\!(?P<kind>[A-Za-z]+)\]\s*(?P<title>.*)")
protected

Definition at line 13 of file github_alerts.py.

◆ _KIND_MAP

dict github_alerts._KIND_MAP
protected
Initial value:
1= {
2 "note": nodes.note,
3 "tip": nodes.tip,
4 "hint": nodes.hint,
5 "important": nodes.important,
6 "warning": nodes.warning,
7 "caution": nodes.caution,
8 "attention": nodes.attention,
9 "danger": nodes.danger,
10 "error": nodes.error,
11 # Aliases
12 "info": nodes.note,
13 "success": nodes.tip,
14}

Definition at line 16 of file github_alerts.py.

◆ logger

github_alerts.logger = logging.getLogger(__name__)

Definition at line 7 of file github_alerts.py.