aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/DEVELOPMENT.md
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2023-07-13 20:59:51 +0200
committerEgor Tensin <Egor.Tensin@gmail.com>2023-07-13 20:59:51 +0200
commit0617270c831f1bb0f502ac53c2a0908da9cbf001 (patch)
treef30ebaa4a53e630d2adccb11f6cbc541d3991bea /DEVELOPMENT.md
parentMakefile: move the prelude to prelude.mk (diff)
downloadblog-0617270c831f1bb0f502ac53c2a0908da9cbf001.tar.gz
blog-0617270c831f1bb0f502ac53c2a0908da9cbf001.zip
add DEVELOPMENT.md
Diffstat (limited to 'DEVELOPMENT.md')
-rw-r--r--DEVELOPMENT.md38
1 files changed, 38 insertions, 0 deletions
diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md
new file mode 100644
index 0000000..969c839
--- /dev/null
+++ b/DEVELOPMENT.md
@@ -0,0 +1,38 @@
+Workspace setup
+---------------
+
+* To reduce pain, set up [rbenv] to manage your Ruby versions.
+Install one that's known to work: `make ruby`
+ * Otherwise, make sure you have Ruby and [Bundler] set up.
+* Install dependencies: `make deps`
+* Make sure builds are working: `make build`
+
+[rbenv]: https://github.com/rbenv/rbenv
+[Bundler]: https://bundler.io/
+
+Development
+-----------
+
+* Build the example website and serve it at http://localhost:4000/blog/:
+`make serve`
+ * It will pick up changes and reload pages automatically.
+
+Upgrading dependencies
+----------------------
+
+ bundle update
+
+Building static pages
+---------------------
+
+If you try to copy the _site directory and open index.html without running the
+web server, it won't work: all links will be messed up.
+Jekyll doesn't provide native support for generating a static website which can
+be browsed without running a web server.
+
+One workaround is to `wget` the website:
+
+ make serve LIVE_RELOAD=0 # Live reloading breaks wget
+ make wget
+
+The truly static version will be downloaded to the .wget/ directory.