|
30 | 30 | # The suffix of source filenames.
|
31 | 31 | source_suffix = '.rst'
|
32 | 32 |
|
33 |
| -# The master toctree document. |
34 |
| -#master_doc = 'index' |
35 |
| - |
36 | 33 | # General substitutions.
|
37 | 34 | project = 'NumPy'
|
38 | 35 | copyright = '2008-2009, The Scipy community'
|
|
83 | 80 | # HTML output
|
84 | 81 | # -----------------------------------------------------------------------------
|
85 | 82 |
|
86 |
| -# The style sheet to use for HTML and HTML Help pages. A file of that name |
87 |
| -# must exist either in Sphinx' static/ path, or in one of the custom paths |
88 |
| -# given in html_static_path. |
89 |
| -html_style = 'scipy.css' |
90 |
| - |
91 |
| -# The name for this set of Sphinx documents. If None, it defaults to |
92 |
| -# "<project> v<release> documentation". |
93 |
| -html_title = "%s v%s Manual (DRAFT)" % (project, version) |
| 83 | +themedir = os.path.join(os.pardir, 'scipy-sphinx-theme', '_theme') |
| 84 | +if not os.path.isdir(themedir): |
| 85 | + raise RuntimeError("Get the scipy-sphinx-theme first, " |
| 86 | + "via git submodule init && git submodule update") |
| 87 | + |
| 88 | +html_theme = 'scipy' |
| 89 | +html_theme_path = [themedir] |
| 90 | + |
| 91 | +if 'scipyorg' in tags: |
| 92 | + # Build for the scipy.org website |
| 93 | + html_theme_options = { |
| 94 | + "edit_link": True, |
| 95 | + "sidebar": "right", |
| 96 | + "scipy_org_logo": True, |
| 97 | + "rootlinks": [("http://scipy.org/", "Scipy.org"), |
| 98 | + ("http://docs.scipy.org/", "Docs")] |
| 99 | + } |
| 100 | +else: |
| 101 | + # Default build |
| 102 | + html_theme_options = { |
| 103 | + "edit_link": False, |
| 104 | + "sidebar": "left", |
| 105 | + "scipy_org_logo": False, |
| 106 | + "rootlinks": [] |
| 107 | + } |
| 108 | + html_sidebars = {'index': 'indexsidebar.html'} |
94 | 109 |
|
95 |
| -# The name of an image file (within the static path) to place at the top of |
96 |
| -# the sidebar. |
97 |
| -html_logo = 'scipyshiny_small.png' |
| 110 | +html_additional_pages = { |
| 111 | + 'index': 'indexcontent.html', |
| 112 | +} |
98 | 113 |
|
99 |
| -# Add any paths that contain custom static files (such as style sheets) here, |
100 |
| -# relative to this directory. They are copied after the builtin static files, |
101 |
| -# so a file named "default.css" will overwrite the builtin "default.css". |
| 114 | +html_title = "%s v%s Manual" % (project, version) |
102 | 115 | html_static_path = ['_static']
|
103 |
| - |
104 |
| -# If not '', a 'Last updated on:' timestamp is inserted at every page bottom, |
105 |
| -# using the given strftime format. |
106 | 116 | html_last_updated_fmt = '%b %d, %Y'
|
107 | 117 |
|
108 |
| -# If true, SmartyPants will be used to convert quotes and dashes to |
109 |
| -# typographically correct entities. |
110 |
| -#html_use_smartypants = True |
111 |
| - |
112 |
| -# Custom sidebar templates, maps document names to template names. |
113 |
| -html_sidebars = { |
114 |
| - 'index': 'indexsidebar.html' |
115 |
| -} |
116 |
| - |
117 |
| -# Additional templates that should be rendered to pages, maps page names to |
118 |
| -# template names. |
119 |
| -html_additional_pages = { |
120 |
| - 'index': 'indexcontent.html', |
121 |
| -} |
122 |
| - |
123 |
| -# If false, no module index is generated. |
| 118 | +html_use_modindex = True |
| 119 | +html_copy_source = False |
124 | 120 | html_domain_indices = False
|
| 121 | +html_file_suffix = '.html' |
125 | 122 |
|
126 |
| -# If true, the reST sources are included in the HTML build as _sources/<name>. |
127 |
| -#html_copy_source = True |
128 |
| - |
129 |
| -# If true, an OpenSearch description file will be output, and all pages will |
130 |
| -# contain a <link> tag referring to it. The value of this option must be the |
131 |
| -# base URL from which the finished HTML is served. |
132 |
| -#html_use_opensearch = '' |
133 |
| - |
134 |
| -# If nonempty, this is the file name suffix for HTML files (e.g. ".html"). |
135 |
| -#html_file_suffix = '.html' |
136 |
| - |
137 |
| -# Output file base name for HTML help builder. |
138 | 123 | htmlhelp_basename = 'numpy'
|
139 | 124 |
|
140 |
| -# Pngmath should try to align formulas properly |
141 | 125 | pngmath_use_preview = True
|
| 126 | +pngmath_dvipng_args = ['-gamma', '1.5', '-D', '96', '-bg', 'Transparent'] |
142 | 127 |
|
143 | 128 |
|
144 | 129 | # -----------------------------------------------------------------------------
|
|
0 commit comments