GithubHelp home page GithubHelp logo

xvw / capsule Goto Github PK

View Code? Open in Web Editor NEW
8.0 2.0 3.0 13.37 MB

Micro blogging for fun and profit

Home Page: https://xvw.lol

License: GNU General Public License v3.0

Makefile 0.48% OCaml 59.92% CSS 27.68% HTML 6.35% JavaScript 0.52% D2 5.03%
arrow blog static-site

capsule's Introduction

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.

capsule's People

Contributors

ldenos avatar marckruzik avatar tim-ats-d avatar xvw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.