summaryrefslogtreecommitdiffstats
path: root/site/cleopatra/commands.org
blob: fbf043063d596b573258bf8c05ee951e397a7e09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#+TITLE: Adhoc *~cleopatra~* commands

#+SERIES: ../cleopatra.html
#+SERIES_PREV: ./soupault.html

In this generation process, we provide adhoc commands to ease the
authoring experience.  A given command ~<cmd>~ is implemented as a
~makefile~ rule, and can be called with ~cleopatra <cmd>~.

#+BEGIN_EXPORT html
<nav id="generate-toc"></nav>
<div id="history">site/cleopatra/commands.org</div>
#+END_EXPORT

* ~serve~

  This command spawns a simple HTTP server which allows us to navigate
  the website more easily.

  #+begin_src makefile :tangle commands.mk
serve :
	@cleopatra echo Spwaning "HTTP server"
	@cd out && python -m http.server
  #+end_src

* ~update~

  This commands updates the various dependencies locally installed to
  build this website, such as ~soupault~ for instance.

  #+begin_src makefile :tangle commands.mk
update :
	@cleopatra echo "Updating" "OCaml dependencies"
	@opam update
	@opam upgrade -y
  #+end_src