Re-integrated the includePermalinks documentation

Somehow neglected to add the source file to the repository
in the original pull request.