Commits

Anonymous committed cde9614

get builddir from settings.py

Comments (0)

Files changed (2)

docs/quickstart.txt

     active, you must enable Django's
     `cache framework <https://docs.djangoproject.com/en/dev/topics/cache/>`_
 
+``SPHINXDOC_BUILD_DIR``:
+    Sets the name of target directory (within the project root) for the
+    sphinx builder and the sphinxdoc updater. If not set, defaults to
+    *_build*.
+
 
 Add a project
 -------------

sphinxdoc/management/commands/updatedoc.py

 import os.path
 import subprocess
 
+from django.conf import settings
 from django.core.management import call_command
 from django.core.management.base import BaseCommand, CommandError
 
 from sphinxdoc.models import Project, Document
 
 
-BUILDDIR = '_build'
+BUILDDIR = getattr(settings, 'SPHINXDOC_BUILD_DIR', '_build')
 EXTENSION = '.fjson'
 SPECIAL_TITLES = {
     'genindex': 'General Index',