docs: Create with tutorial

Create docs, based on Sphinx with Commonmark, seeding it with https://forums.puri.sm/t/translations-and-virtual-touch-keyboards-tracking-localization/7669/48?u=dcz
This commit is contained in:
Dorota Czaplejewicz
2019-12-15 20:43:35 +00:00
parent 1237537005
commit 0e1bf19737
5 changed files with 270 additions and 1 deletions

18
doc/build.sh Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# Builds the documentation and places in the selected directory,
# or the working directory.
set -e
SCRIPT_PATH="$(realpath "$0")"
DOCS_DIR="$(dirname "$SCRIPT_PATH")"
TARGET_DIR="${1:-./}"
SPHINX=sphinx-build
if ! which sphinx-build ; then
SPHINX=sphinx-build-3
fi
$SPHINX -b html "${DOCS_DIR}" "${TARGET_DIR}"