Skip to content

Commit 47ea30f

Browse files
authored
Merge pull request #3 from cosmicpython/handrolled-static-site-generator
Move to a handrolled static site generator
2 parents 963355c + 1f0eb65 commit 47ea30f

128 files changed

Lines changed: 42648 additions & 405 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
_site/
2-
.sass-cache/
3-
.jekyll-cache/
4-
.jekyll-metadata
5-
.bundle
1+
.venv
2+
*.pyc

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "book"]
2+
path = book
3+
url = https://github.com/cosmicpython/book.git

Gemfile

Lines changed: 0 additions & 2 deletions
This file was deleted.

Gemfile.lock

Lines changed: 0 additions & 247 deletions
This file was deleted.

Makefile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
serve:
2+
python -m http.server --directory=_site 8888
3+
4+
build:
5+
./generate-html
6+
7+
watch-build:
8+
ls **/*.md **/*.html *.py | entr ./generate-html.py
9+
10+
update-book:
11+
cd book && make html
12+
./copy-and-fix-book-html.py
13+
rsync -a -v book/images/ _site/book/images/
14+
15+

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
# python-leap.github.io
2-
Source for CosmicPython.com
1+
# cosmicpython.github.io
2+
3+
* posts are in [posts](posts) folder. markdown format
4+
* output folder is `_site`
5+
* see [Makefile](Makefile) for common commands
6+
7+

_config.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

0 commit comments

Comments
 (0)