def setup(app):
    """Additions and customizations to Sphinx that are useful for documenting
    the Salt project.

    """
    app.add_crossref_type(directivename="conf_master", rolename="conf_master",
            indextemplate="pair: %s; conf/master")
    app.add_crossref_type(directivename="conf_minion", rolename="conf_minion",
            indextemplate="pair: %s; conf/minion")
    app.add_crossref_type(directivename="conf-log", rolename="conf-log",
            indextemplate="pair: %s; conf/logging")
