I was disconnected from the internet a few hours ago, and I needed to read the Syncthing documentation because of a synchronization issue that showed up at the time, only to find out that you don’t get manpages when you install from a release binary.
I use the Debian+Ubuntu packages from https://apt.syncthing.net/, which include up to date manpages alongside an up to date syncthing binary and systemd service files.
I just made some changes to refresh.sh and moved it to my PATH (as syncthing-refresh-docs); this script will fetch and install the updated files directly into ~/.local/share/man.
#!/bin/bash
base=https://docs.syncthing.net/man/
pages1=(
syncthing.1
stdiscosrv.1
strelaysrv.1
)
pages5=(
syncthing-config.5
syncthing-stignore.5
)
pages7=(
syncthing-device-ids.7
syncthing-event-api.7
syncthing-faq.7
syncthing-networking.7
syncthing-rest-api.7
syncthing-security.7
syncthing-versioning.7
syncthing-bep.7
syncthing-localdisco.7
syncthing-globaldisco.7
syncthing-relay.7
)
cd ~/.local/share/man/man1
for page in "${pages1[@]}"; do
curl -sLO "${base}${page}"
done
cd ~/.local/share/man/man5
for page in "${pages5[@]}"; do
curl -sLO "${base}${page}"
done
cd ~/.local/share/man/man7
for page in "${pages7[@]}"; do
curl -sLO "${base}${page}"
done
# rebuild apropos database
makewhatis ~/.local/share/man
Make sure that path is added to the man path (see man.conf(5)). Append this line to /etc/man.conf: