Adapted to ReadTheDocs