From 6b2cb1a5b23e8c0ca83954cdc4c8dfb7ed6c8787 Mon Sep 17 00:00:00 2001 From: Benjamin Bach Date: Tue, 15 Nov 2016 17:52:14 +0100 Subject: [PATCH] Generate apidocs on rtd --- docs/conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/conf.py b/docs/conf.py index f30654d4..6b6b93c9 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -128,6 +128,8 @@ linkcheck_ignore = [ # -- Options for HTML output --------------------------------------------------- on_rtd = os.environ.get('READTHEDOCS', None) == 'True' +if on_rtd: + os.system("sphinx-apidoc --doc-project='Python Reference' -f -o . ../wiki") if on_rtd: html_theme = 'default' else: -- 2.45.2