Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 511e99f

Browse files
committed
change Index intro text
1 parent 34f6aaa commit 511e99f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

‎website/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Tools for creating http://jakevdp.github.io/PythonDataScienceHandbook/
2+
3+
## Building the Blog
4+
5+
Clone the repository & make sure submodules are included
6+
7+
```
8+
$ git clone https://github.com/jakevdp/PythonDataScienceHandbook.git
9+
$ git checkout origin/website
10+
$ git submodule update --init --recursive
11+
$ cd website
12+
```
13+
14+
Install the required packages:
15+
16+
```
17+
$ conda create -n pelican-blog python=3.5 jupyter notebook
18+
$ source activate pelican-blog
19+
$ pip install pelican Markdown ghp-import
20+
```
21+
22+
Build the html and serve locally:
23+
24+
```
25+
$ make html
26+
$ make serve
27+
$ open http://localhost:8000
28+
```
29+
30+
Deploy to github pages
31+
32+
```
33+
$ make publish-to-github
34+
```

‎website/copy_notebooks.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@
1414
{{% notebook notebooks/{notebook_file} cells[{cells}] %}}
1515
"""
1616

17+
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.
18+
19+
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).
20+
21+
If you find this content useful, please consider supporting the work by [buying the book](http://shop.oreilly.com/product/0636920034919.do)!
22+
"""
23+
1724

1825
def abspath_from_here(*args):
1926
here = os.path.dirname(__file__)
@@ -53,6 +60,7 @@ def copy_notebooks():
5360
cells = '1:'
5461
template = 'page'
5562
title = 'Python Data Science Handbook'
63+
content.cells[2].source = INTRO_TEXT
5664
else:
5765
cells = '2:'
5866
template = 'booksection'

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /