From 79b1bffdc85999a80c19da467e3d26bb012121a2 Mon Sep 17 00:00:00 2001 From: Julian Arni Date: Tue, 16 Jul 2013 13:30:39 -0400 Subject: [PATCH] fix breakage from dir renaming --- docs/developers/Makefile | 4 ++-- docs/developers/conf.py | 13 +++++++++++-- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/docs/developers/Makefile b/docs/developers/Makefile index 11c47a3b81..b59548cde2 100644 --- a/docs/developers/Makefile +++ b/docs/developers/Makefile @@ -10,9 +10,9 @@ BUILDDIR = build # Internal variables. PAPEROPT_a4 = -D latex_paper_size=a4 PAPEROPT_letter = -D latex_paper_size=letter -ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +ALLSPHINXOPTS = -d $(BUILDDIR)/doctrees -c . $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source # the i18n builder cannot share the environment and doctrees with the others -I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) . +I18NSPHINXOPTS = $(PAPEROPT_$(PAPER)) $(SPHINXOPTS) source .PHONY: help clean html dirhtml singlehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext diff --git a/docs/developers/conf.py b/docs/developers/conf.py index 809fc306bc..8613ca9319 100644 --- a/docs/developers/conf.py +++ b/docs/developers/conf.py @@ -26,8 +26,17 @@ import os # If extensions (or modules to document with autodoc) are in another directory, # add these directories to sys.path here. If the directory is relative to the # documentation root, use os.path.abspath to make it absolute, like shown here. -# sys.path.insert(0, os.path.abspath('.')) -sys.path.insert(0, os.path.abspath('../..')) # mitx folder +sys.path.insert(0, os.path.abspath('.')) +root = os.path.abspath('../../..') + +sys.path.append(root) +sys.path.append(os.path.join(root, "common/djangoapps")) +sys.path.append(os.path.join(root, "common/lib")) +sys.path.append(os.path.join(root, "common/lib/sandbox-packages")) +sys.path.append(os.path.join(root, "lms/djangoapps")) +sys.path.append(os.path.join(root, "lms/lib")) +sys.path.append(os.path.join(root, "cms/djangoapps")) +sys.path.append(os.path.join(root, "cms/lib")) # django configuration - careful here os.environ['DJANGO_SETTINGS_MODULE'] = 'lms.envs.test'