File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11serve :
2- python -m http.server --directory=_site 8888
2+ python -m http.server
33
44build :
5- ./generate-html
5+ ./generate-html.py
66
77watch-build :
88 ls ** /* .md ** /* .html * .py | entr ./generate-html.py
99
1010update-book : # # assumes book repo is at ../book
1111 cd ../book && make html
1212 ./copy-and-fix-book-html.py
13- rsync -a -v ../book/images/ _site /book/images/
13+ rsync -a -v ../book/images/ . /book/images/
Original file line number Diff line number Diff line change 66import subprocess
77
88BOOK_SOURCE = Path ('../book' )
9- DEST = Path ('_site /book' )
9+ DEST = Path ('. /book' )
1010
1111CHAPTERS = [
1212 c .replace ('.asciidoc' , '.html' )
Original file line number Diff line number Diff line change 1111TEMPLATE_FILE = "templates/blog_post_template.html"
1212FEED_TEMPLATE_FILE = "templates/rss_feed_template.xml"
1313BLOG_POSTS_PATH = Path ("posts" )
14- OUTPUT_DIR = Path ("_site " )
14+ OUTPUT_DIR = Path (". " )
1515
1616
1717
Original file line number Diff line number Diff line change 77 Simple patterns for building complex apps
88 </description >
99 <link >https://cosmicpython.com</link >
10- <lastBuildDate >Mon, 16 Mar 2020 15:40:36 -0000</lastBuildDate >
10+ <lastBuildDate >Mon, 16 Mar 2020 16:19:23 -0000</lastBuildDate >
1111 <pubDate >Sat, 4 Jan 2020 19:15:54 -0500</pubDate >
1212 <atom : link href =" https://cosmicpython.com/rss.xml" rel =" self" type =" application/rss+xml" />
1313
You can’t perform that action at this time.
0 commit comments