mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
To preview the docs, run:
```
scripts/build-python-docs.sh
firefox dist/html/index.html
```
I have removed the Makefile because modern Sphinx Makefile is just a
wrapper for `sphinx-build -M`:
3596590317/sphinx/templates/quickstart/Makefile.new_t
and sphinx-quickstart even has an option `--no-makefile`.
`make.bat` makes even less sense.
In `scripts/build-python-docs.sh` I use `sphinx-build` directly
without `make` wrapper.
14 lines
387 B
Bash
Executable File
14 lines
387 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
export DCC_RS_TARGET=debug
|
|
export DCC_RS_DEV="$PWD"
|
|
cargo build -p deltachat_ffi --features jsonrpc
|
|
|
|
python3 -m venv venv
|
|
venv/bin/pip install ./python
|
|
venv/bin/pip install ./deltachat-rpc-client
|
|
venv/bin/pip install sphinx breathe sphinx_rtd_theme
|
|
venv/bin/pip install ./deltachat-rpc-client
|
|
venv/bin/sphinx-build -b html -a python/doc/ dist/html
|