BUNDLE_SOURCES ?= bundle-rust-sources
+SPHINXBUILD = sphinx-build
+
ifndef INKSCAPE_EXTENSIONS
INKSCAPE ?= inkscape
INKSCAPE_EXTENSIONS := $(shell $(INKSCAPE) -x)
check: stamp/cargo.check at wdt
@echo 'All tests passed.'
-doc: cargo-doc
+doc: cargo-doc sphinx-doc
debug release:: %: stamp/cargo.% assets libraries extra-%
$(CARGO) -T$(DEPLOY_ARCH) build $(call cr,$(DEPLOY_RELEASE)) -p otter -p otter-daemon
$(stamp)
+#---------- sphnix ----------
+
+sphinx-doc: docs/html/index.html
+
+docs/build/html/index.html: docs/conf.py $(wildcard docs/*.md docs/*.rst)
+ $(SPHINXBUILD) -M html docs docs/build $(SPHINXOPTS)
+
#---------- wasm ----------
$(addprefix $(WASM_PACKED)/,$(WASM_ASSETS) $(WASM_OUTPUTS)): stamp/wasm-bindgen
+++ /dev/null
-# Minimal makefile for Sphinx documentation
-#
-
-# You can set these variables from the command line.
-SPHINXOPTS =
-SPHINXBUILD = sphinx-build
-SOURCEDIR = .
-BUILDDIR = build
-
-# Put it first so that "make" without argument is like "make help".
-help:
- @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-
-.PHONY: help Makefile
-
-# Catch-all target: route all unknown targets to Sphinx using the new
-# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
-%: Makefile
- $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
-
sudo apt install build-essential cpio git curl \
pkg-config libssl-dev \
node-typescript inkscape bubblewrap \
- netpbm imagemagick
+ netpbm imagemagick \
+ python3-sphinx python3-recommonmark
```
2. Install Rust. This is most easily done with [rustup](https://rustup.rs)):