I just released a stable version of sphinxnotes-mock. It is a Sphinx extension
for mocking directives and roles without modifying your document.
It is useful when you want to hide directive/role or your current environment
does not support such directive/role. For example, The sphinx_book_theme
supports secondary sidebar for showing page table of contents, so the
``.. contents::`` directive is no longer needed. You may don’t want to
remove the directive bacause it can also show ToC on github. So you can use
this extension to hide it.