Generally best practices to gate the `main()` function behind `if
__name__ == '__main__` so the file can be imported without running its
main function.
Merge pull request #1 from nopreserveroot/feature/generate-pages

Small tweak on calling main.