Add code samples to sphinx docs