Install the plugin. :param app: Sphinx application context.
(app)
| 145 | |
| 146 | |
| 147 | def setup(app): |
| 148 | """Install the plugin. |
| 149 | |
| 150 | :param app: Sphinx application context. |
| 151 | """ |
| 152 | info('Initializing GitHub plugin') |
| 153 | app.add_role('ghissue', ghissue_role) |
| 154 | app.add_role('ghpull', ghissue_role) |
| 155 | app.add_role('ghuser', ghuser_role) |
| 156 | app.add_role('ghcommit', ghcommit_role) |
| 157 | app.add_config_value('github_project_url', None, 'env') |
| 158 | |
| 159 | metadata = {'parallel_read_safe': True, 'parallel_write_safe': True} |
| 160 | return metadata |