Skip to content

Commit

Permalink
Merge pull request #1121 from ysitu/doc
Browse files Browse the repository at this point in the history
Add source directory to sys.path and enable MathJax in conf.py
  • Loading branch information
hagberg committed Apr 24, 2014
2 parents 715c03b + 4a39deb commit 7ddefc2
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions doc/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,18 @@
raise RuntimeError("Sphinx 1.0.1 or newer required")

# If your extensions are in another directory, add it here.
sys.path.insert(0, os.path.abspath('../..'))
sys.path.append(os.path.abspath('../sphinxext'))

# General configuration
# ---------------------

# Add any Sphinx extension module names here, as strings. They can be extensions
# coming with Sphinx (named 'sphinx.addons.*') or your custom ones.
extensions = ['sphinx.ext.autodoc',
extensions = ['sphinx.ext.autodoc',
'sphinx.ext.pngmath',
'sphinx.ext.viewcode',
# 'sphinx.ext.mathjax',
'sphinx.ext.mathjax',
'numpydoc',
'sphinx.ext.coverage',
'sphinx.ext.autosummary','sphinx.ext.todo','sphinx.ext.doctest',
Expand All @@ -44,7 +45,7 @@
# The suffix of source filenames.
source_suffix = '.rst'

# The encoding of source files.
# The encoding of source files.
source_encoding = 'utf-8'

# The master toctree document.
Expand Down Expand Up @@ -152,7 +153,7 @@

# Grouping the document tree into LaTeX files. List of tuples
# (source start file, target name, title, author, document class [howto/manual]).
latex_documents = [('tutorial/index', 'networkx_tutorial.tex',
latex_documents = [('tutorial/index', 'networkx_tutorial.tex',
'NetworkX Tutorial',
'Aric Hagberg, Dan Schult, Pieter Swart', 'howto', 1),
('reference/pdf_reference', 'networkx_reference.tex',
Expand All @@ -167,10 +168,10 @@
intersphinx_mapping = {'http://docs.python.org/': None,
'http://docs.scipy.org/doc/numpy/': None,
}

# For trac custom roles

default_role = 'math'
default_role = 'math'
trac_url = 'https://networkx.lanl.gov/trac/'
#mathjax_path = 'http://mathjax.connectmv.com/MathJax.js'
mathjax_path = 'https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/MathJax.js?config=TeX-AMS_HTML'

0 comments on commit 7ddefc2

Please sign in to comment.