Add sample code to docs index page