Fix top index

website
Jake VanderPlas 2017-08-14 14:47:00 -07:00
parent 23955276c2
commit be2c01346b
2 changed files with 3 additions and 8 deletions

View File

@ -3,10 +3,4 @@ URL:
save_as: index.html
Template: page
*Jake VanderPlas*
<p><img src="/PythonDataScienceHandbook/figures/PDSH-cover.png" alt="Book Cover"></p>
This is the Jupyter notebook version of the [Python Data Science Handbook](http://shop.oreilly.com/product/0636920034919.do) by Jake VanderPlas; the content is available [on GitHub](https://github.com/jakevdp/PythonDataScienceHandbook).*\n"The text is released under the [CC-BY-NC-ND license](https://creativecommons.org/licenses/by-nc-nd/3.0/us/legalcode), and code is released under the [MIT license](https://opensource.org/licenses/MIT). If you find this content useful, please consider supporting the work by [buying the book](http://shop.oreilly.com/product/0636920034919.do)!
### [Book Index Here](pages/index.html)
{% notebook notebooks/Index.ipynb cells[1:] %}

View File

@ -27,7 +27,8 @@ PAGE_DEST_DIR = abspath_from_here('content', 'pages')
def copy_notebooks():
nblist = sorted(nb for nb in os.listdir(NB_SOURCE_DIR)
if nb.endswith('.ipynb'))
name_map = {nb: nb.rsplit('.', 1)[0].lower() + '.html'
name_map = {nb: os.path.join('/PythonDataScienceHandbook', 'pages',
nb.rsplit('.', 1)[0].lower() + '.html')
for nb in nblist}
figsource = abspath_from_here('..', 'notebooks', 'figures')