Skip to content

Move to a handrolled static site generator #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 28 commits into from
Mar 16, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
3a707ec
try to get a handrolled static site generator working
hjwp Mar 10, 2020
546d2c9
first cut of index.html with milligram
hjwp Mar 15, 2020
94298f1
up and running with milligram and pygments. done command handler blog
hjwp Mar 15, 2020
8e558d3
start on template inheritance structure
hjwp Mar 15, 2020
ce01de6
first stab at rendering index.html from index.md
hjwp Mar 15, 2020
6e7cae9
move stuff out of index.md into index.html
hjwp Mar 15, 2020
0656c02
Merge remote-tracking branch 'origin/master' into handrolled-static-s…
hjwp Mar 15, 2020
eae322f
continue moving stuff out of index.md
hjwp Mar 15, 2020
f0c6a59
more progress, looking ok tbh
hjwp Mar 15, 2020
6f2df32
move output dir to _site directory
hjwp Mar 16, 2020
4d1d1b1
rss too
hjwp Mar 16, 2020
3d4cf8b
add the html to version control
hjwp Mar 16, 2020
abf5f53
path to blog posts is /blog, match existing site
hjwp Mar 16, 2020
6a034ca
remove unused images folder
hjwp Mar 16, 2020
4dba4b7
remove old assets folder
hjwp Mar 16, 2020
4bce605
remove old jekyll config
hjwp Mar 16, 2020
c99755b
favicon. maybe
hjwp Mar 16, 2020
89a0ee5
makefile
hjwp Mar 16, 2020
97bdf18
update readme
hjwp Mar 16, 2020
cb28f68
add book as submodule
hjwp Mar 16, 2020
b284d61
add a script to copy the book sources across
hjwp Mar 16, 2020
b59bb68
book html
hjwp Mar 16, 2020
e879b41
book prepper mostly working, toc fixed
hjwp Mar 16, 2020
17a4cbd
rename book copier
hjwp Mar 16, 2020
1ecfef4
add buy-the-book banner
hjwp Mar 16, 2020
1aaee6a
mess about trying to style the front banner
hjwp Mar 16, 2020
6ff88f6
fix list styles
hjwp Mar 16, 2020
1f0eb65
add google analytics and disqus
hjwp Mar 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
_site/
.sass-cache/
.jekyll-cache/
.jekyll-metadata
.bundle
.venv
*.pyc
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "book"]
path = book
url = https://github.com/cosmicpython/book.git
2 changes: 0 additions & 2 deletions Gemfile

This file was deleted.

247 changes: 0 additions & 247 deletions Gemfile.lock

This file was deleted.

15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
serve:
python -m http.server --directory=_site 8888

build:
./generate-html

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

update-book:
cd book && make html
./copy-and-fix-book-html.py
rsync -a -v book/images/ _site/book/images/


9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
# python-leap.github.io
Source for CosmicPython.com
# cosmicpython.github.io

* posts are in [posts](posts) folder. markdown format
* output folder is `_site`
* see [Makefile](Makefile) for common commands


22 changes: 0 additions & 22 deletions _config.yml

This file was deleted.

Loading