xvw / capsule

Micro blogging for fun and profit

Home Page:https://xvw.lol

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

capsule

A rather clumsy attempt to have a static blog generator (based on YOCaml) that puts less pressure on me to write long articles that nobody reads.

Local installation

The most standard way to start a development environment is to build a "local switch" by sequentially running these different commands (which assume that OPAM is installed on your machine).

opam update
opam switch create . ocaml.5.1.1 --deps-only -y --with-dev-setup --with-test
opam install yourbones_js yourbones_js-beacon
eval $(opam env)

And since the JavaScript part of the application relay on ... npm, you have to install npm and running make will build the inner library... hell.js.

If everything went well, which I don't doubt for a second, the project should be compilable and executable, you can now contribute to this blog, for example, to correct spelling mistakes... For ease of use, I use make as a very sophisticated orchestrator. You can run the make command to build the binary that statically serves the site.

Up and running

  • dune exec bin/capsule.exe -- build [--target=TARGET] build the website into TARGET
  • dune exec bin/capsule.exe -- watch [--target=TARGET] [--port=PORT] build the website into TARGET and serve TARGET listening PORT.

About

Micro blogging for fun and profit

https://xvw.lol

License:GNU General Public License v3.0


Languages

Language:OCaml 59.9%Language:CSS 27.7%Language:HTML 6.4%Language:D2 5.0%Language:JavaScript 0.5%Language:Makefile 0.5%