chiark / gitweb /
docs: wip work on build
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 8 Apr 2021 18:32:07 +0000 (19:32 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 8 Apr 2021 19:34:21 +0000 (20:34 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
docs/build.md [new file with mode: 0644]
docs/dev.md
docs/index.rst

diff --git a/docs/build.md b/docs/build.md
new file mode 100644 (file)
index 0000000..e30a250
--- /dev/null
@@ -0,0 +1,84 @@
+Building
+========
+
+Otter is mostly written in Rust.  The web UI frontend is written in
+Typescript.  The shape libraries are SVGs and need SVG manipulation
+libraries.  The main documentation is done with Sphnix.
+
+Setup
+-----
+
+Install the packaged build dependencies:
+
+
+```
+     sudo apt install build-essential cpio git curl     \
+                      pkg-config libssl-dev             \
+                      node-typescript inkscape bubblewrap \
+                      netpbm imagemagick \
+                      python3-sphinx python3-recommonmark
+```
+
+
+Install Rust.  This is most easily done with [rustup](https://rustup.rs)):
+
+```
+     curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
+```
+
+   and then follow the instructions about your `PATH`.  If this rune
+   alarms you, see below about Rust privsep.
+
+3. Switch your Rust install to use Rust Nightly and add the WASM
+   target:
+
+```
+     rustup default nightly
+     rustup target add wasm32-unknown-unknown
+```
+
+   Unfortunately, it is possible that the Rust nightly you find when
+   you run this is missing some pieces.  The following is known to
+   work (with otter from the time of writing):
+```
+     rustup default nightly-2021-01-26
+```
+
+4. Install the `usvg` SVG launderer, which we need for shape libraries
+
+```
+     cargo install usvg
+```
+
+   This will put it in `~/.cargo/bin`, which you presumably have on
+   your `PATH` (or the above `rustup` and `cargo` runes wouldn't work).
+
+
+** If you just want to edit and preview the shape libraries
+   (ie the piece shapes) you can stop here **
+
+
+5. Install some more build tools:
+
+```
+     cargo install bundle-sources
+```
+
+
+Build
+-----
+
+```
+     git clone https://salsa.debian.org/iwj/otter
+     cd otter
+     make -j8 all bundled-sources
+```
+
+Or if you just want to edit the piece libraries:
+
+```
+    make -j8 shapelib
+```
+And then open `./templates/shapelib.html` in your browser
+
+
index 6f9974467464a2ff5bb23baec4caea9e8285e4bb..3a29ce1daa4b1f4dfd2d4a87d6676128f2beaf18 100644 (file)
@@ -14,80 +14,6 @@ code.
 These instructions have been tested on Debian buster.
 
 
-Setup
------
-
-1. 
-```
-     sudo apt install build-essential cpio git curl     \
-                      pkg-config libssl-dev             \
-                      node-typescript inkscape bubblewrap \
-                      netpbm imagemagick \
-                      python3-sphinx python3-recommonmark
-```
-
-2. Install Rust.  This is most easily done with [rustup](https://rustup.rs)):
-
-```
-     curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
-```
-
-   and then follow the instructions about your `PATH`.  If this rune
-   alarms you, see below about Rust privsep.
-
-3. Switch your Rust install to use Rust Nightly and add the WASM
-   target:
-
-```
-     rustup default nightly
-     rustup target add wasm32-unknown-unknown
-```
-
-   Unfortunately, it is possible that the Rust nightly you find when
-   you run this is missing some pieces.  The following is known to
-   work (with otter from the time of writing):
-```
-     rustup default nightly-2021-01-26
-```
-
-4. Install the `usvg` SVG launderer, which we need for shape libraries
-
-```
-     cargo install usvg
-```
-
-   This will put it in `~/.cargo/bin`, which you presumably have on
-   your `PATH` (or the above `rustup` and `cargo` runes wouldn't work).
-
-
-** If you just want to edit and preview the shape libraries
-   (ie the piece shapes) you can stop here **
-
-
-5. Install some more build tools:
-
-```
-     cargo install bundle-sources
-```
-
-
-Build
------
-
-```
-     git clone https://salsa.debian.org/iwj/otter
-     cd otter
-     make -j8 all bundled-sources
-```
-
-Or if you just want to edit the piece libraries:
-
-```
-    make -j8 shapelib
-```
-And then open `./templates/shapelib.html` in your browser
-
-
 Ad-hoc tests
 ------------
 
index bc31557cc50c2a4f2e07ea8b2a04ffd965a9878d..04cda1e812242bf277543ce0106eec6b411677a8 100644 (file)
@@ -13,6 +13,7 @@ Otter - Online Table Top Environment Renderer
    README
    user
    advanced
+   build
    dev