How do I create a global role/roles in Sphinx?
问题 This is a followup of "ReST Strikethrough" ReST strikethrough but in a Sphinx rather than ReST context. My question is whether there is a central place in sphinx where to put a "role" directive or whether this directive really has to be repeated in every rst file within a sphinx docmentation. In more detail: It is easy to define custom CSS styles for inline text (see ReST Strikethrough as example) using a role directive: .. role:: custom :class: custom This is an :custom:`inline text`. which