(app)
return dict(version=__version__, parallel_read_safe=True)
Install the plugin.

    Arguments:

        app (sphinx.application.Sphinx):

            the Sphinx application context
Install the plugin.
Install the plugin .
def setup(app):
    """
    Install the plugin.

    Arguments:

        app (sphinx.application.Sphinx):

            the Sphinx application context
    """

    app.add_config_value("cache_path", "_cache", "")

    os.makedirs(app.config.cache_path, exist_ok=True)

    path = os.path.join(app.config.cache_path, "spec.html")
    spec = fetch_or_load(path)
    app.add_role("validator", docutils_does_not_allow_using_classes(spec))

    return dict(version=__version__, parallel_read_safe=True)
def setup ( app ) : app . add_config_value ( "cache_path" , "_cache" , "" ) os . makedirs ( app . config . cache_path , exist_ok = True ) path = os . path . join ( app . config . cache_path , "spec.html" ) spec = fetch_or_load ( path ) app . add_role ( "validator" , docutils_does_not_allow_using_classes ( spec ) ) return dict ( version = __version__ , parallel_read_safe = True )