Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2fc9a74

Browse files
committed
updating front page so there's only one gallery
1 parent 66bf20b commit 2fc9a74

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

doc/_templates/index.html

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,8 @@ <h1>Introduction</h1>
7575
<p>Matplotlib tries to make easy things easy and hard things possible.
7676
You can generate plots, histograms, power spectra, bar charts,
7777
errorcharts, scatterplots, etc., with just a few lines of code.
78-
For a sampling, see the <a href="{{ pathto('users/screenshots')
79-
}}">screenshots</a>, <a href="{{ pathto('gallery/index') }}">thumbnail</a> gallery, and
80-
<a href="{{ pathto('examples/index') }}">examples</a> directory</p>
78+
For a example, see the <a href="{{ pathto('users/screenshots')
79+
}}">screenshots</a> and <a href="{{ pathto('gallery/index') }}">thumbnail</a> gallery.</p>
8180

8281
<p>For simple plotting the <tt>pyplot</tt> module provides a
8382
MATLAB-like interface, particularly when combined
@@ -100,7 +99,7 @@ <h1>Documentation</h1>
10099
</script>
101100

102101
<p>Trying to learn how to do a particular kind of plot? Check out
103-
the <a href="{{ pathto('gallery/index') }}">gallery</a>, <a href="{{ pathto('examples/index') }}">examples</a>,
102+
the <a href="{{ pathto('gallery/index') }}">examples gallery</a>
104103
or the <a href="{{ pathto('api/pyplot_summary') }}">list of plotting
105104
commands</a>.</p>
106105

doc/_templates/layout.html

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ <h3>{{ _('Navigation') }}</h3>
3838
{%- endfor %}
3939

4040
<li><a href="{{ pathto('index') }}">home</a>|&nbsp;</li>
41-
<li><a href="{{ pathto('examples/index') }}">examples</a>|&nbsp;</li>
42-
<li><a href="{{ pathto('gallery/index') }}">gallery</a>|&nbsp;</li>
41+
<li><a href="{{ pathto('gallery/index') }}">examples</a>|&nbsp;</li>
4342
<li><a href="{{ pathto('api/pyplot_summary') }}">pyplot</a>|&nbsp;</li>
4443
<li><a href="{{ pathto('contents') }}">docs</a> &raquo;</li>
4544

doc/conf.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,12 @@
108108
sphinx_gallery_conf = {
109109
'examples_dirs': '../examples',
110110
'filename_pattern': '^((?!sgskip).)*$',
111-
'gallery_dirs': 'gallery'}
111+
'gallery_dirs': 'gallery',
112+
'doc_module': ('matplotlib',),
113+
'reference_url': {'matplotlib': None,
114+
'numpy': 'http://docs.scipy.org/doc/numpy/reference',
115+
'scipy': 'http://docs.scipy.org/doc/scipy/reference'},
116+
}
112117

113118
plot_gallery = True
114119

0 commit comments

Comments
 (0)