connections
¶
fontawesome_icons = {'LinkedIn': 'linkedin', 'GitHub': 'github', 'GitLab': 'gitlab', 'IMDB': 'imdb', 'Instagram': 'instagram', 'Mastodon': 'mastodon', 'ORCID': 'orcid', 'StackOverflow': 'stack-overflow', 'ResearchGate': 'researchgate', 'YouTube': 'youtube', 'Google Scholar': 'graduation-cap', 'Telegram': 'telegram', 'WhatsApp': 'whatsapp', 'Leetcode': 'code', 'X': 'x-twitter', 'location': 'location-dot', 'email': 'envelope', 'phone': 'phone', 'website': 'link'}
module-attribute
¶
Connection(fontawesome_icon, url, body)
dataclass
¶
compute_connections(rendercv_model, file_type)
¶
Route to format-specific connection generator.
Parameters:
-
rendercv_model(RenderCVModel) –CV model with contact information.
-
file_type(Literal['typst', 'markdown']) –Target format for connections.
Returns:
-
list[str]–List of formatted connection strings.
Source code in src/rendercv/renderer/templater/connections.py
compute_connections_for_markdown(rendercv_model)
¶
Format connections as Markdown links without icons.
Parameters:
-
rendercv_model(RenderCVModel) –CV model with contact information.
Returns:
-
list[str]–List of Markdown-formatted connection strings.
Source code in src/rendercv/renderer/templater/connections.py
compute_connections_for_typst(rendercv_model)
¶
Format connections with Typst markup, Font Awesome icons, and conditional hyperlinks.
Why
Typst templates need connection strings with icon syntax and link markup. Icon visibility and hyperlink behavior are user-configurable through design settings, requiring conditional formatting at render time.
Parameters:
-
rendercv_model(RenderCVModel) –CV model with contact information and design settings.
Returns:
-
list[str]–List of Typst-formatted connection strings ready for template insertion.
Source code in src/rendercv/renderer/templater/connections.py
parse_connections(rendercv_model)
¶
Extract contact information from CV model into normalized connection format.
Why
CV header displays various contact methods in user-defined order. This extracts emails, phones, websites, location, and social networks from the model, preserving the order specified in the input file.
Parameters:
-
rendercv_model(RenderCVModel) –CV model with contact information.
Returns:
-
list[Connection]–List of connections with icon specifiers, URLs, and display text.
Source code in src/rendercv/renderer/templater/connections.py
59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 | |