API Reference

This page is for Slight ‘latest’. See changelog for older versions.

Command-line API

slight.__main__.main(argv=sys.argv)

The slight programs can take multiple options.

-s <folder>, --slideshows <folder>

Add a folder where slideshows are stored. Can be set mutliple times.

-t <folder>, --themes <folder>

Add a folder where themes are stored. Can be set mutliple times.

-v, --version

Show the version number. Other options and arguments are ignored.

-h, --help

Show the command-line usage. Other options and arguments are ignored.

Environment Variables

When you don’t launch Slight using the slight executable, for example behind an HTTP Server, you can use the SLIGHT_SLIDESHOWS and SLIGHT_THEMES environment variables to set the folders where your slides and themes are stored.

Multiple paths are separated by :.