mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 15:02: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.
26 lines
624 B
YAML
26 lines
624 B
YAML
name: Build & Deploy Documentation on py.delta.chat
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0 # Fetch history to calculate VCS version number.
|
|
- name: Build Python documentation
|
|
run: scripts/build-python-docs.sh
|
|
- name: Upload to py.delta.chat
|
|
uses: up9cloud/action-rsync@v1.3
|
|
env:
|
|
USER: delta
|
|
KEY: ${{ secrets.CODESPEAK_KEY }}
|
|
HOST: "lists.codespeak.net"
|
|
SOURCE: "dist/html/"
|
|
TARGET: "/home/delta/build/master"
|