docs: update code block on homepage - fixes #323