Skip to content

Commit 1593e77

Browse files
committed
update scripts to do stuff in root folder
1 parent 8beed02 commit 1593e77

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
serve:
2-
python -m http.server --directory=_site 8888
2+
python -m http.server
33

44
build:
5-
./generate-html
5+
./generate-html.py
66

77
watch-build:
88
ls **/*.md **/*.html *.py | entr ./generate-html.py
99

1010
update-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/

copy-and-fix-book-html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import subprocess
77

88
BOOK_SOURCE = Path('../book')
9-
DEST = Path('_site/book')
9+
DEST = Path('./book')
1010

1111
CHAPTERS = [
1212
c.replace('.asciidoc', '.html')

generate-html.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
TEMPLATE_FILE = "templates/blog_post_template.html"
1212
FEED_TEMPLATE_FILE = "templates/rss_feed_template.xml"
1313
BLOG_POSTS_PATH = Path("posts")
14-
OUTPUT_DIR = Path("_site")
14+
OUTPUT_DIR = Path(".")
1515

1616

1717

rss.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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

0 commit comments

Comments
 (0)