Index.html template. Only insert snippet if found #5789

Merged
merged 1 commit into from Jan 3, 2016

Conversation

Projects
None yet
3 participants
Owner

jenshnielsen commented Jan 3, 2016

If you build a local copy of the documentation for preview such as
http://jenshnielsen.github.io/matplotlib/ the main index.html page rendering is broken because
versions.html is not found. This results in a github 404 page being inserted into the page which breaks the formatting of the webpage.

This PR changes the javascript function to insert an error message rather than the 404 page if the Snippet is not found.

@jenshnielsen jenshnielsen Index.html Only insert snippet if found
4c9fc07

@tacaswell tacaswell added a commit that referenced this pull request Jan 3, 2016

@tacaswell tacaswell Merge pull request #5789 from jenshnielsen/indexfallback
Index.html template. Only insert snippet if found
f6fca8a

@tacaswell tacaswell merged commit f6fca8a into matplotlib:master Jan 3, 2016

3 checks passed

continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
coverage/coveralls Coverage remained the same at 68.607%
Details

tacaswell removed the needs_review label Jan 3, 2016

jenshnielsen deleted the jenshnielsen:indexfallback branch Jan 3, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment