Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
2bb7372a
Commit
2bb7372a
authored
Aug 01, 2013
by
Julian Arni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove django.utils dependency
And fix path issues.
parent
78ca8fb7
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
151 additions
and
15 deletions
+151
-15
docs/course_authors/source/get_started.rst
+1
-1
docs/course_authors/source/read_me.rst
+0
-0
docs/data/source/conf.py
+5
-4
docs/developers/source/__init__.py
+0
-0
docs/developers/source/conf.py
+69
-10
docs/shared/requirements.txt
+76
-0
No files found.
docs/course_authors/source/get_started.rst
View file @
2bb7372a
...
@@ -117,7 +117,7 @@ e. Click to select I agree to the Terms of Service.
...
@@ -117,7 +117,7 @@ e. Click to select I agree to the Terms of Service.
.. image:: Images/image017.png
.. image:: Images/image017.png
:width: 800
:width: 800
.. raw:: latex
.. raw:: latex
\newpage %
\newpage %
...
...
userdoc
s/source/read_me.rst
→
docs/course_author
s/source/read_me.rst
View file @
2bb7372a
File moved
docs/data/source/conf.py
View file @
2bb7372a
...
@@ -5,17 +5,18 @@ import sys, os
...
@@ -5,17 +5,18 @@ import sys, os
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
if
on_rtd
:
# Add to syspath so RTD will find the common conf file
sys
.
path
.
append
(
os
.
path
.
abspath
(
'../../../'
))
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
os
.
path
.
abspath
(
'../../'
)
)
from
docs.shared.conf
import
*
from
docs.shared.conf
import
*
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'.'
))
master_doc
=
'index'
# Add any paths that contain templates here, relative to this directory.
# Add any paths that contain templates here, relative to this directory.
templates_path
.
append
(
'source/_templates'
)
templates_path
.
append
(
'source/_templates'
)
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
'.'
))
# Add any paths that contain custom static files (such as style sheets) here,
# Add any paths that contain custom static files (such as style sheets) here,
# relative to this directory. They are copied after the builtin static files,
# relative to this directory. They are copied after the builtin static files,
# so a file named "default.css" will overwrite the builtin "default.css".
# so a file named "default.css" will overwrite the builtin "default.css".
...
...
docs/developers/source/__init__.py
0 → 100644
View file @
2bb7372a
docs/developers/source/conf.py
View file @
2bb7372a
...
@@ -8,8 +8,7 @@ import sys, os
...
@@ -8,8 +8,7 @@ import sys, os
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
if
on_rtd
:
# Add to syspath so RTD will find the common conf file
sys
.
path
.
append
(
'../../../'
)
sys
.
path
.
append
(
'../../../'
)
from
docs.shared.conf
import
*
from
docs.shared.conf
import
*
...
@@ -24,14 +23,10 @@ templates_path.append('source/_templates')
...
@@ -24,14 +23,10 @@ templates_path.append('source/_templates')
html_static_path
.
append
(
'source/_static'
)
html_static_path
.
append
(
'source/_static'
)
import
sys
import
os
# If extensions (or modules to document with autodoc) are in another directory,
# 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
# 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.
# 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('../../.
.'))
root
=
os
.
path
.
abspath
(
'../../..'
)
root
=
os
.
path
.
abspath
(
'../../..'
)
sys
.
path
.
append
(
root
)
sys
.
path
.
append
(
root
)
...
@@ -42,9 +37,15 @@ sys.path.append(os.path.join(root, "lms/djangoapps"))
...
@@ -42,9 +37,15 @@ 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
,
"lms/lib"
))
sys
.
path
.
append
(
os
.
path
.
join
(
root
,
"cms/djangoapps"
))
sys
.
path
.
append
(
os
.
path
.
join
(
root
,
"cms/djangoapps"
))
sys
.
path
.
append
(
os
.
path
.
join
(
root
,
"cms/lib"
))
sys
.
path
.
append
(
os
.
path
.
join
(
root
,
"cms/lib"
))
sys
.
path
.
insert
(
0
,
os
.
path
.
abspath
(
os
.
path
.
normpath
(
os
.
path
.
dirname
(
__file__
)
+
'/../../'
)))
sys
.
path
.
append
(
'.'
)
# django configuration - careful here
# django configuration - careful here
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
=
'lms.envs.test'
if
on_rtd
:
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
=
'lms'
else
:
os
.
environ
[
'DJANGO_SETTINGS_MODULE'
]
=
'lms.envs.test'
# -- General configuration -----------------------------------------------------
# -- General configuration -----------------------------------------------------
...
@@ -68,9 +69,67 @@ htmlhelp_basename = 'edXDocs'
...
@@ -68,9 +69,67 @@ htmlhelp_basename = 'edXDocs'
# autogenerate models definitions
# autogenerate models definitions
import
inspect
import
inspect
from
django.utils.html
import
strip_tags
import
types
from
django.utils.encoding
import
force_unicode
from
HTMLParser
import
HTMLParser
def
force_unicode
(
s
,
encoding
=
'utf-8'
,
strings_only
=
False
,
errors
=
'strict'
):
"""
Similar to smart_unicode, except that lazy instances are resolved to
strings, rather than kept as lazy objects.
If strings_only is True, don't convert (some) non-string-like objects.
"""
if
strings_only
and
isinstance
(
s
,
(
types
.
NoneType
,
int
)):
return
s
if
not
isinstance
(
s
,
basestring
,):
if
hasattr
(
s
,
'__unicode__'
):
s
=
unicode
(
s
)
else
:
s
=
unicode
(
str
(
s
),
encoding
,
errors
)
elif
not
isinstance
(
s
,
unicode
):
s
=
unicode
(
s
,
encoding
,
errors
)
return
s
class
MLStripper
(
HTMLParser
):
def
__init__
(
self
):
self
.
reset
()
self
.
fed
=
[]
def
handle_data
(
self
,
d
):
self
.
fed
.
append
(
d
)
def
get_data
(
self
):
return
''
.
join
(
self
.
fed
)
def
strip_tags
(
html
):
s
=
MLStripper
()
s
.
feed
(
html
)
return
s
.
get_data
()
class
Mock
(
object
):
def
__init__
(
self
,
*
args
,
**
kwargs
):
pass
def
__call__
(
self
,
*
args
,
**
kwargs
):
return
Mock
()
@classmethod
def
__getattr__
(
cls
,
name
):
if
name
in
(
'__file__'
,
'__path__'
):
return
'/dev/null'
elif
name
[
0
]
==
name
[
0
]
.
upper
():
mockType
=
type
(
name
,
(),
{})
mockType
.
__module__
=
__name__
return
mockType
else
:
return
Mock
()
MOCK_MODULES
=
[
'scipy'
,
'numpy'
]
for
mod_name
in
MOCK_MODULES
:
sys
.
modules
[
mod_name
]
=
Mock
()
def
process_docstring
(
app
,
what
,
name
,
obj
,
options
,
lines
):
def
process_docstring
(
app
,
what
,
name
,
obj
,
options
,
lines
):
"""Autodoc django models"""
"""Autodoc django models"""
...
...
docs/shared/requirements.txt
0 → 100644
View file @
2bb7372a
# Read the docs requirements file
# ----------------------------------------
# Installing modules with C dependencies on RTD can be tricky, and pip doesn't
# have an 'ignore-errors' option, so all requirements fail. Here we keep the
# maximal list of modules that still works.
#
beautifulsoup4==4.1.3
beautifulsoup==3.2.1
boto==2.6.0
celery==3.0.19
distribute>=0.6.28, <0.7
django-celery==3.0.17
django-countries==1.5
django-filter==0.6.0
django-followit==0.0.3
django-keyedcache==1.4-6
django-kombu==0.9.4
django-mako==0.1.5pre
django-masquerade==0.1.6
django-mptt==0.5.5
django-openid-auth==0.4
django-robots==0.9.1
django-sekizai==0.6.1
django-ses==0.4.1
django-storages==1.1.5
django-threaded-multihost==1.4-1
django-method-override==0.1.0
djangorestframework==2.3.5
django==1.4.5
feedparser==5.1.3
fs==0.4.0
GitPython==0.3.2.RC1
glob2==0.3
lxml==3.0.1
mako==0.7.3
Markdown==2.2.1
networkx==1.7
nltk==2.0.4
paramiko==1.9.0
path.py==3.0.1
Pillow==1.7.8
pip>=1.3
polib==1.0.3
pycrypto>=2.6
pygments==1.5
pymongo==2.4.1
python-memcached==1.48
python-openid==2.2.5
pytz==2012h
PyYAML==3.10
requests==0.14.2
Shapely==1.2.16
sorl-thumbnail==11.12
South==0.7.6
sympy==0.7.1
xmltodict==0.4.1
# Metrics gathering and monitoring
dogapi==1.2.1
dogstatsd-python==0.2.1
newrelic==1.8.0.13
# Used for Internationalization and localization
Babel==0.9.6
transifex-client==0.8
-e common/lib/calc
-e common/lib/capa
-e common/lib/chem
-e common/lib/sandbox-packages
-e common/lib/symmath
-e common/lib/xmodule
-e .
-e git+https://github.com/edx/XBlock.git@b697bebd45deebd0f868613fab6722a0460ca0c1#egg=XBlock
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment