def run(self):
import sphinx_autobuild
oldsysargv = sys.argv
# sphinx-autobuild's main function does not take parameters
sys.argv = self._get_sphinx_args()
sys.argv.extend([
'-z', '.', # Watch source directory
'-i', '*.goutputstream*', # Ignore gedit temp files
'-i', '.idea/*', # Ignore PyCharm files
'-i', '.git/*' # Ignore git directory
])
try:
sphinx_autobuild.main()
except SystemExit:
# Prevent sphinx from exiting
pass
sys.argv = oldsysargv
评论列表
文章目录