change Index intro text
parent
34f6aaad25
commit
511e99face
|
@ -0,0 +1,34 @@
|
|||
# Tools for creating http://jakevdp.github.io/PythonDataScienceHandbook/
|
||||
|
||||
## Building the Blog
|
||||
|
||||
Clone the repository & make sure submodules are included
|
||||
|
||||
```
|
||||
$ git clone https://github.com/jakevdp/PythonDataScienceHandbook.git
|
||||
$ git checkout origin/website
|
||||
$ git submodule update --init --recursive
|
||||
$ cd website
|
||||
```
|
||||
|
||||
Install the required packages:
|
||||
|
||||
```
|
||||
$ conda create -n pelican-blog python=3.5 jupyter notebook
|
||||
$ source activate pelican-blog
|
||||
$ pip install pelican Markdown ghp-import
|
||||
```
|
||||
|
||||
Build the html and serve locally:
|
||||
|
||||
```
|
||||
$ make html
|
||||
$ make serve
|
||||
$ open http://localhost:8000
|
||||
```
|
||||
|
||||
Deploy to github pages
|
||||
|
||||
```
|
||||
$ make publish-to-github
|
||||
```
|
|
@ -14,6 +14,13 @@ Template: {template}
|
|||
{{% notebook notebooks/{notebook_file} cells[{cells}] %}}
|
||||
"""
|
||||
|
||||
INTRO_TEXT = """This website contains the full text 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) in the form of Jupyter notebooks.
|
||||
|
||||
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)!
|
||||
"""
|
||||
|
||||
|
||||
def abspath_from_here(*args):
|
||||
here = os.path.dirname(__file__)
|
||||
|
@ -53,6 +60,7 @@ def copy_notebooks():
|
|||
cells = '1:'
|
||||
template = 'page'
|
||||
title = 'Python Data Science Handbook'
|
||||
content.cells[2].source = INTRO_TEXT
|
||||
else:
|
||||
cells = '2:'
|
||||
template = 'booksection'
|
||||
|
|
Loading…
Reference in New Issue