Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-ora2
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-ora2
Commits
ff23bd05
Commit
ff23bd05
authored
Jan 30, 2014
by
Mark Hoeber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed conf.py file to work locally with RTD template and on RTD.
parent
1c9b9fe0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
4 deletions
+14
-4
doc/source/conf.py
+14
-4
No files found.
doc/source/conf.py
View file @
ff23bd05
...
...
@@ -13,7 +13,7 @@
import
sys
,
os
import
sphinx_rtd_theme
#
import sphinx_rtd_theme
# 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
...
...
@@ -32,7 +32,7 @@ os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.base")
# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
extensions
=
[
'sphinx.ext.autodoc'
,
'sphinx
contrib.napoleon'
,
'sphinx
.ext.coverage'
,
'sphinx.ext.ifconfig'
,
'sphinx.ext.todo'
]
extensions
=
[
'sphinx.ext.autodoc'
,
'sphinx.ext.coverage'
,
'sphinx.ext.ifconfig'
,
'sphinx.ext.todo'
]
# Add any paths that contain templates here, relative to this directory.
templates_path
=
[
'_templates'
]
...
...
@@ -46,6 +46,16 @@ source_suffix = '.rst'
# The master toctree document.
master_doc
=
'index'
# on_rtd is whether we are on readthedocs.org, this line of code grabbed from docs.readthedocs.org
on_rtd
=
os
.
environ
.
get
(
'READTHEDOCS'
,
None
)
==
'True'
if
not
on_rtd
:
# only import and set the theme if we're building docs locally
import
sphinx_rtd_theme
html_theme
=
'sphinx_rtd_theme'
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
# General information about the project.
project
=
u'edx-tim'
copyright
=
u'2014, edX.org'
...
...
@@ -98,7 +108,7 @@ pygments_style = 'sphinx'
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
html_theme
=
"sphinx_rtd_theme
"
#html_theme = "default
"
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
...
...
@@ -106,7 +116,7 @@ html_theme = "sphinx_rtd_theme"
#html_theme_options = {}
# Add any paths that contain custom themes here, relative to this directory.
html_theme_path
=
[
sphinx_rtd_theme
.
get_html_theme_path
()]
#
html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# The name for this set of Sphinx documents. If None, it defaults to
# "<project> v<release> documentation".
...
...
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