Skip to content

Commit 451a8b3

Browse files
Merge pull request #341 from pdebuyl/update_makefile_conf
Update Makefile and conf.py
2 parents f84b97d + 62ddefa commit 451a8b3

File tree

2 files changed

+6
-19
lines changed

2 files changed

+6
-19
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ help:
3131

3232
clean:
3333
-rm -rf build/*
34-
-rm -rf intro/scipy/auto_examples/ intro/matplotlib/auto_examples/ intro/summary-exercises/auto_examples advanced/mathematical_optimization/auto_examples/ advanced/advanced_numpy/auto_examples/ advanced/image_processing/auto_examples advanced/scipy_sparse/auto_examples packages/3d_plotting/auto_examples packages/statistics/auto_examples/ packages/scikit-image/auto_examples/ packages/scikit-learn/auto_examples
34+
-rm -rf intro/scipy/auto_examples/ intro/matplotlib/auto_examples/ intro/summary-exercises/auto_examples advanced/mathematical_optimization/auto_examples/ advanced/advanced_numpy/auto_examples/ advanced/image_processing/auto_examples advanced/scipy_sparse/auto_examples packages/3d_plotting/auto_examples packages/statistics/auto_examples/ packages/scikit-image/auto_examples/ packages/scikit-learn/auto_examples intro/numpy/auto_examples guide/auto_examples
3535

3636
test:
3737
MATPLOTLIBRC=build_tools $(PYTHON) -m pytest --doctest-glob '*.rst' --ignore advanced/advanced_numpy/examples/myobject_test.py --ignore advanced/interfacing_with_c/numpy_c_api/test_cos_module_np.py --ignore advanced/interfacing_with_c/ctypes/cos_module.py --ignore advanced/interfacing_with_c/swig_numpy/test_cos_doubles.py --ignore advanced/interfacing_with_c/cython_numpy/test_cos_doubles.py --ignore advanced/interfacing_with_c/ctypes_numpy/cos_doubles.py --ignore advanced/interfacing_with_c/ctypes_numpy/test_cos_doubles.py --ignore advanced/interfacing_with_c/numpy_shared/test_cos_doubles.py

conf.py

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,6 @@ def __init__(self, **options):
278278
# Options for LaTeX output
279279
# ------------------------
280280

281-
# The paper size ('letter' or 'a4').
282-
#latex_paper_size = 'letter'
283-
284-
# The font size ('10pt', '11pt' or '12pt').
285-
#latex_font_size = '10pt'
286-
287281
# Latex references with page numbers (only Sphinx 1.0)
288282
latex_show_pagerefs = False
289283

@@ -299,19 +293,12 @@ def __init__(self, **options):
299293
# the title page.
300294
latex_logo = 'images/cover.pdf'
301295

302-
# For "manual" documents, if this is true, then toplevel headings are parts,
303-
# not chapters.
304-
latex_use_parts = True
305-
306-
# Documents to append as an appendix to all manuals.
307-
#latex_appendices = []
308-
309-
# If false, no module index is generated.
310-
latex_use_modindex = False
311-
296+
# Latex settings
297+
latex_toplevel_sectioning = 'part'
298+
latex_domain_indices = False
312299

313300
# Additional stuff for the LaTeX preamble.
314-
latex_preamble = r"""
301+
preamble = r"""
315302
\definecolor{VerbatimColor}{rgb}{0.961, .98, 1.}
316303
\definecolor{VerbatimBorderColor}{rgb}{0.6,0.6,0.6}
317304
\usepackage{graphics}
@@ -359,7 +346,7 @@ def __init__(self, **options):
359346
"""
360347

361348
latex_elements = {
362-
'preamble': latex_preamble,
349+
'preamble': preamble,
363350
'fontpkg': '\\usepackage{lmodern}',
364351
'fncychap': r'''%
365352
\usepackage[Sonny]{fncychap}%

0 commit comments

Comments
 (0)