##// END OF EJS Templates
Support parallel sphinx building
Michael Droettboom -
Show More
@@ -13,7 +13,8 b' def setup(app):'
13 # But if somebody knows what the right API usage should be to do that via
13 # But if somebody knows what the right API usage should be to do that via
14 # sphinx, by all means fix it here. At least having this setup.py
14 # sphinx, by all means fix it here. At least having this setup.py
15 # suppresses the sphinx warning we'd get without it.
15 # suppresses the sphinx warning we'd get without it.
16 pass
16 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
17 return metadata
17
18
18 # Register the extension as a valid pygments lexer.
19 # Register the extension as a valid pygments lexer.
19 # Alternatively, we could register the lexer with pygments instead. This would
20 # Alternatively, we could register the lexer with pygments instead. This would
@@ -1008,6 +1008,9 b' def setup(app):'
1008
1008
1009 app.add_config_value('ipython_holdcount', True, 'env')
1009 app.add_config_value('ipython_holdcount', True, 'env')
1010
1010
1011 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
1012 return metadata
1013
1011 # Simple smoke test, needs to be converted to a proper automatic test.
1014 # Simple smoke test, needs to be converted to a proper automatic test.
1012 def test():
1015 def test():
1013
1016
@@ -143,7 +143,7 b' def ghcommit_role(name, rawtext, text, lineno, inliner, options={}, content=[]):'
143
143
144 def setup(app):
144 def setup(app):
145 """Install the plugin.
145 """Install the plugin.
146
146
147 :param app: Sphinx application context.
147 :param app: Sphinx application context.
148 """
148 """
149 app.info('Initializing GitHub plugin')
149 app.info('Initializing GitHub plugin')
@@ -152,4 +152,6 b' def setup(app):'
152 app.add_role('ghuser', ghuser_role)
152 app.add_role('ghuser', ghuser_role)
153 app.add_role('ghcommit', ghcommit_role)
153 app.add_role('ghcommit', ghcommit_role)
154 app.add_config_value('github_project_url', None, 'env')
154 app.add_config_value('github_project_url', None, 'env')
155 return
155
156 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
157 return metadata
@@ -40,3 +40,6 b' def setup(app):'
40 StandardDomain.roles['magic'] = LineMagicRole()
40 StandardDomain.roles['magic'] = LineMagicRole()
41 app.add_object_type('cellmagic', 'cellmagic', 'pair: %s; cell magic', parse_cell_magic)
41 app.add_object_type('cellmagic', 'cellmagic', 'pair: %s; cell magic', parse_cell_magic)
42 StandardDomain.roles['cellmagic'] = CellMagicRole()
42 StandardDomain.roles['cellmagic'] = CellMagicRole()
43
44 metadata = {'parallel_read_safe': True, 'parallel_write_safe': True}
45 return metadata
General Comments 0
You need to be logged in to leave comments. Login now