pydy / pydy.github.io.src

The source files for the PyDy.org website.
1 stars 5 forks source link

Create a template for the example gallery #8

Open moorepants opened 9 years ago

moorepants commented 9 years ago

This should extend page.html and provide a grid structure for the example thumbnails. We need to figure out how to make Sphinx use this new template only for the example gallery page.

moorepants commented 9 years ago

Here is a hack method of having specific templates for specific pages: http://stackoverflow.com/questions/13209597/override-html-page-template-for-a-specific-sphinx-document

moorepants commented 9 years ago

@jcrist The above is the best thing I can find. I'm surprised I can't find anything else about this on the web. It seems like it would be a common feature request for Sphinx since all generic static site generators support ways to deploy different templates to different pages.

jcrist commented 9 years ago

Yeah, it doesn't seem easily doable. That solution is kinda hackish, but not terrible. If we're only doing it for one page it shouldn't be too bad.

moorepants commented 9 years ago

Yeah, I think this is the best bet. I looked pretty hard for other options. I'll get it setup this weekend.

Can you check into loading the correct css and stuff into sphinx to support notebook formats?

We will also need a template for "notebook" pages.

moorepants commented 9 years ago

May be helpful: http://sphinx-ipynb.readthedocs.org/en/latest/howto.html