Skip to content

Latest commit

 

History

History

docs

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Docs

Uses Sphinx to extract .RST from parent .PY and converts into docs/build/ .HTML according to docs/source/ templates

Run

docs $ sudo ./docker.sh

This is a shim to build.sh, which CI also uses

It is volume-mounted to emit docs/build/html/graphistry.html

CI will reject documentation warnings and errors

Develop

Sphinx has to install project dev deps, so to work more quickly:

  1. Start a docker session:

Run from docs/:

docker run \
    --entrypoint=/bin/bash \
    --rm -it \
    -e USER_ID=$UID \
    -v $(pwd)/..:/doc \
    ddidier/sphinx-doc:3.2.1-1 
  1. Install deps in a sandbox:
cp -r /doc /pygraphistry && ( cd /pygraphistry && python -m pip install -e .[docs] )

This prevents your host env from getting littered

  1. Edit and build!
cd /doc/docs
make clean html SPHINXOPTS="-W --keep-going -n"

This emits $PWD/docs/build/html/index.html on your host, which you can open in a browser

If there are warnings or errors, it will run to completetion, emit them all, and then exit with a failure. CI will reject these bugs, so you need to make sure it works.