| 149 | |
| 150 | |
| 151 | def setup(app): |
| 152 | app.connect( |
| 153 | 'missing-reference', |
| 154 | maybe_resolve_abbreviations, |
| 155 | ) |
| 156 | |
| 157 | app.add_crossref_type( |
| 158 | directivename='sig', |
| 159 | rolename='sig', |
| 160 | indextemplate='pair: %s; sig', |
| 161 | ) |
| 162 | app.add_crossref_type( |
| 163 | directivename='state', |
| 164 | rolename='state', |
| 165 | indextemplate='pair: %s; state', |
| 166 | ) |
| 167 | app.add_crossref_type( |
| 168 | directivename='control', |
| 169 | rolename='control', |
| 170 | indextemplate='pair: %s; control', |
| 171 | ) |
| 172 | app.add_crossref_type( |
| 173 | directivename='event', |
| 174 | rolename='event', |
| 175 | indextemplate='pair: %s; event', |
| 176 | ) |
| 177 | |
| 178 | return { |
| 179 | 'parallel_read_safe': True |
| 180 | } |