Skip to content

Commit

Permalink
Another try to get the docs built.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephrdev committed Mar 25, 2015
1 parent d6f448c commit 2aa736f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 11 deletions.
14 changes: 4 additions & 10 deletions docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import os, sys


sys.path.append(os.path.abspath('.'))
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_settings')

extensions = [
'sphinx.ext.autodoc',
'sphinx.ext.intersphinx',
Expand Down Expand Up @@ -34,12 +37,3 @@
'Miscellaneous'
)]
intersphinx_mapping = {'http://docs.python.org/': None}

# Ugly hack to provide some sane Django settings for autodoc.
os.environ.setdefault(
'DJANGO_SETTINGS_MODULE',
'django.conf.project_template.project_name.settings'
)
from django.conf import settings
settings.ULTIMATETHUMB_ROOT = '/docs/'
settings.ULTIMATETHUMB_URL = '/docs/'
4 changes: 4 additions & 0 deletions docs/django_settings.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SECRET_KEY = 'docs'
STATIC_URL = '/'
ULTIMATETHUMB_ROOT = '/'
ULTIMATETHUMB_URL = '/'
1 change: 0 additions & 1 deletion docs/requirements.txt

This file was deleted.

0 comments on commit 2aa736f

Please sign in to comment.