You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,19 +3,19 @@ Issues and pull requests are more than welcome!
3
3
4
4
## Building the Book
5
5
6
-
The book is written in Markdown (in `book/`). A little Python script (`script/format.py`) converts that along with a SASS file (`asset/style.scss`) and HTML template (`asset/template.html`) to the final HTML (in `html/`). To run the format script locally, you'll need to have Python 2.7-ish, and install Python Markdown, Pygments, and SmartyPants:
6
+
The book is written in Markdown (in `book/`). A little Python script (`script/format.py`) converts that along with a SASS file (`asset/style.scss`) and HTML template (`asset/template.html`) to the final HTML (in `html/`). To run the format script locally, you'll need to have Python 3.5-ish, and install Python Markdown, Pygments, and SmartyPants:
7
7
8
-
$ pip install markdown
9
-
$ pip install pygments
10
-
$ pip install smartypants
8
+
$ pip3 install markdown
9
+
$ pip3 install pygments
10
+
$ pip3 install smartypants
11
11
12
12
You may need `sudo` for those. Once that's done, you can run:
13
13
14
-
$ python script/format.py
14
+
$ python3 script/format.py
15
15
16
16
Make sure to run this from the root directory of the repo. That will regenerate all of the chapter and section intro HTML files. If you're editing stuff, the script can also be run in watch mode:
17
17
18
-
$ python script/format.py --watch
18
+
$ python3 script/format.py --watch
19
19
20
20
That will monitor the file system for changes to the markdown files, SASS file, or HTML template, and reprocess them as needed.
0 commit comments