Skip to content

Commit

Permalink
Update conf.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fujiisoup committed Oct 16, 2017
1 parent ed15079 commit 152a7d9
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,25 @@
'sphinx.ext.autodoc',
'sphinx.ext.doctest',
'sphinx.ext.inheritance_diagram',
'numpydoc'
]

# Determine if the matplotlib has a recent enough version of the
# plot_directive, otherwise use the local fork.
try:
from matplotlib.sphinxext import plot_directive
except ImportError:
use_matplotlib_plot_directive = False
else:
try:
use_matplotlib_plot_directive = (plot_directive.__version__ >= 2)
except AttributeError:
use_matplotlib_plot_directive = False

if use_matplotlib_plot_directive:
extensions.append('matplotlib.sphinxext.plot_directive')
else:
extensions.append('plot_directive')

# Add any paths that contain templates here, relative to this directory.
templates_path = ['_templates']

Expand All @@ -55,7 +71,7 @@
master_doc = 'index'

# General information about the project.
project = 'jupyter-notebook'
project = 'python-tutorial'
copyright = '2017, Keisuke Fujii'
author = 'Keisuke Fujii'

Expand Down Expand Up @@ -136,7 +152,7 @@
# (source start file, target name, title,
# author, documentclass [howto, manual, or own class]).
latex_documents = [
(master_doc, 'jupyter-notebook.tex', 'jupyter-notebook Documentation',
(master_doc, 'python-tutorial.tex', 'python-tutorial',
'Keisuke Fujii', 'manual'),
]

Expand All @@ -146,7 +162,7 @@
# One entry per manual page. List of tuples
# (source start file, name, description, authors, manual section).
man_pages = [
(master_doc, 'jupyter-notebook', 'jupyter-notebook Documentation',
(master_doc, 'python-tutorial', 'python-tutorial',
[author], 1)
]

Expand All @@ -157,7 +173,7 @@
# (source start file, target name, title, author,
# dir menu entry, description, category)
texinfo_documents = [
(master_doc, 'jupyter-notebook', 'jupyter-notebook Documentation',
author, 'jupyter-notebook', 'One line description of project.',
(master_doc, 'python-tutorial', 'python-tutorial',
author, 'Keisuke Fujii', 'One line description of project.',
'Miscellaneous'),
]

0 comments on commit 152a7d9

Please sign in to comment.