Sphinx extension for generating a custom content filtering