Expose current version

Expose the current version through `doc.version` and the revision through `doc.revision`