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

Skip to content

Update front page so there's only one gallery #8511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 19, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/_templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,8 @@ <h1>Introduction</h1>
<p>Matplotlib tries to make easy things easy and hard things possible.
You can generate plots, histograms, power spectra, bar charts,
errorcharts, scatterplots, etc., with just a few lines of code.
For a sampling, see the <a href="{{ pathto('users/screenshots')
}}">screenshots</a>, <a href="{{ pathto('gallery/index') }}">thumbnail</a> gallery, and
<a href="{{ pathto('examples/index') }}">examples</a> directory</p>
For a example, see the <a href="{{ pathto('users/screenshots')
}}">screenshots</a> and <a href="{{ pathto('gallery/index') }}">thumbnail</a> gallery.</p>

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

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

Expand Down
3 changes: 1 addition & 2 deletions doc/_templates/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ <h3>{{ _('Navigation') }}</h3>
{%- endfor %}

<li><a href="{{ pathto('index') }}">home</a>|&nbsp;</li>
<li><a href="{{ pathto('examples/index') }}">examples</a>|&nbsp;</li>
<li><a href="{{ pathto('gallery/index') }}">gallery</a>|&nbsp;</li>
<li><a href="{{ pathto('gallery/index') }}">examples</a>|&nbsp;</li>
<li><a href="{{ pathto('api/pyplot_summary') }}">pyplot</a>|&nbsp;</li>
<li><a href="{{ pathto('contents') }}">docs</a> &raquo;</li>

Expand Down
7 changes: 6 additions & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,12 @@
sphinx_gallery_conf = {
'examples_dirs': '../examples',
'filename_pattern': '^((?!sgskip).)*$',
'gallery_dirs': 'gallery'}
'gallery_dirs': 'gallery',
'doc_module': ('matplotlib',),
'reference_url': {'matplotlib': None,
'numpy': 'http://docs.scipy.org/doc/numpy/reference',
'scipy': 'http://docs.scipy.org/doc/scipy/reference'},
}

plot_gallery = True

Expand Down