mirror of
https://github.com/ArcaneChat/core.git
synced 2026-07-03 14:05:33 +02:00
30f8522626
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`: https://github.com/sphinx-doc/sphinx/blob/35965903177c6ed9a6afb62ccd33243a746a3fc0/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
|